IEBCOPY ALTERMOD

IEBCOPY Control Statements IEBCOPY COPY

Advertisements


Indicates the beginning of an alter-in-place operation for load modules.

The ALTERMOD statement is required to alter load modules in place.

ALTERMOD will only work with a PDS, not a PDSE.


syntax:


LabelStatementParameters
[label]ALTERMODOUTDD=DDname
[,LIST={YES|NO}]
OUTDD=DDname

specifies the ddname of the PDS that is to be altered.

LIST={YES|NO}

specifies names of the altered members are to be listed in the SYSPRINT data set.

When ignored, the default from the EXEC PARM will be applied.

Example:

All members of data set dataset1.lib, members A, B, and C of data set are altered in place.

//ALTERONE JOB ...
//STEPA EXEC PGM=IEBCOPY
//SYSPRINT DD SYSOUT=A
//SYSUT3 DD UNIT=SYSDA,SPACE=(TRK,(5,1))
//Dataset1DD DSNAME=dataset1.lib,DISP=(OLD,KEEP)
//SYSIN DD *
ALTERMOD OUTDD=Dataset1
SELECT MEMBER=(A,B)
/*


  //ALTERONE JOB  ... 
  //STEPA    EXEC PGM=IEBCOPY
  //SYSPRINT DD  SYSOUT=A
  //SYSUT3   DD  UNIT=SYSDA,SPACE=(TRK,(5,1))
  //Dataset1 DD  DSNAME=dataset1.lib,DISP=(OLD,KEEP)
  //SYSIN    DD  *
	ALTERMOD  OUTDD=Dataset1
       	SELECT    MEMBER=(A,B)
  /*
  


Let’s discuss the example in detail.

  • Dataset1 DD defines the partitioned data set dataset1.lib, which has been previously created and cataloged.
  • SYSIN DD defines the control data set, which follows in the input stream.
  • The ALTERMOD statement plus the following SELECT statement indicates that members A and B are to be altered in place.
  • The remainder of dataset1.lib is unchanged.

IEBCOPY Control Statements IEBCOPY COPY

Advertisements