COPY instruction

You can use COPY or INCLUDE to instruct CICS PA at run time to obtain precoded commands from a command library and include them in your CICS PA job stream as command input. In this way, often-used sequences of commands can be readily reused. The command library is identified in the CMDLIB DD statement in your JCL.

The format of the COPY instruction is:

Name Command Operands Comments
name (or blank) COPY or INCLUDE member[,member1,...,membern] comments (or blank)

Figure 1 shows an example of the COPY command. In this example, precoded commands necessary to produce a Performance List report and Performance Summary report are obtained from the two command library members and placed in the job stream.

Figure 1. Sample JCL using COPY
//CICSPA JOB (Job Accounting)
//CPA      EXEC PGM=CPAMAIN
//CMDLIB   DD  DSN=CICSPA.CMDLIB,DISP=SHR
 . . .
//SYSIN    DD  *
 COPY LISTTPRF
 COPY SUMMTPRF
/*
//