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
Differentiate between structured cobol programming and object-oriented cobol programming.
In which area will you utilize 88 level items in cobol?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
What is the Purpose of Pointer in the string?
i need a small 3d program using inline and outline.
Which is not true about evaluate statement
Name the sections present in data division.
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
How do you define a variable of comp-1 and comp-2?
Which Search verb is equivalent to PERFORM…VARYING?
How do you reference the following file formats from cobol programs?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
what happens if parmparameter passes zero bytes to the program
Give some examples of command terminators?
What is cobol?