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.Parameter | Description |
PREFORM | Specifies 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. |
TYPORG | Indicates the input file organization: PS for sequential files, PO for partitioned files. |
TOTCONV | Indicates 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. |
CNTRL | Specifies the line spacing for the output listing. The default is 1. |
STRTAFT | Indicates how many records to skip before printing. |
STOPAFT | |
SKIP | Indicates that only every nth record is to be printed. |
MAXNAME | Specifies the number of MEMBER statements that follow. |
MAXFLDS | Specifies the number of FIELD parameters in the RECORD statements that follow. |
INITPG | Specifies the starting page number. The default is 1. |
MAXLINE | Specifies 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
/*
No comments:
Post a Comment