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

Name the divisions, which are available in a cobol program?

925


What is the difference between binary search and sequential search?

854


how to access the file from prodution from changeman tool and to submit a file to production

7085


What is length is cobol?

862


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2235


What is the difference between goback, stop run and exit program in cobol?

1228


What kind of error is trapped by on size error option?

960


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1885


How do you differentiate between cobol and cobol-ii?

857


How do you define a variable of comp-1 and comp-2?

914


What is the use of intialize verb?

972


Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.

1883


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

2228


Write a program to explain size error.

884


What are the pertinent COBOL

2243