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
Explain what you understand by passing by value.
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)?
What is the Purpose of Pointer in the string?
IF I mention stop run in CICS what happens?
What is the difference between Global and External Variables?
What is comp-1 and comp-2?
What is cobol?
Whats the difference between search & search ALL?
what is the use of outrecord?
How many sections are there in data division in COBOL?
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.
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
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?
Write a program that uses move corresponding.