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 1000 records in input file and i want to sort it and
the first 200 records to be placed in output file. how to
do that??

Answer Posted / rajesh

//SYSIN DD *
SORT FIELDS=COPY,
OUTREC FILEDS=(1,2,CH,A) --> WHATEVER U WANNT TO SORT
STOPAFT=100
//

hope this does..

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what EXEC statement is and what is the syntax of EXEC statement used in JCL?

1114


What are the difference between jcl and jes?

1543


Explain the function of job statement in jcl?

1131


How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.

5479


List the various advantages of using jcl language?

1390


how can you check if a file is empty using jcl?

1349


Explain about ISPF/TSO Commands

1868


How can the attributes of one sms dataset be copied to another dataset?

1353


Explain the purpose of the dd keylen parameter?

1101


My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.

2404


What is Cataloged Procedures?

1107


can any one plzzzzzz tell the jcl code for creating ps using idcams

11538


Explain the job statement in jcl?

1113


How do you create a temporary dataset?

1118


What is jcl in mainframe?

1141