> What happens if JCL performs symbol substitution? I would expect that to be a valid temporary reference.
> R21.7 and later say use DSNAME=&&dsname. WTF is your e-mail clients doing with ampersands? It looks like it's trying to convert one of them to HTML but not the other. IAC, &&dsname evaluates to &dsname, which is a valid temporary as long as dsname adheres to the restrictions. > // SET A2='&&TEMP' I would expect that to be an invalid temporary reference. > There's been enough confusion among experts in this forum that a clarifying > RCF seems appropriate. Couldn't hurt. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List <IBM-MAIN@listserv.ua.edu> on behalf of Paul Gilmartin <0000000433f07816-dmarc-requ...@listserv.ua.edu> Sent: Saturday, June 9, 2018 7:05 PM To: IBM-MAIN@listserv.ua.edu Subject: Re: Use of dynamic system symbols in JCL On Wed, 6 Jun 2018 18:02:13 +0000, Seymour J Metz wrote: >>Except, does support of DSN=&TMP antedate any support of symbols in JCL, >> not only by SET but also as PROC parameters? > >Yes. Bitsavers is your friend. ><http://secure-web.cisco.com/1kbHbNN0Khz9T3NKrHFBWAGWSoKIBMQnYXJseeVQHqjXS8-xUb-G0_5SLGhHTgA68rVUPiucTOurQKMSrP9eBk0Sgo1MuHBA1Zj3lUhEnNXbYxitjpcvCkIwegGS6YTGp6F98tjynb77DwL8zUphSE8QYnyaOLQHaYshouOuiCZM3fnpRn2P0MfAe--4Go1zNm15H6W1PN1M_ysAt1Adhj_S_wUV3yg4tD-UGRs0k5ZTNmuupQOg092x9HtPo8WYb-O2HSPBD0dsjZA9hTAmYYgRwLWJfiyCdlKIhjqkfDfyArSOQJm3_VOWko72uzEQ4Vm-qt_eNdcJ_Kp4rw4VlgdVnzmJjFUmyAK-RqIpnym3a7mI4ER7PJwr7Lsm6hCGSOuY1Hk0Nqr1hiw-RxX76smTjfzCEmE7Xlk2AUVlhCFqDetoED0LwXdG1mrbGWl8Y/http%3A%2F%2Fbitsavers.org%2Fpdf%2Fibm%2F360%2Fos%2FR01-08%2FC28-6539-4_OS_JCL_Mar67.pdf> > OK. That says use DSNAME=&name. R21.7 and later say use DSNAME=&&dsname. What happens if JCL performs symbol substitution? For example // SET A1='&TEMP' // SET A2='&&TEMP' //* //STEP EXEC PGM=IEFBR14 //D1 DD DSN=&A1 * Should be unsupported; only one ampersand after substitution. //D1 DD DSN=&A2 * Should be accepted; two ampersands after substitution. There's been enough confusion among experts in this forum that a clarifying RCF seems appropriate. The existing doc antedates and takes scant account of symbol substitution -- gil ---------------------------------------------------------------------- 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