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 are the different data types in cobol?
Why occurs cannot be used in 01 level in COBOL?
) what is the difference between AID and HANDLE AID?
What is the difference between structured cobol programming and object alternativelyiented cobol?
What is the difference between next sentence and continue in cobol programing language?
Define cobol?
What is perform what is varying?
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?
Can we redefine the field of x(200) to less than 200?
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
What are different data types in cobol?
In COBOL programming, what is PERFORM? What is VARYING?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
What are various search techniques in cobol? Explain.
If you are current on the owner of a set, what is the difference between obtain next and obtain first?