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 an in line perform? When would you use it? Anything else you wish to say about it.
how do you reference the variable block file formats from cobol programs
What are the different rules to perform a Search?
What is the utilization of copybook in cobol?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
Difference between array and sub-script ?
Explain how you can characterize tables in cobol?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
Write some characteristics of cobol as means of business language.
example for sub strings ? and refernce modifications whit output pls
how do you reference the printer file formats from cobol programs
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
What do you understand by psb and acb?