If we put three reads in COBOL in the same para one after the other, to read a PS file,will it read the same record thrice or it will read three records sequentially?
For example :
Input File
01
02
03
Para 900
Read infile
Display Infile rec
Read infile
Display infile rec
Read infile
Display infile rec.
What will be the output?
Answer Posted / ameins
It will read three consecutive records.
| Is This Answer Correct ? | 12 Yes | 2 No |
Post New Answer View All Answers
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
How do get the result of your program directly on your pc?
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
How can you get the ksds file records into your cobol program?
What are the different rules of SORT operation?
what is amode(24), amode(31), rmode(24) and rmode(any)?
What is redefines clause in COBOL?
What is the usage of comp fields in cobol?
What is the difference between PIC 9.99 and PIC9v99?
What is the difference between PIC 9.99 and 9v99 in COBOL?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
What is the local-storage section?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
What is the difference between perform … with test after and perform … with test before?