Joined: 06 Dec 2004 Posts: 211 Location: Keane Inc., Minneapolis USA.
1. Just specify the name of the GDG without using generation number i.e.
//IN1 DD DSN=SAMPLE.MYGDG
2 The SYSOUT parameter identifies a data set as a "SYStem OUTput" data
set, consisting of printed output . The SYSOUT parameter names the output class to which the printed output belongs.
The DEST parameter specifies a destination for a SYSOUT data set.
The destination can be a local or remote terminal, a node in the JES
network, a local or remote printer or workstation, or even a TSO
userid. DEST is only valid for a SYSOUT DD statement, and it has to
name a valid destination that is already known to your JES.
3.When COMPRESS is specified in PARM of EXEC statement, then the generated statement is:
which will compress in place the
data set designated by the SYSUT2 DD statement.
//JS10 EXEC PGM=IEBCOPY,REGION=1M
//SYSPRINT DD SYSOUT=*
//I1 DD DSN=my.pds,
//* Same PDS for Input & Output
//O1 DD DSN=my.pds,
//SYSIN DD *
COMP1 C O=O1,I=((I1,R))
5. MOD Indicates one of the following, and that you need non-shared control of the data set:
a) The data set already existed, and that records are to be added to
the end of the data set (for sequential files only)
b) You are creating a new data set
It will check for the dataset if exists it takes MOD otherwise it takes it as NEW.