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: 369
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: 228
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 Convert VB file to FB plus special fo... cz016m SYNCSORT 12 Fri Oct 19, 2018 7:26 pm
No new posts Picking up the latest PS file pema_yozer JCL & VSAM 8 Thu Oct 11, 2018 12:26 pm
No new posts Process only last key record in a fil... Naveen.katkuri24 DFSORT/ICETOOL 8 Tue Oct 09, 2018 9:39 am
No new posts ISPF 3.4 edit of a ps file, disp use... Carrie Da Silva TSO/ISPF 3 Fri Sep 21, 2018 3:01 am
No new posts ICETOOL - Finding keys within a file nartcr DFSORT/ICETOOL 10 Mon Sep 17, 2018 6:39 am

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