how can we fetch 3 records in cobol pgm any coding pls ?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do you reference the esds vsam file formats from cobol programs

621


What is the utilization of copybook in cobol?

646


Whats the difference between search & search ALL?

5226


How to remove 2 duplicate records and copy only one using job control language?

724


What are different data types in cobol?

674






What is the problem of ordered sequential files access?

688


Can a Search can be done on a table with or without Index?

794


what is the difference between COBOL2 AND COBOL390?

2436


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

695


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1915


How do you differentiate between cobol and cobol-ii?

641


What is the difference between PIC 9.99 and 9v99 in COBOL?

721


Which division and paragraphs are mandatory for a COBOL program?

701


State the various causes of s0c1, s0c5 and s0c7.

652


What is the difference between comp and comp-3 usage?

669