COBOL Snippet: Tell where the control will when the below
code execute

IF (A=B)
CONTINUE
ELSE
NEXT SENTENCE
PERFORM <IMP-STMT>
END-IF.

Answer Posted / manj

CONTINUE inside IF loop searches for the first terminator
END-IF and comes out.

NEXT SENTENCE searches for the first FULL STOP and goes to
the next line after that.

The above code does nothing. IF A=B, control comes to the
next line after END-IF and same for ELSE part too.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what you understand by passing by value.

701


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

631


What is the Purpose of Pointer in the string?

643


IF I mention stop run in CICS what happens?

1896


What is the difference between Global and External Variables?

666






What is comp-1 and comp-2?

764


What is cobol?

747


Whats the difference between search & search ALL?

5264


what is the use of outrecord?

1771


How many sections are there in data division in COBOL?

678


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

5693


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

780


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

748


How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2098


Write a program that uses move corresponding.

673