How do you sort in a COBOL program? Give sort file
definition, sort statement syntax and meaning.

Answer Posted / subhashini

we can sort a cobol program define SD SORT-FILE in
FILE SECTION
THE SYNTAX IS
SORT SORT-FILE IN ASCENDING/DESCENDING KEY USING
INPUT-FILE GIVING OUTPUT-FILE.

Is This Answer Correct ?    8 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the utilization of copybook in cobol? Could we utilize a similar copybook?

720


What is a scope terminator give example?

659


Difference between cobol and cobol-ii?

714


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

825


Write a cobol program making use of the redefine clause.

739






Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5065


What rules are followed by the search verb.

638


how do you reference the esds vsam file formats from cobol programs

634


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1949


Write a program to enter and display the names of students in a class using the occurs clause.

654


What is the difference between Call and a Link?

702


What is the default value(s) for an initialize and what keyword allows for an override of the default?

697


What are the different rules for performing sort operation?

763


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

711


What are the different rules to perform a Search?

619