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
What is the difference between external and global variables in COBOL?
What are all the divisions of a COBOL program?
What are declaratives and what are their uses in cobol?
In which area will you utilize 88 level items in cobol?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
What is the local-storage section?
What are the pertinent COBOL commands?
Write the code implementing the perform … varying.
How many bytes S(8) comp field occupy and its maximum value?
Define cobol?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
How to print 10 to 1 if the input have only 10 digit number?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
Differentiate between structured cobol programming and object-oriented cobol programming.