IBM Support

How to use variables %SUBTIME, %SUBDATE, %NUM1 or %JDATE in a Connect:Direct for z/OS PROCESS to make a destination file name unique.

Question & Answer


Question

How to use variables %SUBTIME, %SUBDATE, %NUM1 or %JDATE in a Connect:Direct for z/OS PROCESS to make a destination file name unique.

Cause

Answer

To set a variable to the value in %NUM1:

     &VAR = %NUM1

To use the SYMBOL keyword to construct a file name:

      SYMBOL &DSN = \ABC.DEF.T\ || &VAR

To use &VAR in the process:

      COPY FROM(...) -
     TO(DSN=ABC.DEF.T || &VAR


Another PROCESS coding example:

NDMPROC PROCESS SNODE=REMNODE1 -
     &DSN1=ABC.GDG(0) -
     &HLQ=TRIGGER.FILE -
     &D1=D -
     &T1=T -
     &DATE=%SUBDATE -
     &TIME=%SUBTIME -
     &VAR1=&D1.&DATE -
     &VAR2=&T1.&TIME

   SYMBOL &FILE=&HLQ..&VAR1..&VAR2

STEP01 COPY FROM(DSN=&DSN1 PNODE DISP=SHR) -
     TO(DSN=&FILE -
     DISP=NEW)


Results in &FILE would be similar to the following:

TRIGGER.FILE.D1040226.T112914

[{"Product":{"code":"SSFGBN","label":"Sterling Connect:Direct for z\/OS"},"Business Unit":{"code":"BU012","label":"WCE"},"Component":"Not Applicable","Platform":[{"code":"PF035","label":"z\/OS"}],"Version":"5.1;5.0;4.8","Edition":""}]

Historical Number

PRI1156

Document Information

Modified date:
24 September 2018

UID

swg21536099