Use SUBMIT with the DSN Parameter (z/OS to z/OS)

In this example, symbolics for PROCESS2 are supplied by the operator submitting PROCESS1.

The operator at CD.LA issues the following IBM® Connect:Direct® command to initiate the file transfer:

SUB PROC=PROCESS1 &DSN1=A345.DATA &DSN2=A345.NEW.DATA

PROCESS1 executes:

PROCESS1  PROCESS      PNODE=CD.LA  SNODE=CD.DALLAS  -
                       &DSN1=&DSN1                   -
                       &DSN2=&DSN2                   -
                       &PRTY=14                      -
                       NOTIFY=A345
STEP01    COPY  FROM  (DSN=&DSN1 DISP=SHR PNODE)     -
                TO    (DSN=&DSN2 DISP=SHR SNODE)
STEP02    SUBMIT  DSN=A345.PROCESS.LIB(PROCESS2)     -
                  PRTY=&PRTY                         -
                  SUBNODE=SNODE                      -
                  &DSN=&DSN2

PROCESS1 submits PROCESS2:

PROCESS2  PROCESS      PNODE=CD.DALLAS             -
                       SNODE=CD.NEWYORK
STEP01    COPY  FROM  (DSN=&DSN PNODE)             -
                TO    (DSN=A345.NEW.DATA1 DISP=SHR)
  • PROCESS1 copies the file A345.DATA at CD.LA to a file called A345.NEW.DATA at the CD.DALLAS node, and then it submits PROCESS2, which executes on the CD.DALLAS node.
  • PROCESS2 copies the file A345.NEW.DATA at the CD.DALLAS to the file A345.NEW.DATA1 at CD.NEWYORK.