Suppose i have a file with 10 recs and i want to skip only the
7 th record and copy the rest into another file. How do i do
it using SORT?

Answer Posted / nishant singhal

SORT FIELDS=COPY
SKIPREC=06
STOPAFT=1

Is This Answer Correct ?    8 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

which parameter is use to declare the name of dataset in dd statement?

848


what operation is performed by job statement?

740


How can a fb file convert to vb file using sort program?

921


Define concatenating?

754


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

925






Describe the various parameters utilized in the creation of a gdg?

777


What is the function of the dd dcb keyword?

929


State the uses of syspring, sysin, sort fields, sum fields and dummy.

746


What are steplib and joblib?

821


What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?

9351


Where can program checkpoints be stored for use in a restart?

977


How can the submitting users racf authority be overridden in a job stream?

858


What is Cataloged Procedures?

794


what is the purpose of coding class parameter in job statement?

822


What is multithreading in jcl?

1037