Custom Compile Commands
To have the error list appear, your custom compile command must do two things:
- Produce the event file
- Include the following text items:
- Note: These items do not have to be active command parameters ... they can be referenced as a command comment (i.e.,
/* *EVENTF SRCMBR(member-name) */
See the IBM's technote (FAQ)
To produce the event file, the actual compile command must specify the proper options. (Note: Not every compile command has an option to generate an event file.)
Examples of compile command options to generate an event file:
CRTBNDRPG PGM(mylibrary/myProgram) SRCFILE(mysource) OPTION(*EVENTF)
CRTRPGPGM PGM(mylibrary/myProgram) SRCFILE(mysource) OPTION(*SRCDBG)
- Having *CURLIB set. If you don't the EVFEVENT file is created and populated in the library where you compile the object.
- Setting the *LDA with the library and member for the compiled source. Custom commands have been written which do not set the *LDA and still return the error list.