Use Concatenation Characters in a Run Task (z/OS to HP NonStop)

PROC1, PROC2, and PROC3 demonstrate the use of concatenation characters within a Connect:Direct® for HP NonStop RUN TASK statement.

Note: These Processes will only work in SNA environments.
PROC1   PROCESS    SNODE=SYSCLX
STEP01  RUN TASK  (PGM=FUP                                  -
                   PARM=("/OUT $S.#TEST,TERM $S.#TMP/",     -
                         "COPY $A.SMITH.TACLCSTM,,SHARE"))  -
                   SNODE

PROC2 and PROC3 require concatenation characters because the parameters being passed to FUP are on multiple lines.

PROC2   PROCESS    SNODE=SYSCLX
STEP01  RUN TASK  (PGM=FUP                                      -
                   PARM=(\"/OUT $S.#TEST,NAME $FUP   \||        -
                         \,TERM $S.#TMP,PRI 150/     \||        -
                         \ COPY $A.SMITH.TACLCSTM,,FOLD")   \)  -
                   SNODE

TERM is coded on the RUN TASK statement for both PROC2 and PROC3 so IBM® Connect:Direct Processes can continue uninterrupted in the event the program being executed abends. If an abend occurs, any abend message will be sent to the device specified by the TERM command. If TERM is not coded, all abend messages will be directed to the terminal from which the Connect:Direct for HP NonStop system was started (HOMETERM). If HOMETERM is not paused, the abend message will not be displayed and the RUN TASK will hang until HOMETERM is paused.

PROC3   PROCESS    SNODE=SYSCLX
STEP01  RUN TASK  (PGM=FUP                                -
                   PARM=(\"/OUT $S.#TEST,PRI 150     \||  -
                         \,TERM $S.#TMP,NAME $FUP/   \||  -
                         \ COPY $A.SMITH.TACLCSTM,,  \||  -
                         \ SHARE")  \)                    -
                   SNODE