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
What is the difference between next sentence and continue in cobol programing language?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
Can you please let me know the centre name of INS certification in Kolkata.
What are declaratives and what are their uses in cobol?
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?
In COBOL, what is the different between index and subscript?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
How do you differentiate between cobol and cobol-ii?
What are the different data types in cobol?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
What are the pertinent COBOL
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
A table has two indexes defined. Which one will be used by the SEARCH?
What kind of error is trapped by on size error option?
Why did you choose to work with ibm mainframe cobol programming?