how can we fetch 3 records in cobol pgm any coding pls ?
Answer Posted / santhosh
Read the file and validate the things, once the all the
things are done for the record keep the count of it in an
working storage variable. Everytime when u try to read the
next record check for the count of WS variable, when it
reaches the count of 3 then terminate ur program.
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
Differentiate between structured cobol programming and object-oriented cobol programming.
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What is an in line perform? When would you use it? Anything else you wish to say about it.
How do you reference the fixed block file formats from cobol programs
What is the difference between external and global variables in COBOL?
What is amode(24)?
What is the difference between Global and External Variables?
State the various causes of s0c1, s0c5 and s0c7.
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
For rewrite, why is it mandatory that file needs to be opened?
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
i want a program using by if, evaluate , string, unstring, perform, occurs?
A table has two indexes defined. Which one will be used by the SEARCH?