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

What will happen if a variable is declared as below.. Explain with an example? Working storage section:- 01 WS-VARX PIC X(10) VALUE 'ABCDEFGHIJ'. 01 WS-VARN REDEFINES WS-VARX PIC 9(5) VALUE '12345'. What will happen I want Display WS-VARX and WS-VARN?

3 Answers   Xansa,


maximum of how many screens we can open in emulator

2 Answers  


why we are using picture clause in the cobol programs?

2 Answers  


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

5 Answers   TCS,


how to display date in reverse order if the pic clause of the is numeric suppose date is 09032010 ==> need to print in 20100309 (pic clause is numeric)

6 Answers  






What is the meaning of 'TALLING' verb in cobol?

5 Answers  


What will happen if a variable is declared as below.. Explain with an example? Working storage section:- 01 WS-VARX PIC X(9) VALUE SPACES. 01 WS-VARN REDEFINES WS-VARX PIC 9(9).

8 Answers  


I have a sequential file. How do I access a record in this sequential file randomly in my program ?

8 Answers   CGI, Xansa,


What compiler option would you use for dynamic linking?

2 Answers  


In a COBOL II PERFORM statement, when is the conditional tested, before or after the perform execution?

3 Answers  


How many bytes S(8) comp field occupy and its maximum value?

0 Answers  


What is the difference between PIC 9.99 and 9v99?

7 Answers  


Categories