Re: // SET with multiple substitutions?

2024-03-22 Thread Seymour J Metz
It turns out that I had the correct syntax but I had an error in a previous 
SET. Thanks.

--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
עַם יִשְׂרָאֵל חַי
נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר


From: IBM Mainframe Discussion List  on behalf of Sri 
Hari Kolusu 
Sent: Friday, March 22, 2024 2:05 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: // SET with multiple substitutions?

>> I'd like to do something like // SET FOO=&BAR.&BAZ and have the values of 
>> both symbols inserted rather than just one. Is there a way to do that?


Seymour,

If you have BAR and BAZ symbols defined before the FOO , it will substitute.

// SET BAR=PARM1
// SET BAZ=PARM2
// SET FOO=&BAR.&BAZ

Will result in

2 // SET BAR=PARM1
 3 // SET BAZ=PARM2
 4 // SET FOO=&BAR.&BAZ
   /*
   IEFC653I SUBSTITUTION JCL - FOO=PARM1PARM2


Thanks,
Kolusu



--
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


Re: // SET with multiple substitutions?

2024-03-22 Thread Sri Hari Kolusu
>> I'd like to do something like // SET FOO=&BAR.&BAZ and have the values of 
>> both symbols inserted rather than just one. Is there a way to do that?


Seymour,

If you have BAR and BAZ symbols defined before the FOO , it will substitute.

// SET BAR=PARM1
// SET BAZ=PARM2
// SET FOO=&BAR.&BAZ

Will result in

2 // SET BAR=PARM1
 3 // SET BAZ=PARM2
 4 // SET FOO=&BAR.&BAZ
   /*
   IEFC653I SUBSTITUTION JCL - FOO=PARM1PARM2


Thanks,
Kolusu



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


// SET with multiple substitutions?

2024-03-22 Thread Seymour J Metz
I'd like to do something like // SET FOO=&BAR.&BAZ and have the values of both 
symbols inserted rather than just one. Is there a way to do that?

--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
עַם יִשְׂרָאֵל חַי
נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר

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