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


Please Help Members By Posting Answers For Below Questions

how do you reference the variable block file formats from cobol programs

688


Explain the configuration section of a cobol program with examples of syntax.

661


What are the rules of the move verb?

708


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

700


What is the difference between Call and a Link?

700






which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1024


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1785


how do you reference the variable unblock file formats from cobol programs

750


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

648


What are the access modes of START statement?

719


What is difference between static and dynamic call in cobol?

777


What are the different rules of SORT operation?

700


What are literals?

632


How you can characterize tables in cobol?

720


How can you get the ksds file records into your cobol program?

644