Some of the systm symbols I tried like &SYSPLEX, &SYSNAME, &LHHMMSS work perfectly. But when I try &SYSUID, I don't see SYSUID being replaced by the actual user id. Instead I see a string in output
as '&SYSUID'.
I am trying to generate a JOB and want the person's user id to be used in the jobname along with 2 byte constant.
Here is the job that I have been using.
//REARRJCL EXEC PGM=SORT,COND=(0,NE)
//SORTIN DD *
1
/*
//SYMNAMES DD *
WK-SYSUID,S'&SYSUID'
WK-SYSPLEX,S'&SYSPLEX'
WK-LHHMMSS,S'&LHHMMSS'
/*
//SORTOUT DD SYSOUT=*
//SYSIN DD *
INREC FIELDS=(C'WK-SYSUID : ',WK-SYSUID,
C' WK-SYSPLEX : ',WK-SYSPLEX,
C' WK-LHHMMSS : ',WK-LHHMMSS)
SORT FIELDS=COPY
/*
//SYMNOUT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SORTIN DD *
1
/*
//SYMNAMES DD *
WK-SYSUID,S'&SYSUID'
WK-SYSPLEX,S'&SYSPLEX'
WK-LHHMMSS,S'&LHHMMSS'
/*
//SORTOUT DD SYSOUT=*
//SYSIN DD *
INREC FIELDS=(C'WK-SYSUID : ',WK-SYSUID,
C' WK-SYSPLEX : ',WK-SYSPLEX,
C' WK-LHHMMSS : ',WK-LHHMMSS)
SORT FIELDS=COPY
/*
//SYMNOUT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
And here is the output I see.
WK-SYSUID : &SYSUID WK-SYSPLEX : UKMC1 WK-LHHMMSS : 205609
Can someone please help, is there anything wrong I am doing.
Thanks.