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


Please Help Members By Posting Answers For Below Questions

What are the rules employed while naming the steps in a job?

939


Can I send output of job to my remote device careerride123?

914


Which statement is used to identify the private libraries in job?

936


how do you access an uncataloged dataset in a jcl?

1287


What is the maximum length of a single line of jcl?

1074


What is Cataloged Procedures?

916


what is DSN parameter and DISP parameter is used for?

896


What is one line to pass PARM from JCL to COBOL?

4697


What is the motivation behind coding class parameter in job statement?

921


What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?

1081


How gdg are concatenated?

882


Explain dfsort utility?

1084


Explain how can the attributes of one sms dataset be copied to another dataset?

970


Explain the function of dd disp parameter?

826


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

945