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 / ??????
It will read the same record three times.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
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 are literals?
how do you reference the rrds file formats from cobol programs
Write down the divisions of cobol program?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
what is the difference between COBOL2 AND COBOL390?
How do you define a variable of comp-1 and comp-2?
What is a scope terminator give example?
Write the code implementing the perform … varying.
What are the different rules to perform a Search?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
What is the difference between comp and comp-3 usage?