MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Question on Creating Temporary Datasets in JCL

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Thu Nov 04, 2004 12:31 pm    Post subject: Question on Creating Temporary Datasets in JCL Reply with quote

One basic question.

Is there a difference b/w using Single '&' and using Double '&' while creating a Temporary dataset in a JCL ?

Actually I got confused when browing a solution provided in this forum. I don't remember where I saw this while replying for some post, I remember Kolusu saying this "Note the use of single ampersands in the dataset name".

Kolusu, why did you stress this point. Is there a difference b/w & and && in a temp. dataset ?

Thanks,
Phantom
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Thu Nov 04, 2004 1:38 pm    Post subject: Reply with quote

Phantom,

I completely forgot about this question. In general, the system treats a single ampersand (&) followed by a character string of 1 to 8 characters as a symbolic parameter. However, if you code a data set name as a symbolic parameter (by coding DSNAME=&xxxxxxxx), and do not assign a value to or nullify the symbolic parameter, the system will process it as a temporary data set name. So techincally speaking both of the methods denotes creating temporary data set.

sometime back I had a problem with the referback of a dataset created with a single ampersand, but now it seems to wrok fine.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Fri Nov 05, 2004 3:39 am    Post subject: Reply with quote

Thanks for the explanation Kolusu,

Phantom
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group