Should I use STOP RUN in the sub program??why?

Answer Posted / suresh ramaiyan

If we use STOP RUN in the sub program, in sub program
itself will terminate the execution and the control will
not come back to the calling program or main program.

Instead we can use "EXIT PROGRAM". This command will pass
the control to main program.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Pic 9v99 Indicates in COBOL?

928


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

2135


How to know whether the module is dynamical or statistical?

860


how to refer the data field?

1985


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

1153


State the various causes of s0c1, s0c5 and s0c7.

838


How are the next sentence and continue different from each other?

999


What are the various section in data division and briefly explain them.

904


What are the pertinent COBOL commands?

2818


how do you reference the variable unblock file formats from cobol programs

992


What are various search techniques in cobol? Explain.

852


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

871


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

898


What are the different rules of SORT operation?

888


What is the difference between structured cobol programming and object alternativelyiented cobol?

978