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
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
How do you differentiate between cobol and cobol-ii?
Difference between cobol and cobol-ii?
Explain what you understand by passing by value.
I have a File that has duplicate records. I need only those records that occur more than thrice.?
What are the different types of condition in cobol and write their forms.
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
What is report-item in COBOL?
how do you reference the printer file formats from cobol programs
What is the usage of comp fields in cobol?
What is the difference between comp and comp-3?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
What are the different rules of SORT operation?
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?
what is search and searchall?what is the diffrence between them?give an best example?