Unfortunately, you can not have "nested" symbols...just one and done.

Thank you and best regards,
Billy Ashton


------ Original Message ------
From "Robert Garrett" <rob...@garrettfamily.us>
To IBM-MAIN@listserv.ua.edu
Date 1/31/2023 7:07:31 PM
Subject JCL // SET SYMBOL indirection

I love symbols.

I've been trying to figure out if a level of indirection is possible.
Here's an example that both doesn't work and isn't' even syntactically correct, 
but hopefully will serve to illustrate what I'm trying to do:

//SYM1     SET SYM1=VALUE1
//SYM2     SET SYM2=VALUE2

//TARGET   SET TARGET=SYM1

//RESULT   SET RESULT=&&TARGET   (and end up with &RESULT being set to VALUE1 
and not SYM1)

I know it'll be tempting to ask "why?" but trust me, I have a good reason.

Thanks,
Rob

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to