|
Well, we were wanting to use CL ADDENVVAR in out initial program (CLP). Do I need to write a little rpg pgm to set as well as get? I'd prefer to use the CL command if possible. BTW, I don't suppose you have prototype on this? <g> Oh. You say these are ILE service program calls... Will I have problems if I'm using DAG for this program? (Sorry, still pretty green in ILE). eric.delong@pmsi-services.com ______________________________ Reply Separator _________________________________ Subject: Re: Environment variables Author: <MIDRANGE-L@midrange.com > at INET_WACO Date: 5/5/99 10:59 AM 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 +--- +--- | 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.