For Programmers: Free Programming Magazines  


Home > Archive > ASM370 > April 2005 > Invoking C++ program from mvs assembler code









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Invoking C++ program from mvs assembler code
bporter

2005-04-18, 8:55 pm

Does anyone have an example of invoking a z/OS C++ program
(XPLINK-compiled) from MVS assembler?

My c++ program contains a standard main routine "int main(int argc,
char* argv[]);", and a few sub-routines.

Do I need to initialize the LE environment before loading the c++ load
module and calling it? It seems from the 'LE Writing ILC Applications'
IBM doc that a non-LE-conforming assembler program can invoke a c++
main routine. When I LOAD the c++ load module and BASR, I get a S0C4
(rsn=10) in CEEPLPKA. From this, I think that the environment must not
be setup correctly.

If anyone can share experience, tips, or an example, it would be much
appreciated.

Thanks,
Ben

Binyamin Dissen

2005-04-18, 8:55 pm

On 18 Apr 2005 13:19:50 -0700 "bporter" <portergrouptx@yahoo.com> wrote:

:>Does anyone have an example of invoking a z/OS C++ program
:>(XPLINK-compiled) from MVS assembler?

:>My c++ program contains a standard main routine "int main(int argc,
:>char* argv[]);", and a few sub-routines.

:>Do I need to initialize the LE environment before loading the c++ load
:>module and calling it? It seems from the 'LE Writing ILC Applications'
:>IBM doc that a non-LE-conforming assembler program can invoke a c++
:>main routine. When I LOAD the c++ load module and BASR, I get a S0C4
:>(rsn=10) in CEEPLPKA. From this, I think that the environment must not
:>be setup correctly.

:>If anyone can share experience, tips, or an example, it would be much
:>appreciated.

You probably have to set up an O/S plist.

LA R1,OSPLIST

OSPLIST DC A(HWZERO+X'80000000')
HWZERO DC H'0'

--
Binyamin Dissen <bdissen@dissensoftware.com>
http://www.dissensoftware.com

Director, Dissen Software, Bar & Grill - Israel


Should you use the mailblocks package and expect a response from me,
you should preauthorize the dissensoftware.com domain.

I very rarely bother responding to challenge/response systems,
especially those from irresponsible companies.
bporter

2005-04-18, 8:55 pm

Thanks for your help! I had not setup my plist correctly. With your
help, the call to my c++ program works correctly. Thanks again!

Ben

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com