I have put two write operations in a single para for two different conditions.Will that lead to an abend or run successfully and write two records?



I have put two write operations in a single para for two different conditions.Will that lead to an a..

Answer / dk

No, The program will not ABEND in the case if two WRITE statements are given in the same PARA.
It's all up to your condition. If both the conditions are met, two records will be written to the file.

Is This Answer Correct ?    19 Yes 0 No

Post New Answer

More COBOL Interview Questions

have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records...

2 Answers   ITC Indian Tobacco Company, PNP, TCS,


What is the utilization of copybook in cobol?

0 Answers  


What is the local-storage section?

0 Answers  


In CICS/VSAM every file that is accessed should be defined in FCT. we have CICS READ, WRITE, BROWSE commands for VSAM files. How does it work with DB2 tables. It know it has to do with the plan. Please expain with examples.

1 Answers  


What are the different data types available in COBOL?

4 Answers  






How will you find the currepted records in a file

2 Answers  


In INITIALIZE what is Repalcing Word will do

1 Answers   CTS,


how do u link sub pgm to main pgm ?

2 Answers   TCS,


Name some of the examples of COBOl 11?

0 Answers   CSC,


What is the point of the REPLACING option of a copy statement?

3 Answers  


i declare a Table as OCCURS 2000 TIMES.If the input file has more than 2000 records will the COBOL program fail?

12 Answers  


what is meaning by design document? who can repared for this?

5 Answers   TCS,


Categories