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

Hi, Please clear me when COND=ONLY and COND=EVEN. Explain me with example.

2 Answers   GJ,


How can you trap abends in the JCL?

3 Answers  


How to run cobol program using jcl?

0 Answers  


when we use sysprint and sysout statements

3 Answers  


shall we concordinate two different length dataset in to a new date set.

6 Answers  






by using cond parameter maximum 8 cond can be coded in single cond means ?explain

0 Answers  


What do you feel makes a good program?

1 Answers  


If the proc stepname is excluded while overriding the COND, TIME, REGION and PARM parameters while calling the proc, will the override only apply to the first step in the proc or all the steps for all the above parameters?

2 Answers  


wht is sysudump n sysout,sysprint ?

1 Answers   L&T,


Is it possible to code instream data in a PROC?

0 Answers  


I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.

0 Answers  


I have two files each contains 10 records. I would like to copy both files into one output file but in alternate sequence. for e.g. first record from file1 then record 2 from file2.....

3 Answers   RBS,


Categories