What is DISP= (NEW,PASS,DELETE)?

Answers were Sorted based on User's Feedback



What is DISP= (NEW,PASS,DELETE)?..

Answer / guest

This is a new file and create it, if the step terminates
normally, pass it to the subsequent steps and if step
abends, delete it. This dataset will not exist beyond the JCL.

Is This Answer Correct ?    47 Yes 5 No

What is DISP= (NEW,PASS,DELETE)?..

Answer / suresh

we use disp = (new,pass,delete) to create temporary data sets.
new is creates a new data set
pass on sucessful execution passes the datta set
delete it deletes the data setfrom the system

Is This Answer Correct ?    9 Yes 0 No

What is DISP= (NEW,PASS,DELETE)?..

Answer / vamsi

Ued for identified the status a data set.
EX:DISP=SHR
IT TELLS DATA SET IS OLD(ALREADY CREATED ) BUT USING IN
SHARE MODE.

Is This Answer Correct ?    1 Yes 10 No

Post New Answer

More JCL Interview Questions

Explain about REXX

1 Answers  


In order to continue a job after a return code of 12 in step1, what the step2 exec statement include?

1 Answers  


What is timing concept in mainframe?

1 Answers  


Is it possible to left uncode disp?

1 Answers  


What are the common keyword parameters in both job and exec statements

4 Answers   Cap Gemini,


Explain dd statement in jcl?

1 Answers  


I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?

1 Answers  


Hi, I have 3 files say file A , file B and file C.I want to form an output file in which i will have all the records from file A. Files B and C also may contain records that are present in file A.I want those records also to be included in my output file. for eg: file A contains: 1 2 3 file B contains: 2 4 5 file C contains: 1 3 5 So in my output file should look like: 1 2 3 2 1 3 Can any one help ???.....thanks in advance.

2 Answers  


How do you create a temporary dataset?

1 Answers  


Please go thru the below points and let me know how to code this. 1. Sort the input dataset for the condition : Starting position is 37,length of the field is 13 based on character and in the ascending order , starting from position 25 length of 12 ,character and in the ascending order. Use a temporary dataset to hold the sorted file. 2. Use the temporary file created in the above step as the input for the next step. The next step is to execute a program and produce an output file. Use the temporary file created in the above as work file 1 and the output of the file to be created in this step work file 2.Also, pass a parameter to the program that is to be executed in this step. The parameter should have the current date in YYYYMMDD format. For the sake of convenience, you can use the below Job Name : Sample1 Input DSN : PCABDT11.CABD.TEST.INPUT Temporary DSN : Sort1 Output DSN : PCABDT11.CABD.TEST.OUTPUT Program Name : SAMPLE Thanks in Advance for your response.

2 Answers  


what are the various stages of job processing?

1 Answers   IBM,


Must tape dataset definitions include vol=ser specifications?

1 Answers  


Categories