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


Please Help Members By Posting Answers For Below Questions

Differentiate between structured cobol programming and object-oriented cobol programming.

837


In which area will you utilize 88 level items in cobol?

888


What is the difference between a binary search and a sequential search what are the pertinent cobol?

926


What is the Purpose of Pointer in the string?

828


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

1892


Which is not true about evaluate statement

2095


Name the sections present in data division.

901


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1883


How do you define a variable of comp-1 and comp-2?

912


Which Search verb is equivalent to PERFORM…VARYING?

861


How do you reference the following file formats from cobol programs?

908


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8669


what happens if parmparameter passes zero bytes to the program

1877


Give some examples of command terminators?

948


What is cobol?

947