It occurs to me that you do not need ongoing access to the Z C compiler,
just "one time." The output of the compiler is not IBM licensed code, nor
would the below depend on the C compiler, just on LE.
Here, untested, is what you need:
int GetErrno()
{
return errno;
}
Get access to the Z C compiler, or befriend someone who has access to the Z
C compiler, create yourself the above little library routine, and you are
set "forever" with COBOL access to C errno. (Not me. I would have done it
for you a month ago but presently I am at a delicate moment with regard to
IP rights.)
I have no idea what your personal "legal environment" is -- that is, are you
in some big company that would lose its mind trying to understand the above
and the legalities involved.
Charles
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On
Behalf Of Frank Swarbrick
Sent: Wednesday, October 10, 2018 3:39 PM
To: [email protected]
Subject: Re: C errno from COBOL
I don't have a license to use the XL C compiler, by the way.
________________________________
From: IBM Mainframe Discussion List <[email protected]> on behalf of
Frank Swarbrick <[email protected]>
Sent: Wednesday, October 10, 2018 4:36 PM
To: [email protected]
Subject: C errno from COBOL
Does anyone know of a simple way to retrieve the value of the C runtime's
'errno' variable after calling a C RTE function from Enterprise COBOL?
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN