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 / kalpesh
THIS IS FOR COPYING FIRST 500 RECORDS
using IDCAMS utility
//sysin DD*
REPRO -
INFILE(DD1) -
OUTFILE(DD2) -
COUNT(500) COPYING FIRST 500 RECORDS
SKIP(500)
/*
THIS IS FOR COPY next 500 RECORDS
using IDCAMS utility
//sysin DD*
REPRO -
INFILE(DD1) -
OUTFILE(DD2) -
skip(500) -
COUNT(500) COPYING FIRST 500 RECORDS
/*
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how to run batch program without jcl?
What is multithreading in jcl?
What is the purpose of dd * statement in jcl?
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?
How can an in-stream dataset be terminated?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
What are some jcl statements that are not allowed in procedures?
how do you access an uncataloged dataset in a jcl?
What is jcl in mainframe?
What are the parameters that are used in creating a gdg?
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?
How can return codes be tested before execution of a job step?
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.
What is one line to pass PARM from JCL to COBOL?