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 can I get the negative sign while deduct high value from low value
What is the difference between structured cobol programming and object alternativelyiented cobol?
how do you reference the fixed unblock file formats from cobol programs
What is the utilization of copybook in cobol?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
How do you reference the following file formats from cobol programs?
What are the cobol coding sheets?
What are the pertinent COBOL
How to know whether the module is dynamical or statistical?
Why would you use find and get rather than to obtain?
What is the LINKAGE SECTION used in COBOL?
What are all the divisions of a COBOL program?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
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.
what is s000 u4087 error? please give the all error codes in cobol,jcl.