Why stop run is not used when we use CICS in the COBOL program?

Showing Answers 1 - 10 of 10 Answers

manikant

  • Oct 26th, 2007
 

hi,

We cannot use STOP RUN in a CICS program as this will cause the CICS application server to terminate.

However, of late I have heard that there are few compilers in which we can use STOP RUN statement with CICS application programs also, but not very much sure about this development.

Regards,

Manikant

Rajanich

  • Sep 19th, 2008
 

When we submit job in CICS that will be submitted to CICS Server, When we use exec return
statement, then that job is submitted to MVS but when we write stop run, it will be directly submitted to
MVS, but the MVS does not understand COBOL so it gives errors.
Use 'return' statement to terminate your program

STOP RUN ends the program and returns control to the operating system and discarding all information about the job.

Since YOUR program is running as a subtask of CICS, "STOP RUN" would shut down the entire CICS region.  In the past, there has been a prohibition against using it in an application.

However, CICS now ignores "STOP RUN".  This question is out dated.  Anyone asking this damn sure has grey hair.

  Was this answer useful?  Yes

Cics Compiler(Translator) could not understand the StopRun commend as well as if we put the stop run in COBOL+cics program the control will directly pass to OS not to cics

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions