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 / jeeva225

sort fields=copy
outfil files=1,startrec=1,endrec=200

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you understand by the term notcat 2 – gs?

831


Matching Logic in Jcl not in cobol.Could any one please answer this question

3758


Brief description of inline procedure of jcl.

740


Explain the purpose of the dd keylen parameter?

751


what JCL Procedures?

775






How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?

1864


Explain how can a jobs execution priority be modified?

814


Explain how can an in-stream dataset be terminated?

778


Can we use DISP=SHR in output file in JCL

1040


How do you access an uncatalogued dataset in a jcl?

797


how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?

868


What dd statement is used to supply the name of a dataset?

881


Why block size is multiple of lrecl in jcl?

993


Can an individual step be restricted from using all the jobs allowed cpu time?

1087


What is concatenating?

694