> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:[email protected]] On Behalf Of Howard Rifkind
> Sent: Monday, May 18, 2009 9:13 AM
> To: [email protected]
> Subject: Re: vse to z/os migration
> 
> I believe the 'Stop Run' statement just ends the program in VSE.
> 
> In a z/OS environment you want the program to return control 
> back to the O/S...a different world then VSE.
> 

IIRC, The COBOL "STOP RUN" terminates the current COBOL run unit. This may or 
may not return control to the OS. For example, if you have a non-LE assember 
program (in a non-LE environment) which does a LINK to a COBOL program, then LE 
will get control and initialize itself. The COBOL run unit will then be 
initialized and then, finally, the COBOL program started. If that COBOL program 
then dynamically CALLs another COBOL program which executes a STOP RUN, then 
your assembler program will get control back, bypassing the calling COBOL 
program entirely. I also think this terminates the COBOL run unit, which means 
that the files opened in the run unit are closed (may be wrong on this one).

--
John McKown 
Systems Engineer IV
IT

Administrative Services Group

HealthMarkets(r)

9151 Boulevard 26 * N. Richland Hills * TX 76010
(817) 255-3225 phone * (817)-961-6183 cell
[email protected] * www.HealthMarkets.com

Confidentiality Notice: This e-mail message may contain confidential or 
proprietary information. If you are not the intended recipient, please contact 
the sender by reply e-mail and destroy all copies of the original message. 
HealthMarkets(r) is the brand name for products underwritten and issued by the 
insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance 
Company(r), Mid-West National Life Insurance Company of TennesseeSM and The 
MEGA Life and Health Insurance Company.SM

 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to