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 declaratives and what are their uses in cobol?
Write a program to enter and display the names of students in a class using the occurs clause.
What is the difference between a binary search and a sequential search what are the pertinent cobol?
how do you reference the rrds file formats from cobol programs
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)
How many bytes S(8) comp field occupy and its maximum value?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
How you can read the file from bottom?
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?
Write a program that uses move corresponding.
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
Name some of the examples of COBOl 11?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc