Re: COBOL Working Storage being reset

2006-07-07 Thread Rich Specht
Does the RTEREUS=(ON) option help in this case?  I know it greatly reduces
overhead when invoking a COBOL program from a non-LE environment because the
runtime doesn't need to be reestablished.  I don't know for sure how it
affects Working Storgae.  Note that this only works for COBOL (not other
LE-based C or PL/I programs).

Regards,
Rich

--
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


Non-LE ASM calling C function - PList and runtime reuse questions

2005-09-20 Thread Rich Specht
I've been prowling through the z/OS C and LE documentation and am having
trouble putting some of the pieces together.  If there is a better list to
post to, please let me know.

I have a situation where a non-LE system provides an exit point passing a
number of parameters.  I have exits in COBOL which receive parms (PROCEDURE
DIVISION USING ...) successfully.  The RTEREUS parm in CEEUOPT is used to
retain the runtime environment.

I now want to have an exit using IBM C compiler (non-XPLINK).  I created an
ASM front-end which uses the CEELRR INIT macro to set up Library Routine
Retention and then calls the exit in C.  When I used an arbitrary function
name so I can define the plist format, I get U4093-70 (no LE environment).
When I define using "main", I don't seem to get a standard OS parameter
list.  I've looked at #pragma linkage and PLIST(OS) but can't seem to get
the right setup.

Does anyone have any suggestions on creating a C function which accepts an
arbitrary parameter list format from a non-LE caller and does so without
having to create/destroy the LE environment on every call?  I can't change
the caller although I can front-end the exit program, if necessary.
Examples would be appreciated but any other suggestions would be a help.

Thanks,
Rich

--
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