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 are different data types in cobol?
What guidelines should be followed to write a structured cobol prgm?
What is a SSRANGE and NOSSRANGE?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
What is the difference between perform … with test after and perform … with test before?
What is the usage of comp fields in cobol?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
What is the problem of ordered sequential files access?
example for sub strings ? and refernce modifications whit output pls
Define static linking and dynamic linking.
What is Pic 9v99 Indicates in COBOL?
What is the Purpose of Pointer in the string?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
What is the difference between next sentence and continue in cobol programing language?