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

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

913


What are the pertinent COBOL commands?

2826


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1954


What are 77 levels used for?

846


Can a Search can be done on a table with or without Index?

1051


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2959


What is the Purpose of Pointer in the string?

829


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2994


how do you reference the rrds file formats from cobol programs

1150


What is the LINKAGE SECTION used in COBOL?

1197


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.

1165


Are you comfortable in cobol or jcl?

805


What type of SDLC u followed? Why?

1725


I have a File that has duplicate records. I need only those records that occur more than thrice.?

9237


how to refer the data field?

1991