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

hi,

Using dfsort

//step10 exec pgm=sort
//sirtin dd dsn=userid.qulifier.psname,disp=shr
//sortout dd dsn=userid.qulifier.psname,disp=shr

sort fields=(starting position,length,cha,asc/dsc)
stopaft=10

now u get result sortout ps.

Is This Answer Correct ?    23 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we call instream to catalog and catalog to instream?

1145


what is use of space parameter in dd statement?

1283


Mention the types of job control statements?

1174


How does jcl act on code(if you take a cobol program)?

1290


I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?

2564


What is the significance of addrspc parameter in exec statement?

1210


How can a jobs execution priority be modified?

1293


What is the function of dd disp parameter?

1135


what are the types of abends that occur on job failure? And explain the possible causes of these

1624


How do you submit a job for execution?

1111


How can unused space allocation be returned to the system when a dataset is closed?

1496


How would you understand error(execution phase)?

1252


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

4156


What dd statement is used to supply the name of a dataset?

1386


how to run batch program without jcl?

11560