Subject: | |
From: | |
Reply To: | |
Date: | Mon, 29 Mar 1999 17:13:34 -0800 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Yalamanchili, Sudha writes:
> I have a C program which calls a COBOL exectable using the 'system' call.
> But the COBOL executable would work only if it linked to a XL. My C program
> runs from the posix shell. So how should I be modifying my C code in order
> to make it work. I get unresolved externals without the XL link. I can run
> it from MPE shell using EOLASAVE.PUB;XL="ORACLEXL.PUB.ORACLE"but I need to
> run from POSIX shell. Can someone help me. I am kind of new to HP.
I see two ways.
The first and easiest way would be to link EOLASAVE with ORACLEXL at link time.
Then you can just run EOLASAVE without needing the XL= parameter. I.e.:
:link from=objfile;to=eolasave;xl=oraclexl.pub.oracle
Or if you can't relink because you don't have the object code, you can altprog:
:xeq linkedit.pub.sys "altprog eolasave;xl=oraclexl.pub.oracle"
The second way, if for some reason you cannot relink EOLASAVE with ORACLEXL,
is to modify your C program to do:
system("callci run eolasave;xl=...")
--
Mark Bixby E-mail: [log in to unmask]
Coast Community College Dist. Web: http://www.cccd.edu/~markb/
District Information Services 1370 Adams Ave, Costa Mesa, CA, USA 92626-5429
Technical Support Voice: +1 714 438-4647
"You can tune a file system, but you can't tune a fish." - tunefs(1M)
|
|
|