Hi, New to the REXX language.
I am trying to write to a dataset using variables within the program. For each user that executes the program I want to create a new member in their personal PDS using their USER ID as the PDS name and the Julian date as the member name. The member will contain a set of report file names so they can reference once the job completes.
Here is what I am trying to do:
USER = USERID()
/* GET TODAYS JULIAN DATE AND TIME FOR THE OUTPUT FILE SUFFIXES */
DATEIN=DATE('S')
ABC=DATE('D',DATEIN,'S')
JDAT='J'||RIGHT(SUBSTR(DATEIN,1,4),4,'0')||RIGHT(ABC,3,'0')
ADDRESS TSO
"ALLOCATE MOD F(OUT) DATASET('&USER.DBH.REPORTS(&JDAT)') REUSE"
QUEUE "&FILE09"
QUEUE "&FILE10"
QUEUE "&FILE11"
"EXECIO * DISKW OUT (FINIS"
"FREE F(OUT)"
The symbolics used in the ALLOCATE stmt above are failing. Can you offer some suggestions? Thanks
I am trying to write to a dataset using variables within the program. For each user that executes the program I want to create a new member in their personal PDS using their USER ID as the PDS name and the Julian date as the member name. The member will contain a set of report file names so they can reference once the job completes.
Here is what I am trying to do:
USER = USERID()
/* GET TODAYS JULIAN DATE AND TIME FOR THE OUTPUT FILE SUFFIXES */
DATEIN=DATE('S')
ABC=DATE('D',DATEIN,'S')
JDAT='J'||RIGHT(SUBSTR(DATEIN,1,4),4,'0')||RIGHT(ABC,3,'0')
ADDRESS TSO
"ALLOCATE MOD F(OUT) DATASET('&USER.DBH.REPORTS(&JDAT)') REUSE"
QUEUE "&FILE09"
QUEUE "&FILE10"
QUEUE "&FILE11"
"EXECIO * DISKW OUT (FINIS"
"FREE F(OUT)"
The symbolics used in the ALLOCATE stmt above are failing. Can you offer some suggestions? Thanks