Export an Entry-Sequenced Cluster: Example 3
In this example, an entry-sequenced cluster is exported to a portable
file and then deleted from the system.
//EXPORT2 JOB ...
//STEP1 EXEC PGM=IDCAMS
//RECEIVE DD DSNAME=TAPE1,UNIT=(TAPE,,DEFER),
// VOL=SER=001147,LABEL=(1,SL),DISP=NEW
//SYSPRINT DD SYSOUT=A
//SYSIN DD *
EXPORT -
X98.EXAMPLE.ESDS1 -
OUTFILE(RECEIVE) -
PURGE
/*
Job control language statement:
- RECEIVE DD describes the portable file, TAPE1, that is to contain a copy of the exported entry-sequenced cluster.
The EXPORT command copies the entry-sequenced cluster, X98.EXAMPLE.ESDS1,
and its cataloged attributes to a portable file, TAPE1. The cluster
is deleted from the system after it is copied into the portable file.
The parameters are:
- X98.EXAMPLE.ESDS1 identifies the entry-sequenced cluster to be exported.
- OUTFILE points to the RECEIVE DD statement. The RECEIVE DD statement describes the portable data set, TAPE1, that is to receive a copy of the cluster.
- PURGE allows the cluster to be deleted regardless of its retention period or date.
Because EXPORT defaults to NOINHIBITTARGET, access method services assumes the cluster can be updated (by users of the other system) when it is imported to another system.