15 pts.
 Using an ampersand in JCL
Does anyone know how to handle 2 &'s together in a JCL ?? I mean in my jcl after replacement of my variables, it is coming like '&&'. No errors on jj but run time error 'Incorrect use of ampersand' !! Please reply asap, urgent requirement. Thanks!!

Software/Hardware used:
ASKED: November 19, 2010  2:00 PM
UPDATED: November 22, 2010  1:04 PM

Answer Wiki:
Generally a single ampersand is used for a variable. example: 001150 // SET PARM1='some.dataset' ---- //JCLIN DD DSN=&PARM1.,DISP=SHR Two ampersands can be used for a temporary dataset. example: 002500 //SYSUT1 DD DSN=&&WORK,SPACE=(CYL,(5,5)),UNIT=DASD You state "in my jcl after replacement of my variables, it is coming like '&&'. " What does your JCL look like? Can you show me the line or two involved ? What it looks like before submitting the job and what it looks like after submitting the job? You aren't by chance trying to replace a parm with a value that contains an ampersand, are you?
Last Wiki Answer Submitted:  November 19, 2010  3:26 pm  by  Meandyou   5,205 pts.
All Answer Wiki Contributors:  Meandyou   5,205 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

yes, I was trying to do the later one. But got the solution after a lot of hit and trials. I achieved what I wanted to, thru OPC.
My basic requirement was to include the current date in my dataset name.

Thanks for your effort, I really appreciate it. :)

 15 pts.