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

srot fields = copy

stopaft=6


next we have to give another step by using disp=(mod,delete,delete)

skiprec=7
stopaft=4

then 7th record gone remainging records into output file.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is jcl in mainframe, and how many types of jcl statements are there for a job?

731


Are there any set of rules for the names of the steps used in a job? What are they?

682


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

824


How jcl is used for testing batch programs?

824


IIN APITUDE THEY GAVE ONLY 10 QUESTIONS.. THEY ARE SIMPLE ONE FROM NUMBER SERIES,BOATS,TIME & DISTANCE,PROFIT &LOSS,FIND OUT THE NUMBER ? 9 25 4 36 81 64 49 AND surveillance SPELLINGS E.T.C

1724






Which dd parameters are required?

802


In sms datasets, what is the function of the dd mgmtclas keyword?

979


what sort card you will use to copy the data from one dataset to another dataset?

836


What do you know about jcl?

749


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

777


Explain in DD statement what is the use of DCB parameter?

745


what is a jcl?

772


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

968


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

759


In job processing, what happens in execution stage?

771