How many times have you compiled a program into QTEMP because you needed an up-to-date compile listing? Well, here's an easy and fast way to accomplish that.
When you take the defaults for the CRTxxxPGM commands, the compiler will generate an executable object. This process takes extra time and resources. If you compile the program with the parameter OPTION(*NOGEN), no program object will be created, but you will still get the full compile listing and cross-reference. This is faster because the system doesn't have to create an object.
Rather than prompt the CRTxxxPGM command to fill in the OPTION parameter, I've set up a user-defined PDM option for the different types of programs. Here are some examples:
PDM Option: RL (RPG Listing) Command: SBMJOB CMD(CRTRPGPGM + PGM(QTEMP/&N) SRCFILE(&L/&F) + OPTION(*NOGEN) JOB(&N) + JOBD(&G/&H) PDM Option: CL (CL Listing) Command: SBMJOB CMD(CRTCLPGM + PGM(QTEMP/&N) SRCFILE(&L/&F) + OPTION(*NOGEN) JOB(&N) + JOBD(&G/&H)
When I need a compile listing of an RPG program, for example, I just use the RL option.
- Paul Jackson
LATEST COMMENTS
MC Press Online