IBM MAINFRAMES LIVE: Use of IEBGENER in JCL
Beta

Use of IEBGENER in JCL

|


In addition to SYSIN and SYSPRINT datasets, it needs SYSUT1 and SYSUT2 datasets. SYSUT1 is coded with input dataset and SYSUT2 is coded with output dataset. If attributes were not given for SYSUT2, then the program would assume SYSUT1 attributes for SYSUT2.
It is primarily used as COPY utility. If you want to copy any TAPE file to DISK or DISK to TAPE, then no SYSIN is needed.
If you want to reformat your input file or if you want to create members out of your PS file, then you need control card (SYSIN) and the first statement should be GENERATE.



FIELD
Meaning
GENERATE
First Statement which sets the values for MAXNAME,MAXGPS, MAXLITS, MAXFLDS
MAXNAME
Maximum MEMBER statements that can follow.(During member generation)
Syntax: MAXNAME=3
MAXGPS
Maximum IDENT statement that can follow. (During member generation)
MAXFLD
Maximum FILED statements that can follow. (During reformatting)
Syntax: MAXFLDS=10
MAXLITS
Maximum size of literal during reformatting.
MEMBER
It identifies the name of the member to be created.
Syntax: MEMBER NAME=MEM1
RECORD
IDENT
It usually follows MEMBER statement to identify the last record to be copied from the input dataset.
RECORD IDENT= (Length,’Literal’,Start-Column)

Example: RECORD IDENT=(3,’MVS’,1), then the last record to be copied into the member from the input dataset, has MVS in column 1-3.
RECORD
FIELD
It is used for reformatting the records in the input file.
RECORD FIELD=(Length, ’literal’ or input column, conversion, output column)
Output column says where the field should be placed in the output file. Conversion can be ZP or PZ. PZ means the input packed decimal field is being converted into zoned format and ZP is the reverse.

Related Posts :



0 comments: