Problem solve
Get help with specific problems with your technologies, process and projects.
Using environment variables with ILE-RPG
Need to recover the value of certain variables of environment on ILE-RPG programs? This example shows how to do it.
Continue Reading This Article
Enjoy this article as well as all of our content, including E-Guides, news, tips and more.
Step 2 of 2:
I develop applications in a mixed environment with solutions in Java and ILE-RPG. In this environment, I need to recover the value of certain variables of environment on ILE-RPG programs. This example shows how to do it.
d getenv pr * extproc('Qp0zGetEnvNoCCSID') d name * value options(*string) d p s * d path S 256A c eval p = getenv ('PATH') c if p <> *NULL c eval path = %str(p) c endif