how can we fetch 3 records in cobol pgm any coding pls ?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / madhu
we can assume 3 in-file records under fd in-file record.you
can start write nd read on 3 programs after that u can
create on jcl with 3 dif files then the out put shows on dif
files as u can given inputs follows
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ravi
While reading a record from the input file keep ws- count variable for the count of records you read. When ws- count reaches count =3 put condition to terminate program
| Is This Answer Correct ? | 0 Yes | 0 No |
How do u find the programs calling the given module, without having doing 3.13 on loadlib/source library?
How to Pass table from a cobol program to another cobol program and how to use that table in called program
wht is the diff b/w if and evaluate stmts ?
What is file status 92?
Under which scenario you would go for a static call as opposed to dynamic call?
How can you display the SPOOL information ?
What is the difference beetween Arrays and Tables in Cobol? please dont give the answer that arrays in cobol terminology is called tables......
Which division and paragraphs are mandatory for a COBOL program?
Consider the below example call a-test1. -- -- -- a-test1. if a=b perform a-test through a-exit next sentence else if b=c perform c-test through c-exit. if a=d perform d-test through d-exit. a-test. -- -- a-exit. exit. can u tell me what will happen if a=b after looping into a-exit will the control go back to a- test1. will the condition a=d be checked???
what are the utilities for load and unload the DB2 tables
) what is the difference between AID and HANDLE AID?
What will happen if we try to create GDG (+2) generaton instead of (+1) generation?