Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Invoking C++ program from mvs assembler code
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


Report this thread to moderator Post Follow-up to this message
Old Post
bporter
04-19-05 01:55 AM


Re: Invoking C++ program from mvs assembler code
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.

Report this thread to moderator Post Follow-up to this message
Old Post
Binyamin Dissen
04-19-05 01:55 AM


Re: Invoking C++ program from mvs assembler code
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


Report this thread to moderator Post Follow-up to this message
Old Post
bporter
04-19-05 01:55 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

ASM370 archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:21 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.