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 is the difference between the positional and keyword parameters? Give examples.
Is their any set of rules for dd? Explain.
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
Explain how can a stopped job be started again?
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
How can the disposition of sysout datasets be set for an entire jobstream?
Explain the function of //jcllib statement?
in ways data can be passed to a COBOL program from JCL?
What parameter directs the output of the job log dataset?
how to compare two datasets without using superce because output is limited to 133 bytes
How to alter the parameters for the existing gdg?
What is the format of comment statement?
what operation is performed by job statement?
In job processing, what happens in execution stage?
write a jcl to execute a job by 7:00 am on jan 20,1986?