GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Mainframe  >  JCL

 Print  |  
Question:  DISP Parameter

Answer: 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?


April 04, 2009 16:37:30 #5
 dhs01   Member Since: April 2009    Total Comments: 24 

RE: DISP Parameter
 

Almost correct.

DISP=(NEW,PASS,CATLG),
The results depend on the data set not the run.
If the data set currently exists, it would then depend on where it was being allocated. If the allocation was to the same dasd as the current one, you would get a jcl error. If it were being allocated to a different dasd, your job could run. If the step runs sucessfully, the data set disposition would be determined by subsequent steps with the default being delete. If the step abends, the data set would be cataloged unless there was a previously cataloged data set by that name in which case it would be kept and you would get a not catlg 2.

     

 

Back To Question