Page 1 of 1

How to read Project environment variable in a Routine

Posted: Tue Oct 13, 2009 9:38 am
by reddy
Hi guys,

I have a requirement to retrieve the value of a project parameter in a before/after routine.

I tried DSListEnvVars("PROJECT NAME"), but gives compilation error.

Any help is appreciated.

Posted: Tue Oct 13, 2009 9:48 am
by chulett
While you can use GetEnvironment() in PX, for BASIC you'll just need to DSExecute an "echo" of the variable.

Posted: Tue Oct 13, 2009 10:33 am
by reddy
That works, thanks for the help

Posted: Tue Oct 13, 2009 1:50 pm
by ray.wurlod
Has the project parameter been passed to the job as a job parameter? If so you can use DSGetParamInfo() with DSJ.ME as the first argument.

Re: How to read Project environment variable in a Routine

Posted: Tue Oct 13, 2009 10:05 pm
by rameshv
In unix read project environment variables