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 length is cobol?

638


How do you reference the fixed block file formats from cobol programs

690


What is inspect in cobol ?

791


What is the Purpose of Pointer in the string?

632


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

693






How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

639


How to use the same COBOL program in Batch and CICS on lines? explain with an example

1904


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

631


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

704


What the difference is between continue and next sentence?

649


Give some examples of command terminators?

747


How to remove 2 duplicate records and copy only one using job control language?

727


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

5652


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

1919


State the various causes of s0c1, s0c5 and s0c7.

652