IEBGENER Exits

IEBGENER - GENERATE IEBGENER - LABELS

Advertisements


Indicates the user routines provided.

The EXITS statement is used to identify exit routines IEBGENER to use.


Syntax:

LabelStatementParameters
[label]EXITS [INHDR=routinename]
[,OUTHDR=routinename]
[,INTLR=routinename]
[,OUTTLR=routinename]
[,KEY=routinename]
[,DATA=routinename]
[,IOERROR=routinename]
[,TOTAL=(routinename,size)]

INHDR=routinename

Specifies the name of the user input header labels routine.


OUTHDR=routinename

Specifies the name of the user output header labels routine that creates.


INTLR=routinename

Specifies the name of the user input trailer routine labels.


OUTTLR=routinename

Specifies the name of the user output trailer labels routine that processes.


KEY=routinename

Specifies the name of the output record key routine.


DATA=routinename

Specifies the name of the physical record routine that modifies before it is processed by IEBGENER.


IOERROR=routinename

Specifies the name of the routine that handles permanent input/output error conditions.


TOTAL=(routinename,size)

Specifies that a user exit routine is to be provided before writing each record.


routinename


Specifies the name of totaling routine.


size


Specifies totals, counters, pointers and so forth.


Example:


Sequential input is converted into two partitioned members.


  //DISKTODK JOB  ...
  //STEP1    EXEC PGM=IEBGENER
  //SYSPRINT DD  SYSOUT=A
  //SYSUT1   DD  DSNAME=INPUTS,UNIT=disk,DISP=(OLD,KEEP),
  //             VOLUME=SER=111111
  //SYSUT2   DD  DSNAME=OUTPUTS,UNIT=disk,DISP=(MOD,KEEP),
  //             VOLUME=SER=111112
  //SYSIN    DD  *
	GENERATE  MAXNAME=3,MAXGPS=1
	EXITS  INHDR=ROUT1,INTLR=ROUT2
	MEMBER  NAME=(MEMBER1,ALIAS1)
	GROUP1 RECORD  IDENT=(8,'FIRSTMEM',1)
	MEMBER  NAME=MEMBER2
  /*

Let’s discuss the example in detail.


  • SYSUT1 DD defines the input data set (INPUTS).
  • SYSUT2 DD defines the output partitioned data set (OUTPUTS).
  • SYSIN DD defines the control data set.
  • GENERATE indicates a maximum of three names and aliases are included in subsequent MEMBER statements.
  • IDENT parameter appears in a subsequent RECORD statement.
  • EXITS define the user routines to process user labels.
  • The first MEMBER statement assigns a member name (MEMBER1) and an alias (ALIAS1) to the first member.
  • The RECORD statement identifies the last record to be placed in the first member. The name of the record FIRSTMEM identifies in first 8 positions.
  • The second MEMBER statement assigns a member name (MEMBER2) to the second member.

IEBGENER - GENERATE IEBGENER - LABELS

Advertisements