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
What rules are to be followed while using the corresponding options?
What are literals?
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
Explain the configuration section of a cobol program with examples of syntax.
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
What is the Purpose of Pointer in the string?
What type of SDLC u followed? Why?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
What is the Purpose of POINTER Phrase in STRING command in COBOL?
What is the difference between PIC 9.99 and PIC9v99?
How do define dynamic array in cobol.
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
How do you reference the following file formats from cobol programs?
i want a program using by if, evaluate , string, unstring, perform, occurs?