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

Answer Posted / narasimha reddy.k

If STOP RUN is used in the sub program, execution will
terminate there itself and it will never come to main
program. Thats why we have to use EXIT PROGRAM or GOBACK in
the sub programs.

Normally, we will code STOP RUN only in main programs not
in sub programs.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is link edit in cobol?

699


How arrays can be defined in COBOL?

637


) what is the difference between AID and HANDLE AID?

1607


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

867


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

617






How do define dynamic array in cobol.

639


What are declaratives and what are their uses in cobol?

673


What do you understand by psb and acb?

633


what is difference between cobol and cobol/400

21493


how can i see junk values in dclgen or in hostvariable of comp ?

2515


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.

907


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1817


What are the different rules to perform a Search?

595


Which division and paragraphs are mandatory for a COBOL program?

689


What type of SDLC u followed? Why?

1494