GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Mainframe  >  JCL
Go To First  |  Previous Question  |  Next Question 
 JCL  |  Question 126 of 128    Print  
DISP Parameter
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?


  
Total Answers and Comments: 6 Last Update: July 20, 2009     Asked by: Mainframer18 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Shashank Gite
 
In each run first run of JOB, if the JOB abends the data set will be cataloged and in second run it will give JCP ERROR ( Data set already cataloged). While if in the first run JOB ,it runs successfully data set will be created temporarily to be used by another steps in the same JOB but at the end of the JOB data set will not be there, because it is not cataloged.

Above answer was rated as good by the following members:
ishabudhiraja, kamal2lav
August 17, 2008 03:49:42   #1  
arun442 Member Since: August 2008   Contribution: 3    

RE: DISP Parameter
In such case first time a new folder/file will be created and if succesful completion of programme is there then that program will be passed otherwise the JCL program will be catalogue in this case.
 
Is this answer useful? Yes | No
August 19, 2008 04:38:37   #2  
sureshgreetsu Member Since: August 2008   Contribution: 2    

RE: DISP Parameter
A new dataset will be created first . For successful execution of the program the dataset will be passed to next step in the Job . For unsuccessful execution of the program the dataset will be cataloged
 
Is this answer useful? Yes | No
November 15, 2008 01:39:03   #3  
raghu_k213 Member Since: November 2008   Contribution: 5    

RE: DISP Parameter
For the 1st time if the job execute successful then data set will be created and then passed to the next step. If the job abbends then it will catalog.
For the 2nd execution it will show that duplicate data set name.

 
Is this answer useful? Yes | No
January 02, 2009 23:41:22   #4  
Shashank Gite Member Since: January 2009   Contribution: 3    

RE: DISP Parameter
In each run first run of JOB if the JOB abends the data set will be cataloged and in second run it will give JCP ERROR ( Data set already cataloged). While if in the first run JOB it runs successfully data set will be created temporarily to be used by another steps in the same JOB but at the end of the JOB data set will not be there because it is not cataloged.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
April 15, 2009 16:37:30   #5  
dhs01 Member Since: April 2009   Contribution: 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.


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
July 20, 2009 12:03:59   #6  
hariprasad.mail2shp Member Since: July 2009   Contribution: 2    

RE: DISP Parameter

DISP(NEW Suc Unsuc)

Suc - > when the job runs succesfully the file will take the status that is mentioned here
Unsuc-> when the job failes the file will take the status that is mentioned here





 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape