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: 232
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: 186
Location: Switzerland

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 ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm
No new posts unable to set RC = 4 when empty file migusd SYNCSORT 1 Tue Nov 21, 2017 1:21 am
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am

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