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

How I sort the records in a file and copy the first 10
records to another file

Answer Posted / balasukumar

//SORTIN DD DSN=INF1
//SORTOT DD DSN=OTF
//SYSIN DD *
SORT FIELDS = COPY
SKIP=0
STOPAFT=10
/*

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is notcat 2 - gs?

1515


have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file

1568


What parameter of the job statement is used to limit the cpu time consumed by the job?

1336


State the uses of syspring, sysin, sort fields, sum fields and dummy.

1140


I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?

1268


what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?

1349


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

1214


which parameter is use to declare the name of dataset in dd statement?

1322


Is it possible to code instream data in a PROC?

1399


What is jcl in mainframe?

1263


What is the function of the dd dcb keyword?

1397


Must tape dataset definitions include vol=ser specifications?

1785


How to run cobol program using jcl?

1294


Explain about LMFREE�free data set from its association with data ID

1678


Matching Logic in Jcl not in cobol.Could any one please answer this question

4227