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...

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

@Albert:
IF we are using Outfil, we won't use Skiprec & stopaft.

My Answer:
Step1:
sort fields=copy
outfil files=01,endrec=5000
outfil files=02,startrec=5001,endrec=10000
Step2:
Sort fields=(pos,leng,cha,a or d)

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to alter the parameters for the existing gdg?

1256


Why block size is multiple of lrecl in jcl?

1476


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

1339


What is use of restart and how to use it?

1362


Name what parameter directs the output of the job log dataset?

1105


Differentiate between addressing mode and run mode.

1134


what is the use of IEBGENER utility?

1227


what is JCL?

1220


Is it possible to left uncode disp?

1250


What methodology can be adapted to transfer data to a program that is coded using the exec statement?

1270


how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?

1460


what is SOC4 error?

1273


Explain the function of the steplib dd statement?

1179


What is the syntax of JCL statement?

1291


what is use of dsn parameter in dd statement?

1201