|
Eric, > Has anyone used the "getenv" api's in RPG? We're needing to > retrieve an environment variable for a job, but we don't have C, so > must do it in RPG. I was looking at Qp0zGetEnv(), but not really > sure if RPG can call this one.... They are callable from ILE/RPG. Be very careful which one you use. There are two different putenv/getenv pairs exported from two different system supplied *SRVPGM's and they are not compatible with each other. The symptoms you will see if you get a mismatch are that you will put env.vars successfully, but on getting them, you'll see empty values - even though you know they are there !! Just ensure you use the same 'set' in all your pgms. --phil Phil Hall ________________________________________________ email . . . . : hallp@ssax.com phone(w). . . : (312) 258-6319 News/400 C/C++ Forum moderator at; http://www.news400.com/c/indexNEW.htm ________________________________________________ +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
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.