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 |
i have n records in one file and in this file there is some fields and i want to count that how many sharma in my file so plz give the coding that how we read sharma ?
How do you get the data to code the BMS macro?
can we use the two 01 level in file discription ?
what is the use of outrecord?
What is the local-storage section?
What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?
what is the use of comp2 ? where can we use it with example ?
Define in-line perform?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
if a dataset is already created with fixed length but after that i want to change fixed length to variable length then how is it possible
In an EVALUTE statement is the order of the WHEN clauses significant?
Write the code to count the sum of n natural numbers.