you have one jcl .in sort step 5 files are there.if out of 5
files if one file is uncataloged or not there then how will
you correct your jcl so that problem does not come. you
should not create this file externally.how will u overcome
it.

Answers were Sorted based on User's Feedback



you have one jcl .in sort step 5 files are there.if out of 5 files if one file is uncataloged or n..

Answer / alokedeb@gmail.com

I agree with Haritha's answer, but the exception is say if
you want to dummy out the 3rd file. If you use "DD Dummy"
then the subsequent 4th and 5th file will not be processed.
So in the override you will have to manually remove the 3rd
file and push the 4th & 5th file above.

Is This Answer Correct ?    2 Yes 0 No

you have one jcl .in sort step 5 files are there.if out of 5 files if one file is uncataloged or n..

Answer / venkat

you can override the uncataloged file with a dummy file or we can use two job steps in the jcl statement..one to create the 5th file using IEFBR14 utility and IEBGENER to copy records from a file to 5th file..........then sorting can be done.

Is This Answer Correct ?    2 Yes 1 No

you have one jcl .in sort step 5 files are there.if out of 5 files if one file is uncataloged or n..

Answer / haritha

You can override the uncataloged file with a dummy file in
the jcl and run the jcl with the existing 4 files.

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More JCL Interview Questions

how to identify the file used in the JCL is an VSAM file. Just seeing the JCL code how can we track the file as VSAM file?

6 Answers   CSC,


What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step?

0 Answers  


do we need to mention the location of catalogued procedure for each it's call in a single job?

1 Answers  


Explain about LMPUT-

1 Answers  


when we use sysprint and sysout statements

3 Answers  






How many instream we can write in single jcl?

1 Answers  


In all our JOB Statement we have always COND=(4,LT) defined. Nevertheless when a Job failed the last step should then be executed (send a message to an user). Due to we don't like to change all our JOB's (ca. 2000), we are looking for a simply solution.

4 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  


What is the use of disp parameter?

0 Answers  


wt will happen to the step of a job if u code COND=ONLY

5 Answers   ADP,


Can we Execute a job without specifying Job Name in the Job Card?

2 Answers  


What is the use of IEBGENER ?

2 Answers   Cap Gemini, Wipro,


Categories