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


Please Help Members By Posting Answers For Below Questions

What are declaratives and what are their uses in cobol?

692


Write a program to enter and display the names of students in a class using the occurs clause.

638


What is the difference between a binary search and a sequential search what are the pertinent cobol?

715


how do you reference the rrds file formats from cobol programs

771


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...)

1909






How many bytes S(8) comp field occupy and its maximum value?

1618


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

697


How you can read the file from bottom?

648


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?

1217


Write a program that uses move corresponding.

658


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

640


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

694


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1915


Name some of the examples of COBOl 11?

2666


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

805