Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

This can be done using two SORTs in a JCL.
1. In the first SORT, sort the file and create two output
files.
File 1: Containing records from 1 to 7
File 2: Containing records 9 & 10

//SYSIN DD*
SORT FIELDS=COPY
OUTFIL FILES=01,ENDREC=07
OUTFIL FILES=02,STARTREC=09,ENDREC=10
/*

2. Use another SORT statement and then merge the two
statements created above.

Is This Answer Correct ?    13 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the function of dd disp parameter?

1170


Can we call instream to catalog and catalog to instream?

1186


i want to store 20 digits . how will u do it in cobol ?

1486


Explain how can an in-stream dataset be terminated?

1404


What parameter directs the output of the job log dataset?

1316


what are the various stages of job processing?

1345


Explain the job statement in jcl?

1212


is there any way to execute more than one proc in the same exec statement at the same time..?

2673


Name the parameters which can be used to limit the number of records written to a sysout dataset?

1201


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

1186


In job processing, what happens in conversion stage?

1239


what is use of dsn parameter in dd statement?

1199


How to submit a jcl from cics?

1200


a dd statement has 2 types of parameters. Name them?

1171


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

2727