Disp parameter
Posted: 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?
Mainframe Technical Support Forums
https://www.ibmmainframeforum.com/
This depends on what happens when the process is run. . . It also depends on what else has happened with the dataset between runs.What will happen when the JCL is run? The first time? The second time?
As is this. . .Generating data group... i miss-spelled gda......
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?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?
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.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?