Disp parameter



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Disp parameter

Postby vipinrye » Thu May 27, 2010 6:34 pm

If the DISP parameter for a dataset is DISP=(NEW,PASS,CATLG), What will happen when the JCL is run? The first time? The second time?
vipinrye
 
Posts: 7
Joined: Mon May 24, 2010 6:13 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Disp parameter

 

GDA

Postby vipinrye » Thu May 27, 2010 6:35 pm

what is gda .. can any explain with example?
vipinrye
 
Posts: 7
Joined: Mon May 24, 2010 6:13 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Disp parameter

Postby Robert Sample » Thu May 27, 2010 6:41 pm

Could you explain what you mean by "gda"? I just did a search of the JCL Language Reference and User's Guide manuals and neither one has a single reference to "gda". This is not a term used in JCL, and how does it relate to the DISP parameter that is the subject of your post?
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 222 times

Re: Disp parameter

Postby dick scherrer » Thu May 27, 2010 11:29 pm

Hello and welcome to the forum,

What will happen when the JCL is run? The first time? The second time?
This depends on what happens when the process is run. . . It also depends on what else has happened with the dataset between runs.

As Robert asks - what is GDA? Is this possibly supposed to be GDS (i.e. a typo)? Is this a completely different question?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

GDG

Postby vipinrye » Fri May 28, 2010 5:53 pm

instead of gdg.. Generating data group... i miss-spelled gda...... can u explain about gdg
vipinrye
 
Posts: 7
Joined: Mon May 24, 2010 6:13 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Disp parameter

Postby Robert Sample » Fri May 28, 2010 6:28 pm

What do you need to know about a GDG that is not already explained in the JCL Language Reference and Users Guide manuals?
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 222 times

Re: Disp parameter

Postby dick scherrer » Fri May 28, 2010 10:53 pm

Hello,

Generating data group... i miss-spelled gda......
As is this. . .

The word is Generation rather than Generating. . . Which would be most difficult (impossible) to find in any manual. These are also sometimes called Generation Data Sets (GDS).

In our business using the correct words is critical for any kind of communication or personal research.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: Disp parameter

Postby Robert Sample » Fri May 28, 2010 11:14 pm

As Dick said, terminology in IT is absolutely critical since similar terms may mean very different things. So far you've proved that you cannot provide a three-letter acronym without misspelling it. And the manuals provide everything you care to know about GDGs. If you have questions AFTER reading them, we can provide guidance -- but you need to read them first; we're neither a manual reading service nor a code (JCL) providing service.

As far as this goes,
If the DISP parameter for a dataset is DISP=(NEW,PASS,CATLG), What will happen when the JCL is run? The first time? The second time?
the questions as stated cannot be answered. The kinds of things we need to know to be able to adequately answer are: Is the data set permanent or temporary? Is the data set under SMS control or not? Is the data set a GDG or not (and if it is, what is the generation limit and which generation is being added)? And why on earth would such a weird disposition be used anyway -- pass the data set to the next step if this step runs normally but catalog the data set if this step abends?
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 222 times

Re: Disp parameter

Postby dick scherrer » Sat May 29, 2010 12:09 am

Hi Robert,

And why on earth would such a weird disposition be used anyway -- pass the data set to the next step if this step runs normally but catalog the data set if this step abends?
A few times i've seen this used (in testing) so that the content of a "new" dataset can be seen when the process abends. If the step ran correctly the dataset was "passed" and disposed of later in the test job. More often it was (new, catlg, catlg) for testing and then (new, catlg, delete) when the testing was pretty well finished.

Once upon a time (back in the day of mft/mvt) i seem recall minor wars about the overhead of cataloging versus passing a dataset . . .

My practice has been for a very long time is to only pass datasets with dsn=&&xxxx.tttt.uuu :)

fwiw. . .

d
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: Disp parameter

Postby rajasekhar4u » Sat May 29, 2010 11:19 am

In this at the starting of the job a new pds/ps depending on your code is created. In(PASS) normal termination of of the job ps/pds is passed to the next Job, In abnormal termination of the job the ps/pds is Cataloged.
rajasekhar4u
 
Posts: 1
Joined: Sat May 29, 2010 10:58 am
Has thanked: 0 time
Been thanked: 0 time

Next

Return to JCL

 


  • Related topics
    Replies
    Views
    Last post