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 / saurabh gupta
using IDCAMS utility
//sysin DD*
REPRO -
INFILE(DD1) -
OUTFILE(DD2) -
COUNT(500) THIS IS FOR COPY FIRST 100 RECORDS
SKIP(500) IF WE WANT TO COPY ONLY 501 TO 1000 RECORDS
/*
| Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
What are the utility programs in jcl?
How to pass the parameter in parm using linkage section ? (syntax)?
how would you create a temporary dataset? And where will you use them?
when does a dataset go uncataloged?
which utility is used a dummy utility?
What is the use of symbol // in jcl?
What is the use of disp parameter?
I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK
How can the attributes of one sms dataset be copied to another dataset?
Why block size is multiple of lrecl in jcl?
What does a disposition of (MOD,DELETE,DELETE) mean ?
Differentiate between addressing mode and run mode.
What is timing concept in mainframe?
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?
How to execute 2nd and 4th steps among 5 steps in jcl proc?