Previous Topic

Next Topic

Book Contents

Book Index

Output handling action examples

All of the following examples presume a job completion status of OK.

EXAMPLE 1: Release the Log file to the default printer. Output Handling Action: Print

EXAMPLE 2: (IBM i (AS/400)) Release the Log file to the specified output queue. Output Handling Action: Release. Parm: MYLIB/MYOUTQ

EXAMPLE 3: OpenVMS and UNIX: Move the log file to a file called test.log in the job owner’s home directory. Output Handling Action: Move Parm: test.log

EXAMPLE 4: UNIX: Copy the Log file to a directory called prg2/test/. Use the default file name. Output Handling Action: Copy Parm: prg2/test/

EXAMPLE 5: UNIX: Copy the Log file to a file. The name of the log file is determined by the Job Name. Output Handling Action: Copy Parm: prg2/%%JOBNAME

EXAMPLE 6: To distinguish between output iterations of a cyclic job, rename the output file with a counter:

  1. Track the number of iterations in a cyclic job, and define the following user-defined variable in the General tab:
  2. Rename the output by doing the following:

Parent Topic

Action