I have 100 records in a file.. i want to sort the records from
5 to 5o... give the syntax...
Answer Posted / 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 View All Answers
I have a File that has duplicate records. I need only those records that occur more than thrice.?
What are the pertinent COBOL commands?
What is the difference between goback, stop run and exit program in cobol?
Can you please let me know the centre name of INS certification in Kolkata.
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
Difference between array and sub-script ?
What is a scope terminator give example?
how do you reference the variable block file formats from cobol programs
Can we change the password using ALTER? anyone tried and changed?
How do we get current date from system with century in COBOL?
Write a program to enter and display the names of students in a class using the occurs clause.
What is the Purpose of Pointer in the string?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
Have you used comp and comp-3 in your project? And how?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)