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 |
if someone is using my file,how can i find which user id is using?
how to know that the file has 300 records how to acess it?
In INITIALIZE what is Repalcing Word will do
What is the LINKAGE SECTION used in COBOL?
Can we move SPACES to numeric field and ZEROES to alphabetic field? If yes what are the way doing this?
which of the following can be used as a check protection symbol a.Z b.S c.* d.+
What guidelines should be followed to write a structured cobol prgm?
Can we redefine the field of x(200) to less than 200?
I encountered an error when I move spaces to a numeric field?What should I do to move spaces on that field?help please.
What is report-item?
I have a sequential file of 100 records. How do I load the records into a two dimensional array ?
select TURE Statement(s) aboUt eject statemenet in cobol? a)The eject statememnt must be the only statement on the line b.It causes the program to edit abnormally c. eject statement can be written in either area A or area B d. specifies that the next source statement is to be printed at Top of the next page e.The EJECTstatement has no effect on the compilation of the source program itself