View previous topic :: View next topic
|
Author |
Message |
samzee71
New User
Joined: 01 Feb 2010 Posts: 8 Location: Dallas, TX, USA
|
|
|
|
I am generating the jcl using file tailoring. The skeleton jcl uses the temporary dataset &&dataset1 which get converted to &dataset1 in the generated jcl.
&& gets converted to &
Code: |
ORIGINAL CODE:
//OUTFILE DD DSN=&&DATASET1,DISP=(NEW,PASS,DELETE)
CONVERTED CODE:
//OUTFILE DD DSN=&DATASET1,DISP=(NEW,PASS,DELETE) |
Please advice. |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2023 Location: USA
|
|
|
|
1) JCL rule: both &&DATASET, and &DATASET are considered as the same temporary DSNAME
2) File Tailoring rule: in order to generate each single apostrophe, two '&' characters in a row must be used:
'&&' --> '&'
'&&&&' --> '&&' |
|
Back to top |
|
|
samzee71
New User
Joined: 01 Feb 2010 Posts: 8 Location: Dallas, TX, USA
|
|
|
|
Thanks alot |
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 712 Location: Denmark
|
|
|
|
Quote: |
1) JCL rule: both &&DATASET, and &DATASET are considered as the same temporary DSNAME |
Unless there is a SET symbol (or system symbol if activated for batch jobs) with that name, so I would advocate always using double ampersands for temporary datasetnames. |
|
Back to top |
|
|
|