How do you sort in a COBOL program? Give sort file
definition, sort statement syntax and meaning.
Answer Posted / bhaskar reddy
This is the exam for the sort command:
SORT SORTFILE ON ASCENDING/DESCENDING KEY USING FILE1,FILE2
GIVING FILE3.
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
How do we get current date from system with century in COBOL?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
What is the difference between external and global variables in COBOL?
how to convert the recors form vsam file to db2 table tru file aid
Why would you use find and get rather than to obtain?
how do you reference the fixed unblock file formats from cobol programs
What rules are followed by the search verb.
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
What are the pertinent COBOL commands?
What are the different data types in cobol?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
Define static linking and dynamic linking.
Write a cobol program making use of the redefine clause.
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
Explain how you can characterize tables in cobol?