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

what is difference between cobol and cobol/400

22100


How arrays can be defined in COBOL?

816


How you can characterize tables in cobol?

910


How do define dynamic array in cobol.

842


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2275






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

856


how to refer the data field?

1979


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

1061


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2338


Explain how you can characterize tables in cobol?

803


Which division and paragraphs are mandatory for a COBOL program?

904


Name the sections present in data division.

884


What is the difference between next sentence and continue in cobol programing language?

938


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

2582


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

841