I am defining variable names inside a JCL, such as:
//V1 SET SELO='WORK.JOHN.SHEET'
//V2 SET SELRFMT='WORK.JOHN.OUTPUT.CODE'
//V2 SET SELRFMT='WORK.JOHN.OUTPUT.CODE'
I would like to introduce a variable part in these, so that the name JOHN above can be customized as well:
//V0 SET NAME='MARY'
//V1 SET SELO='WORK.&NAME..SHEET'
//V2 SET SELRFMT='WORK.&NAME..OUTPUT.CODE'
//V1 SET SELO='WORK.&NAME..SHEET'
//V2 SET SELRFMT='WORK.&NAME..OUTPUT.CODE'
I get an error from improper use of ampersand in the DSN field, I suppose because double substitution is not recognized?
6 IEFC627I INCORRECT USE OF AMPERSAND IN THE DSN FIELD
Is there a way to do this?
Thank you,