IBM Support

What does the SNODE parameter on the SUBMIT statement within a PROCESS do - Connect:Direct for z/OS

Question & Answer


Question

What does the SNODE parameter on the SUBMIT statement within a PROCESS do?

Cause

Customer has a process that has a SUBMIT statement within a PROCESS step. The customer coded the SNODE parameter with the name of the node (CD.SNODE2) that he wants the submitted process to be run on. But every time he submits the initial process on the initial PNODE the process is submitted to the SNODE (CD.SNODE1) that the initial PNODE is in session with. The customer would like to know why the process submitted by the SUBMIT within a SUBMIT is not going where he wants it to go.

The customer's initial process looks similar to the following:

CDPROC PROCESS SNODE=CD.SNODE1
/*
STEP01 COPY FROM (DSN=&DSN1 -
DISP=SHR -
BUFND=10 -
PNODE) -
CKPT=100M -
COMPRESS EXT -
TO (DSN=&DSN2 -
DISP=(SHR,CATLG,DELETE) -
BUFND=10 -
SNODE)
IF (STEP01 EQ 0) THEN
SUBMIT DSN="CD.SUBMIT.PDS(SUBPROC)" -
SNODE=CD.SNODE2 –
SUBNODE=SNODE -
&RJ=RUNJOB.JCL.CNTL(TEST)
EIF

Answer

When you have a SUBMIT within a SUBMIT you can code a SNODE on the SUBMIT statement within the PROCESS. This SNODE parameter specifying what remote node to submit the process to. It is providing the remote node name that the new process will establish a session with. This will be the value that will be used in the SNODE parameter on the PROCESS statement that is submitted by the SUBMIT within a SUBMIT. If you do not code a SNODE parameter on the SUBMIT statement within a SUBMIT the default is the value of the SNODE parameter on the PROCESS statement.

Where this new process runs is determined by the SUBNODE parameter in the SUBMIT within a SUBMIT. The valid values are PNODE or SNODE. IF you code SUBNODE=PNODE the process submitted by the SUBMIT within a SUBMIT will run on the local node. If you code SUBNODE=SNODE the process submitted by the SUBMIT within a SUBMIT will run on the SNODE that your local node is in session with.

A PNODE cannot be in session with more than one SNODE for the duration of a process, regardless of how many steps there are in the process.

[{"Product":{"code":"SSFGBN","label":"IBM Sterling Connect:Direct for z\/OS"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF035","label":"z\/OS"}],"Version":"5.2","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
17 December 2019

UID

swg22013959