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
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 |
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 |
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 |
Hi, Please clear me when COND=ONLY and COND=EVEN. Explain me with example.
How can you trap abends in the JCL?
How to run cobol program using jcl?
when we use sysprint and sysout statements
shall we concordinate two different length dataset in to a new date set.
by using cond parameter maximum 8 cond can be coded in single cond means ?explain
What do you feel makes a good program?
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?
wht is sysudump n sysout,sysprint ?
Is it possible to code instream data in a PROC?
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.
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.....