a input file contains 1000 records, how to move the first
500 record into one out put file and how to move to second
500 records to anothere output file
Answer Posted / nishant
using IDCAMS utility
//sysin DD*
REPRO -
INFILE(DD1) -
OUTFILE(DD2) -
COUNT(500) COPYING FIRST 500 RECORDS
SKIP(500)
REPRO -
INFILE(DD1) -
OUTFILE(DD3) -
skip(500) -
COUNT(500) COPYING NEXT 500 RECORDS
/*
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How does the jcl specify the job to os?
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.
Can we call instream to catalog and catalog to instream?
Explain dd statement in jcl?
How can unused space allocation be returned to the system when a dataset is closed?
how you will the direct the data to spool using sysout option?
What are some jcl statements that are not allowed in procedures?
Matching Logic in Jcl not in cobol.Could any one please answer this question
What is the function of the dd dcb keyword?
How is the record format of an output dataset specified?
when does a dataset go uncataloged?
What do you understand by jcl?
What is timing concept in mainframe?
Explain the function of the steplib dd statement?
What is concatenating?