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
what is difference between cobol and cobol/400
How arrays can be defined in COBOL?
How you can characterize tables in cobol?
How do define dynamic array in cobol.
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
how do you reference the esds vsam file formats from cobol programs
how to refer the data field?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
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
Explain how you can characterize tables in cobol?
Which division and paragraphs are mandatory for a COBOL program?
Name the sections present in data division.
What is the difference between next sentence and continue in cobol programing language?
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
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?