How do you sort in a COBOL program? Give sort file
definition, sort statement syntax and meaning.
Answer Posted / mftech
Need to define the SORT-FILE in SD in file section.
Sort SORT-FILE
Using Input-File
Giving Output-File
Can also use inout procedure and output ptocedure inplace
of input fiile and output files.
| Is This Answer Correct ? | 14 Yes | 10 No |
Post New Answer View All Answers
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 are literals?
What is a report item?
Describe the cobol database components?
Write a program to explain size error.
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
example for sub strings ? and refernce modifications whit output pls
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
i need a small 3d program using inline and outline.
Can you please let me know the centre name of INS certification in Kolkata.
What is the difference between structured cobol programming and object alternativelyiented cobol?
What are declaratives and what are their uses in cobol?
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly