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 do you understand by the terms: joblib and steplib?

626


What parameter directs the output of the job log dataset?

763


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

811


what happens in conversion stage in job processing?

728


What is the format of comment statement?

662






Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?

668


in ways data can be passed to a COBOL program from JCL?

663


Must tape dataset definitions include vol=ser specifications?

972


Explain how can a jobs execution priority be modified?

736


what EXEC statement is and what is the syntax of EXEC statement used in JCL?

628


I have mainpgm(abc) this is the only cobol pgm(non-db2).And this pgm calling subpgm name "acd" this also only cobol(non- Db)and this pgm calling some other subpgm this pgm has cobol-db2 pgm. 1) IF you calling static mode how to run and how to compile? 2) IF you calling dynamic mode how to run and how to compile? plz suggestion me.

1947


what are the statements that are not valid to be included in an include statement?

776


what is use of dsn parameter in dd statement?

667


What is condition checking in jcl? Is this possible?

622


Is acct parameter mandatory?

758