Use SUBMIT with Symbolic Substitution (z/OS to z/OS)
In the following examples, a source file at the CD.LA node is to be copied to the CD.NEWYORK node, using CD.DALLAS as a store-and-forward node. To do this, two Processes need to be defined.
PROCESS1 is submitted from CD.LA. PROCESS1 performs the following functions:
- STEP01 copies the source file from CD.LA to CD.DALLAS.
- STEP02 within the same Process submits PROCESS2.
PROCESS2 executes at CD.DALLAS and contains one step which copies the file received from CD.LA and forwards it to CD.NEWYORK.
The user submits a Process and does not pass symbolics to the Process. Values for symbolics to be resolved on the SNODE are contained within the Process. The Process on the PNODE passes symbolics to a Process submitted on the SNODE.
Symbolics for PROCESS2 are supplied from values coded in PROCESS1.
The operator at CD.LA issues the following IBM® Connect:Direct® command to initiate the file transfer.
|
PROCESS1 executes:
|
PROCESS1 submits PROCESS2:
|
- PROCESS1 copies the file USER1.TEXT in LA to a file called USER1.NEW.TEXT at CD.DALLAS. Then it submits PROCESS2, which executes on the CD.DALLAS node because the SUBNODE parameter designates the SNODE, or CD.DALLAS, as the submitting node for PROCESS2.
- PROCESS2 copies the file ABC.NEW.TEXT at CD.DALLAS to file ABC.NEW.TEXT1 in CD.NEWYORK. The default DSN symbolic name for the PNODE is taken from the previous PROCESS1.