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

For what purpose steplib and joblib are used ?

1097


What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?

2498


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

1120


What is the function of //jcllib statement?

1287


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 ?

9718


what is the compile process of cobol program expalin with code

2525


how do you code a null statement?

1301


When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?

1421


Explain how can the disposition of sysout datasets be set for an entire jobstream?

1055


What is timing concept in mainframe?

2176


What is the function of the dd dcb keyword?

1293


Name the statement which can be used to send data to another mvs jes3 node?

1147


Is automatic restart possible in jcl? If yes, how?

1088


What are steplib and joblib?

1134


How can return codes be tested before execution of a job step?

1451