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
How you can characterize tables in cobol?
What the difference is between continue and next sentence?
Write a cobol program making use of the redefine clause.
Explain about different table spaces.
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
i need a small 3d program using inline and outline.
What is the compute verb? How is it used?
What is the difference between Call and a Link?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
i want a program using by if, evaluate , string, unstring, perform, occurs?
what happens if parmparameter passes zero bytes to the program
How do u write test cases?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
how do you reference the variable block file formats from cobol programs
What are literals?