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?
Answers were Sorted based on User's Feedback
Suppose, file A has 100 records and file B has 500 records. We want to write records common to both A and B into file C and records which are present only in either A or B into another file D. What should be the logic of Cobol program to achieve this?
7 Answers Bank Of America, Mind Tree,
can we redefine 77 level item is it possible
how to transfer the file from pc to mainframe??
What is an in line PERFORM? When would you use it? Anything else to say about it?
How include time & date in the report generation in cobol programing?
What is the significance of the PROGRAM-ID paragraph? If this name doesnt match with the name of the COBOL program, does it make a difference? Is the name specified in the PROGRAM-ID paragraph used as a name for the load module or any such thing?
What is the difference between perform … with test after and perform … with test before?
maximum of how many screens we can open in emulator
Can the OCCURS clause be at the 01 level?
What is an in line perform? When would you use it? Anything else you wish to say about it.
What is the usage of comp fields in cobol?
What are the different data types available in COBOL?