IEBGENER Generate

IEBGENER - Control Statements IEBGENER - EXITS

Advertisements


Indicates the number of member and alias, record identifiers, literals and editing information in the control data set.

The GENERATE statement is required if output is to be partitioned,

Editing is to be performed and user routines are provided or label processing is specified.

The GENERATE statement must be the first statement of IEBGENER utility statements.


Syntax:

LabelStatementParameters
[label]GENERATE[,MAXNAME=n]
[,MAXFLDS=n]
[,MAXGPS=n]
[,MAXLITS=n]
[,DBCS={YES|NO}]

MAXNAME=n

Specifies a number from 1 to 3276.

MAXNAME is required if one or more MEMBER statements exists.


MAXFLDS=n

Specifies a number, from 1 to 4095.

MAXFLDS is required if any FIELD parameters in subsequent RECORD statements exists.


MAXGPS=n

specifies a number, from 1 to 2520.

MAXGPS is required if any IDENT parameters in subsequent RECORD statements exists.


MAXLITS=n

Specifies a number, from 1 to 2730.

MAXLITS is required if the FIELD parameters of subsequent RECORD statements contain literals.


DBCS={YES|NO}

Specifies if the input data set contains double-byte character set data.


Example:


A partitioned data set is created from sequential input.


  //TAPEDISK JOB  ...
  //STEP1    EXEC PGM=IEBGENER
  //SYSPRINT DD  SYSOUT=A
  //SYSUT1   DD  DSNAME=INPUTS,UNIT=tape,LABEL=(,SL),
  //             DISP=(OLD,KEEP),VOLUME=SER=001234
  //SYSUT2   DD  DSNAME=OUTPDS,UNIT=disk,DISP=(,KEEP),
  //             VOLUME=SER=111112,SPACE=(TRK,(10,5,5)),
  //             DCB=(RECFM=FB,LRECL=80,BLKSIZE=2000)
  //SYSIN    DD  *
GENERATE  MAXNAME=1,MAXGPS=1
MEMBER  NAME=MEMBER1
  /*

Let’s discuss the example in detail.


  • SYSUT1 DD defines the input data set (INPUTS) on a tape volume.
  • SYSUT2 DD defines the output PDS (OUTPDS) on a disk volume.
  • SYSIN DD defines the control data set.
  • GENERATE indicates member names are included in subsequent MEMBER statements.
  • The MEMBER statement assigns a member name (MEMBER1) to the first member.

IEBGENER - Control Statements IEBGENER - EXITS

Advertisements