Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

Answers were Sorted based on User's Feedback



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

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

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

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

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

Answer / sharath

we cant use stoprun in sub program bec. if we use stoprun
in sub program control automatically goes to subprogram OS.
here we want Control goes to main program.so we are using
Goback or exit

Is This Answer Correct ?    4 Yes 0 No

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

Answer / guest

no

Is This Answer Correct ?    4 Yes 0 No

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

Answer / 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

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

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

Post New Answer



More COBOL Interview Questions

Re: 01 NAME1 PIC X(13) VALUE "COBOL PROGRAMMING". 01 NAME2 PIC X(13). now I want to display the value of NAME1 in reverse order i.e value should be displayed as "GNIMMARGORP LOBOC" HOW can I do that ??? please let me know if any one knows it.

2 Answers   IBM,


what is MSGLEVEL?

1 Answers   IBM,


IF I mention stop run in CICS what happens?

0 Answers   IBM,


how can u redefine picx(10) with pic 9(6).

3 Answers   TCS,


Sending data is aplhabetic size 7 (value 3000), I wantated this value to be stored in database, which is defined as s9(7)v9(2)comp-3.

2 Answers  






Mention the guidelines to write a structured cobol program?

0 Answers  


What is R-mode and A-mode?

3 Answers   TCS,


what is scope terminator

2 Answers   IBM,


What is the difference between static call & Dynamic call?

2 Answers   CSC, TCS,


In a COBOL II PERFORM statement, when is the conditional tested, before or after the perform execution?

3 Answers  


how will u find out 3rd week's 2nd day using occurs ?

3 Answers   L&T,


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

0 Answers   iNautix,






Categories