IEBGENER RECORD Statement
The RECORD statement defines a record group with editing information. A record group consists of records that are to be processed identically.
Syntax -
//SYSIN DD *
RECORD [{IDENT|IDENTG}=(length,'name',input-location)]
[,FIELD=([length],[{input-location|'literal'}],
[conversion],[output-location])]
[,FIELD=...][,LABELS=n]
/*
Parameters -
Keyword | Description |
---|---|
IDENT|IDENTG}=
(length,'name',
input-location) |
Identifies the last record of input file from group of records.
|
FIELD=([length], [{input-location| 'literal'}], [conversion], [output-location]) | Specifies field processing and editing information.
|
LABELS=n | is an optional parameter that specifies the number of records in the SYSIN data set to be treated as user labels. |
Practical Example -
Scenario - Add literals to the records of the PS file.
Input PS File - MATEPK.IEBGENER.INPUTPS
JCL -
----+----1----+----2----+----3----+----4----+----5----+
...
//STEP10 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=MATEPK.IEBGENER.INPUTPS,DISP=SHR
//SYSUT2 DD DSN=MATEPK.IEBGENER.OUTPUTPS,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(10,10),RLSE),
// UNIT=3390,VOL=SER=DEVHD4,
// DCB=(DSORG=PS,RECFM=FB,LRECL=80,BLKSIZE=800)
//SYSIN DD *
GENERATE MAXFLDS=3,MAXLITS=10
RECORD FIELD=(5,'+++++',,1),
FIELD=(70,1,,6),
FIELD=(5,'+++++',,76)
/*
...