Should I use STOP RUN in the sub program??why?
Answers were Sorted based on User's Feedback
Answer / s
Stoprun return the cursor to the OS, subprogram cursor will
be return to the main program that’s way we coded
exitprogram or goback
| Is This Answer Correct ? | 15 Yes | 0 No |
Answer / veni
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 only GOBACK in the sub
programs.
Normally, we will code STOP RUN only in main programs not
in sub programs.
| Is This Answer Correct ? | 13 Yes | 0 No |
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 |
Answer / 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 |
perform I from 0 by 1 until I=5?How maney times it will executes
what happens of we dont give time stamp in precompilation process
How do we get current date from system with century in COBOL?
can we read in input the file with a variable length ? please , how ..could you help me ?
What is amode(31)
How to increase the logical record length of existing PS file?
what is amode(24), amode(31), rmode(24) and rmode(any)?
In my table having 3000 Records. How can I delete the 500th row? (we don't know what is data inside the table)
What is the difference between PIC 9.99 and 9v99?
What is inspect in cobol ?
01 x pic s9(8) comp. How will the following value be internally allocated '18787'
Can anyone please give the example of Inline Perform.