Restricting jobs to batch

You can create or change commands to restrict certain jobs to be run only in a batch environment.

For example, you might want to run certain reports or program compiles in batch. A job running in batch often affects system performance less than the same job running interactively.

For example, to restrict the command that runs program RPTA to batch, do the following action:

  • Create a command to run RPTA and specify that the command can be run only in batch:
    CRTCMD CMD(RPTA) PGM(RPTA) ALLOW(*BATCH *BPGM)
To restrict compiles to batch, do the following for the create command for each program type:
CHGCMD CMD(CRTxxxPGM) ALLOW(*BATCH *BPGM)