Sunday, 4 August 2013

IEBPTPCH Utility




The
IEBPTPCHutility can be used to print the data from a non-VSAM sequential or partitioned data set.
  • This utility uses the standard ddnames for the message, input, output, and control statement files.
  • This utility requires at least a PRINT control statement, and it can also accept TITLE, MEMBER, and RECORD statements
      Syntax of the PRINT control statement
PRINT  [ PREFORM= A | M ]
       [ ,TYPORG= PS | PO ]
       [ ,TOTCONV= XE | PZ ]
       [ ,CNTRL= 1 | 2 | 3 ]
       [ ,STRTAFT=n ]
       [ ,STOPAFT=n ]
       [ ,SKIP=n ]
       [ ,MAXNAME=n ]
       [ ,MAXFLDS=n ]
       [ ,INITPG=n ]
       [ ,MAXLINE=n ]


Explanation.
Indicates the number of records to be printed.
ParameterDescription
PREFORMSpecifies that the input file already contains printer-control characters in the first byte of each record. A indicates ASA characters; M indicates machine characters. If you specify PREFORM, you can’t specify any other PRINT options.
TYPORGIndicates the input file organization: PS for sequential files, PO for partitioned files.
TOTCONVIndicates conversion of the entire input record (as opposed to conversion of individual fields specified by the RECORD statement that follows). XE means to convert to hexadecimal; PZ means to unpack packed-decimal fields. If TOTCONV is omitted, no conversion is done.
CNTRLSpecifies the line spacing for the output listing. The default is 1.
STRTAFTIndicates how many records to skip before printing.
STOPAFT
SKIPIndicates that only every nth record is to be printed.
MAXNAMESpecifies the number of MEMBER statements that follow.
MAXFLDSSpecifies the number of FIELD parameters in the RECORD statements that follow.
INITPGSpecifies the starting page number. The default is 1.
MAXLINESpecifies the number of lines to print on each page. The default is 50.

A job step that prints the first 100 records of a sequential data set.

//PRINT EXEC PGM=IEBPTPCH
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=MM01.CUSTOMER.MASTER,DISP=SHR
//SYSUT2 DD SYSOUT=*
//SYSIN DD * PRINT TYPORG=PS,TOTCONV=PZ,STOPAFT=100,MAXLINE=60
/*



Created with Artisteer

No comments:

Post a Comment

New In-feed ads