z/OS DFSMSdfp Utilities
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Example 7: Print a Pre-Formatted Data Set

z/OS DFSMSdfp Utilities
SC23-6864-00

In this example, the input is a SYSOUT (sequential) data set, which was previously written as the second data set of a standard label tape. It is printed in SYSOUT format.
  //PTSYSOUT JOB  ...
  //STEP1    EXEC PGM=IEBPTPCH
  //SYSPRINT DD  SYSOUT=A
  //SYSUT1   DD  UNIT=tape,LABEL=(2,SL),DSNAME=LISTING,
  //             DISP=(OLD,KEEP),VOL=SER=001234
  //SYSUT2   DD  SYSOUT=A
  //SYSIN    DD  *
      PRINT   PREFORM=A
  /*
The control statements are as follows:
  • SYSUT1 DD defines the input data set, which was previously written as the second data set of a standard label tape. The data set has been assigned the name LISTING.
  • SYSUT2 DD defines the output data set on the system output device (printer assumed).
  • SYSIN DD defines the control data set, which follows in the input stream.
  • The PRINT statement begins the print operation and indicates that an ASA control character is provided as the first character of each record to be printed (PREFORM=A).

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014