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
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
Explain what you understand by passing by value.
What is an in line perform? When would you use it? Anything else you wish to say about it.
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 difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
How many sections are there in data division in COBOL?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
How to know whether the module is dynamical or statistical?
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 external and global variables in COBOL?
What is amode(31)
How can you get the ksds file records into your cobol program?
Discuss about changing dataset name in proc.
What rules are to be followed while using the corresponding options?