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
can any one plzzzzzz tell the jcl code for creating ps using idcams
What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?
The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?
which parameter is use to declare the name of dataset in dd statement?
What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?
What is one line to pass PARM from JCL to COBOL?
which utility is used a dummy utility?
What is the motivation behind coding class parameter in job statement?
Can we use DISP=SHR in output file in JCL
What methodology can be adapted to transfer data to a program that is coded using the exec statement?
What is the job entry system used in your project? based on what criteria the sequence of jobs are picked if priority is not mentioned in the job card?
What are some jcl statements that are not allowed in procedures?
Explain the hierarchy levels in jcl?
what sort card you will use to copy the data from one dataset to another dataset?
Are there any set of rules for the names of the steps used in a job?