Examples of the PARMDD parameter

Example 1
//STEP1   EXEC PGM=IEBCOPY,PARMDD=PARMIN
//PARMIN  DD   *,DLM=/*
LINECOUNT=75
/*                          

In the example, the PARMDD keyword specifies a DD name of PARMIN, which is then coded on a DD statement that specifies a SYSIN (or in-stream) data set. The DD DATA usage would be similar.

Example 2
//STEP1   EXEC PGM=MYPGM,PARMDD=MYPARMS
//MYPARMS DD   DSN=SYS1.PARMLIB(MYPGMPRM)

In the example, the PARMDD keyword specifies a DD name of MYPARMS, which is then coded on a DD statement that specifies a data set (in this case, a partitioned data set member) that contains the program's parameter information.

Example 3
//STEP1   EXEC PGM=MYPGM,PARMDD=MYPARMS
//MYPARMS DD   PATH=/SYSTEM/tmp/unixparm.txt

In the example, the PARMDD keyword specifies a DD name of MYPARMS, which is then coded on a DD statement that specifies a UNIX System Service file that contains the program's parameter information.