i have 1000 records in input file and i want to sort it and
the first 200 records to be placed in output file. how to
do that??
Answer Posted / felix
sorry. my previous answer is wrong.
use the following coding in JCL.
First u should sort the file using sort pgm. enter the
sorted file path in input data set.
//SYSIN DD*
REPRO
INDATASET(WRITE THE INPUT PATH)
OUTDATASET(WRITE THE OUTPUT PATH)
COUNT(200)
Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
What are the rules employed while naming the steps in a job?
Can I send output of job to my remote device careerride123?
Which statement is used to identify the private libraries in job?
how do you access an uncataloged dataset in a jcl?
What is the maximum length of a single line of jcl?
What is Cataloged Procedures?
what is DSN parameter and DISP parameter is used for?
What is one line to pass PARM from JCL to COBOL?
What is the motivation behind coding class parameter in job statement?
What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
How gdg are concatenated?
Explain dfsort utility?
Explain how can the attributes of one sms dataset be copied to another dataset?
Explain the function of dd disp parameter?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?