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 100 records in a file.. i want to sort the records from
5 to 5o... give the syntax...

Answers were Sorted based on User's Feedback



I have 100 records in a file.. i want to sort the records from 5 to 5o... give the syntax.....

Answer / seema dawlekar

This can be done in two steps
in the step1 copy the the selective records by giving the
syntax as
skiprec = 4 -
stopaft = 50

this will copy only the selected records, now in the step2
we can perform sort
syntax is
sort fields=(starting position,length,type,A/D)
A--ascending and D--descending order

correct me if I am wrong

Is This Answer Correct ?    17 Yes 0 No

I have 100 records in a file.. i want to sort the records from 5 to 5o... give the syntax.....

Answer / anand

Follow the workaround below,
1.split the file into 3 files using IDCAMS
file1 1-4
file2 5-50
file3 51-100

2.Sort the mid file file2.

3.Finally merge all the 3 files using concatenation.

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More COBOL Interview Questions

Where the Plan is located in CICS-DB2

2 Answers   IBM,


which of the following can be used as a check protection symbol a.Z b.S c.* d.+

2 Answers   TCS,


HI THIS IS ANIL. HOW TO PASS A RECORDS OF A FILE(PS OR PDS) TO AN ARRAY?

2 Answers  


Can we put move statement in COBOL copybook

3 Answers   Global Logic,


Whats the difference between search & search ALL?

3 Answers   IBM,


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

0 Answers  


I have a File that has duplicate records. I need only those records that occur more than thrice.?

3 Answers   IBM, Wipro,


plz any one tell clearly the justify right clause?

1 Answers  


what is call by value and call by reference ?

3 Answers   Infosys, ITC Indian Tobacco Company,


How to print 10 to 1 if the input have only 10 digit number?

0 Answers  


how to check whether the open command of a sequential file is successful? or not?

2 Answers   CSC, IBM,


What is report-item in COBOL?

0 Answers   Arigo Infotech,


Categories