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 are the next sentence and continue different from each other?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
what is the difference between COBOL2 AND COBOL390?
In COBOL programming, what is PERFORM? What is VARYING?
How you can characterize tables in cobol?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
What are the different rules to perform a Search?
What are declaratives and what are their uses in cobol?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
HOw can I get the negative sign while deduct high value from low value
Write the code implementing the perform … varying.
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
what is search and searchall?what is the diffrence between them?give an best example?
Can a Search can be done on a table with or without Index?