|
In this example, all members of data set MODLIBJ, members MODX, MODY, and MODZ of data set MODLIBK, and all members of data set MODLIBL, except MYMACRO and MYJCL,
are altered in place.
Neste exemplo, todos os membros do conjunto de dados MODLIBJ, membros MODX, MODY e MODZ do conjunto de dados MODLIBK e todos os membros do
conjunto de dados MODLIBL, exceto MYMACRO e MYJCL, são alterados no local.
//ALTERONE JOB ...
//STEPA EXEC PGM=IEBCOPY
//SYSPRINT DD SYSOUT=A
//SYSUT3 DD UNIT=SYSDA,SPACE=(TRK,(5,1))
//LIBJ DD DSNAME=MODLIBJ,DISP=(OLD,KEEP)
//LIBK DD DSNAME=MODLIBK,DISP=(OLD,KEEP)
//LIBL DD DSNAME=MODLIBL,DISP=(OLD,KEEP)
//SYSIN DD *
ALTERMOD OUTDD=LIBJ
ALTERMOD OUTDD=LIBK,LIST=NO
SELECT MEMBER=(MODX,MODY,MODZ)
ALTERMOD OUTDD=LIBL
EXCLUDE MEMBER=(MYMACRO,MYJCL)
/*
The control statements are as follows:
As declarações de controle são as seguintes:
- LIBJ DD defines the partitioned data set MODLIBJ, which has been previously created and cataloged.
- LIBK DD defines the partitioned data set MODLIBK, which has been previously created and cataloged.
- LIBL DD defines the partitioned data set MODLIBL, which has been previously created and cataloged.
- SYSIN DD defines the control data set, which follows in the input stream.
- The first ALTERMOD statement specifies that the entire data set defined in LIBJ is to be altered in place.
- The second ALTERMOD statement plus the following SELECT statement indicates that members MODX, MODY, and MODZ are to be altered in place.
The remainder of MODLIBK is unchanged.
- The third ALTERMOD statement plus the following EXCLUDE statement indicates that all of MODLIBL is to be altered in place except the members called MYMACRO and
MYJCL.
These members remain unchanged.
- LIBJ DD define o conjunto de dados particionados MODLIBJ, que foi criado e catalogado anteriormente.
- LIBK DD define o conjunto de dados particionados MODLIBK, que foi criado e catalogado anteriormente.
- LIBL DD define o conjunto de dados particionados MODLIBL, que foi criado e catalogado anteriormente.
- SYSIN DD define o conjunto de dados de controle, que segue no fluxo de entrada.
- A primeira instrução ALTERMOD especifica que todo o conjunto de dados definido em LIBJ deve ser alterado no local.
- A segunda instrução ALTERMOD mais a seguinte instrução SELECT indica que os membros MODX, MODY e MODZ devem ser alterados no local.
O restante do MODLIBK permanece inalterado.
- A terceira instrução ALTERMOD mais a instrução EXCLUDE a seguir indica que todo MODLIBL deve ser alterado no local, exceto os membros chamados MYMACRO
e MYJCL.
Esses membros permanecem inalterados.
Parent topic: IEBCOPY Examples
© Copyright IBM Corp.
|