×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Scott Klement wrote:
AFAIK, the /current/ CL method is to call the APIs. This assumes a
few things -- (1) we're talking about ILE CL, (2) you're compiling
on V5R4 with target release of V5R2 or later and (3) the systems are
properly PTFed.
FWIW... getenv() and Qp0zGetEnv() both require support for pointers,
which didn't exist until V5R4, and was buggy when V5R4 was released. So,
you want to make sure you're on V5R4 and up-to-date on PTFs.
Pointer logic always brings potential for weirdness; no way will I
dispute that. OTOH, the addition of *PTRs to ILE CL is cool! Best
use I've found is for Q&D demos of how various APIs work; it gives a
very straightforward example that can show oddities in a hurry that
can be hard to grasp. CL is just too easy to ignore its potential as
a learning/teaching aid.
I've posted a Q&D of a getenv() example at:
http://code.midrange.com/1509e4633a.html
Lots more could have been done for fancier handling, but that should
be enough to get more people thinking about it. Once understood,
it's clearly a fairly easy process. If not understood well, I'm not
sure it's any easier in ILE RPG, C, COBOL, whatever.
Tom Liotta
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.