View previous topic :: View next topic |
Author |
Message |
Phantom Data Mgmt Moderator
Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Thu Nov 04, 2004 12:31 pm Post subject: Question on Creating Temporary Datasets in JCL |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Thu Nov 04, 2004 1:38 pm Post subject: |
|
|
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 |
|
|
Phantom Data Mgmt Moderator
Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Fri Nov 05, 2004 3:39 am Post subject: |
|
|
Thanks for the explanation Kolusu,
Phantom |
|
Back to top |
|
|
|
|