Hi,
I am trying to create an NDM process that can be used across with the naming depending on the current date/time. I have the process defined as following:
/* %SUBDATE : submitted date in cyymmdd format */
/* c "0" 20th, "1" 21st century */
/* %SUBDATE1 : submitted date in ccyymmdd format */
/* %SUBDATE2 : submitted date in ccyyddmm format */
/* %SUBDATE3 : submitted date in mmddccyy format */
/* %SUBDATE4 : submitted date in ddmmccyy format */
BT#NDM01 PROCESS -
&DATE=%SUBDATE -
&TIME=%SUBTIME -
&DATE1=%SUBDATE1 -
&DATE2=%SUBDATE2 -
&DATE3=%SUBDATE3 -
&DATE3=%SUBDATE4 -
&TO_DSN=\NEED.TO.SPECIFY\ -
&TO_EXT=\.txt\ -
&TO_DISP=RPL -
&TO_SYSOPTS='xlate(no)'
SYMBOL &T_DSN=&DATE1 || \_\ || &TIME || \_\ || -
&TO_DSN || &TO_EXT
FILE1 COPY -
FROM (PNODE -
DSN=&FROM_DSN -
) -
TO -
(SNODE -
DSN=&T_DSN -
DISP=&TO_DISP -
SYSOPTS=&TO_SYSOPTS -
) -
CKPT=0K
The following is the control card that executes the process:
SIGNON
SUBMIT PROCESS=BT#NDM01 -
NEWNAME=COPY1 -
SNODE=XXXXX -
SNODEID=(XXXXX) -
CASE=YES -
NOTIFY=USERID -
&FROM_DSN=INPUT.FILE -
&TO_DSN=OUTPUT_FILE
SIGNOFF
With this option it is not possible to change the name of the output file.
Is it possible to create the actual control cards that execute the process to include the current date/time?
Thank you very much for any assistance with this matter
------------------------------
Girish Sajja
------------------------------