How do you sort in a COBOL program? Give sort file
definition, sort statement syntax and meaning.
Answer Posted / kavya
As he told above we need to specify the sort-file in sd
entry.
But syntax is as follows,
SORT SORT-FILE ON ASCENDING/DESCENDING KEY
USING INPUT-FILE
GIVING OUTPUT-FILE.
We have to specifies the key to sort.
INPUT-FILE is the file to sorted.The sorted OUTPUT is sent
to the OUTPUT-FILE.
Is This Answer Correct ? | 34 Yes | 3 No |
Post New Answer View All Answers
How do you reference the fixed block file formats from cobol programs
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
What are the different data types in cobol?
What is amode(31)
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
How do you define a variable of comp-1 and comp-2?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
What is the difference between PIC 9.99 and PIC9v99?
How to know whether the module is dynamical or statistical?
What kind of error is trapped by on size error option?
What is the difference between Call and a Link?
What is length is cobol?
What type of SDLC u followed? Why?