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


Please Help Members By Posting Answers For Below Questions

How you can characterize tables in cobol?

719


What the difference is between continue and next sentence?

664


Write a cobol program making use of the redefine clause.

736


Explain about different table spaces.

650


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2733






i need a small 3d program using inline and outline.

1640


What is the compute verb? How is it used?

661


What is the difference between Call and a Link?

700


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?

2099


i want a program using by if, evaluate , string, unstring, perform, occurs?

4061


what happens if parmparameter passes zero bytes to the program

1667


How do u write test cases?

1638


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1523


how do you reference the variable block file formats from cobol programs

688


What are literals?

632