How do you fetch current date in normal cobol pgm and in
cobol-db2 pgm?
Answer Posted / v@m$i
Mr sharath small suggestion.
u r logic is correct.
but use current date instead of date in normal program.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Name the sections present in data division.
Explain what you understand by passing by value.
how to refer the data field?
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 amode(24), amode(31), rmode(24) and rmode(any)?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
What is the difference between goback, stop run and exit program in cobol?
How do you differentiate between cobol and cobol-ii?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
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
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
How are the next sentence and continue different from each other?
how do you reference the fixed unblock file formats from cobol programs
What is comp-1 and comp-2?