i have 10,000 records in one input file.i want to sort 1 to
5000 records in one outputfile and remaining records sort in
another output file write the syntax for this?

Answer Posted / albert

SORT FIELDS=COPY
OUTFIL FILES=1,STOPAFT=5000
OUTFIL FILES=2,SKIPREC=5000

Is This Answer Correct ?    27 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY

862


what are the various stages of job processing?

743


what is DSN parameter and DISP parameter is used for?

681


How to pass the parameter in parm using linkage section ? (syntax)?

655


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

692






What are steplib and joblib?

725


How to override loadlib?

1432


How can a jobs execution priority be modified?

802


Is it possible to define dd statements as you want?

646


Explain the purpose of dd dummy statement?

675


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

831


if the submitter of a job wants to inform another user about the job completion, how can it be done?

759


How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?

2174


what are JCLLIB and STEPLIB in JCL?

683


how to compare two datasets without using superce because output is limited to 133 bytes

1486