|
In this example, a member (MODMEMB) is updated within the space it actually occupies.
Two existing logical records are replaced, and the entire member is renumbered.
Neste exemplo, um membro (MODMEMB) é atualizado dentro do espaço que realmente ocupa.
Dois registros lógicos existentes são substituídos e todo o membro é renumerado.
//UPDATE JOB ...
//STEP1 EXEC PGM=IEBUPDTE,PARM=MOD
//SYSPRINT DD SYSOUT=A
//SYSUT1 DD DSNAME=PDS,UNIT=disk,DISP=(OLD,KEEP),
// VOLUME=SER=111112
//SYSIN DD *
./ CHANGE NAME=MODMEMB,LIST=ALL,UPDATE=INPLACE
./ NUMBER SEQ1=ALL,NEW1=10,INCR=5
(Data statement 1, sequence number 00000020)
(Data statement 2, sequence number 00000035)
/*
The control statements are as follows:
As declarações de controle são as seguintes:
- SYSUT1 DD defines the partitioned data set that is updated in place.
(Note that the member name need not be specified in the DD statement.)
- SYSIN DD defines the control data set, which follows in the input stream.
- The CHANGE function statement indicates the name of the member to be updated (MODMEMB) and specifies the UPDATE=INPLACE operation.
The entire member is listed in the message data set.
Note that, as renumbering is being done, and since UPDATE=INPLACE was specified, the listing would have been provided even if the LIST=ALL parameter had not
been specified.
See the LIST parameter for more information.
- The NUMBER detail statement indicates that the entire member is to be renumbered, and specifies the first sequence number to be assigned and the increment
value (5) for successive sequence numbers.
- The data statements replace existing logical records having sequence numbers of 20 and 35.
- SYSUT1 DD define o conjunto de dados particionado que é atualizado no local.
(Observe que o nome do membro não precisa ser especificado na instrução DD.)
- SYSIN DD define o conjunto de dados de controle, que segue no fluxo de entrada.
- A instrução da função CHANGE indica o nome do membro a ser atualizado (MODMEMB) e especifica a operação UPDATE = INPLACE.
Todo o membro é listado no conjunto de dados da mensagem.
Observe que, conforme a renumeração está sendo feita, e como UPDATE = INPLACE foi especificado, a listagem teria sido fornecida mesmo se o parâmetro LIST = ALL não tivesse sido especificado. Consulte o parâmetro LIST para obter mais informações.
- A instrução de detalhes NUMBER indica que todo o membro deve ser renumerado e especifica o primeiro número de seqüência a ser atribuído e
o valor de incremento (5) para números de seqüência sucessivos.
- As declarações de dados substituem os registros lógicos existentes com números de sequência de 20 e 35.
Parent topic: IEBUPDTE Examples
© Copyright IBM Corp.
|