Previous Topic: Execution ConsiderationsNext Topic: REXX Execution Examples


Batch Execution Examples

CAZ2LPDS can be executed as a standard batch program. When executed in this manner, the program parameters are supplied on the PARM= operand of the EXEC statement.

Example: Write a List of Members to SYSPRINT

The following JCL reads the input PDS (defaulted to SYSIN), and writes a list of members to the output file (defaulted to SYSPRINT).

JCL:
//STEPNAME EXEC PGM=CAZ2LPDS,REGION=0K
//STEPLIB  DD   DISP=SHR,DSN=your.jclcheck.loadlib
//SYSIN    DD   DISP=SHR,DSN=your.input.pds
//SYSPRINT DD   SYSOUT=* 
SYSPRINT OUTPUT:
....+....10...+....20...+....30...+....40...+....50...+....6
MEMBER1
MEMBER2
MEMBER3
MEMBER4
************************* End of Data **********************

Example: Write a List of Members to SYSOUT

The following JCL reads the input PDS (MYPDS), and writes a list of members to the output file (SYSOUT).

JCL:
//STEPNAME EXEC PGM=CAZ2LPDS,REGION=0K, 
//    PARM='IDDN(MYPDS),ODDN(SYSOUT)'
//STEPLIB  DD   DISP=SHR,DSN=your.jclcheck.loadlib
//MYPDS    DD   DISP=SHR,DSN=your.input.pds
//SYSOUT   DD   SYSOUT=* 
SYSOUT OUTPUT:
....+....10...+....20...+....30...+....40...+....50...+....6
MEMBER1
MEMBER2
MEMBER3
MEMBER4
************************* End of Data **********************