Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
File Tailoring -- Temporary dataset in skeleton

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
samzee71

New User


Joined: 01 Feb 2010
Posts: 8
Location: Dallas, TX, USA

PostPosted: Fri Dec 01, 2017 3:12 am    Post subject: File Tailoring -- Temporary dataset in skeleton
Reply with quote

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
View user's profile Send private message

sergeyken

Active User


Joined: 29 Apr 2008
Posts: 265
Location: Maryland

PostPosted: Fri Dec 01, 2017 3:50 am    Post subject:
Reply with quote

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
View user's profile Send private message
samzee71

New User


Joined: 01 Feb 2010
Posts: 8
Location: Dallas, TX, USA

PostPosted: Fri Dec 01, 2017 4:01 am    Post subject:
Reply with quote

Thanks alot
Back to top
View user's profile Send private message
Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 196
Location: Denmark

PostPosted: Fri Dec 01, 2017 2:55 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Find a string in PS file opened in br... mukkas CLIST & REXX 2 Sat Feb 24, 2018 2:15 pm
No new posts eliminate dups in VB file anatol DFSORT/ICETOOL 6 Tue Feb 13, 2018 2:59 am
No new posts Tape file issue abdulrafi JCL & VSAM 2 Thu Feb 08, 2018 12:01 pm
No new posts Where to get sample for processing RM... vice_versa PL/I & Assembler 2 Tue Jan 16, 2018 2:03 pm
No new posts VSAM dataset not found abdulrafi JCL & VSAM 5 Fri Jan 12, 2018 11:19 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us