View previous topic :: View next topic
|
Author |
Message |
smile_rajeev
New User
Joined: 22 Apr 2005 Posts: 24
|
|
|
|
is it possible to sort datas in the file using more than two key fields using cobol sort function.. |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Yes, you can sort a file on two key basis by cobol SORT function.
SORT File-Work ASCENDING KEY field1 DESCENDING KEY field2 .....
Regards,
Priyesh. |
|
Back to top |
|
|
smile_rajeev
New User
Joined: 22 Apr 2005 Posts: 24
|
|
|
|
I wnt to know whether this code will work in cobol..
SORT File-Work ASCENDING KEY field1 ,field2 ,field3,field4..... |
|
Back to top |
|
|
|