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



Ake:

setenv() and getenv() are actually "C" standard library functions and their
prototypes are in stdlib.h (look for in QSYSINC/H).
But the source code of these are in "C". These are open sources that you
may find in many places, especially in Unix/Linux-like systems.
You can build your own prototypes in RPG. I believe Scott Klement has
already done that in his libraries for CGI programming. But I think you
won't find the actual C sources on the IBM i as they are implemented as
service programs.

Also, you may want to check members QP0Z1170, QTMHCGI, QZHBCGI in file H in
the QSYSINC library. These are the prototypes for C programming that
implement extended functionality of setenv() and getenv(). But source
code, probably only within Linux distributions that include source code.

HTH

Javier.

El jue, 18 may 2023 a las 8:02, Åke Olsson (<konsult@xxxxxxxxxxxxxxx>)
escribió:

I would like to prepare a demo of consuming web services for a client.



I also found a rather nifty sample program “Weather” where you enter a
place
and after calling two web services (one to find coordinates and the other
to
find weather report for that coordinate) reports the results.



BUT



There are two components missing from the program: GetEnv – a procedure
called that returns a pointer and SETENV – an external program that I
assume to be a CL program.



Has anyone any idea of where to find these?



/Ake Olsson/









--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.