Page 1 of 1

environment variables in routine

Posted: Thu Nov 28, 2013 2:30 pm
by DSRajesh
Hi All,

I am trying to pass file path and other parameters to the routine say like $ filepath.

In the dsgetparaminfo function.

I am calling the same routine in one of the job and in the job parameters I am accesing the environment variables.which I am passing to routine,

While running the job I am getting abnormal termination detected.

If I hard code the file path in the routine and passing onky jobname as argument in transformer routine 8f thr job , job id r6nning fine.

Could any one tell je how can use the environment variable in thr routine and how to pass it in the teansformrr routine where I called up.

Posted: Thu Nov 28, 2013 3:10 pm
by chulett
A little lost. Environment variables don't need to be 'passed' but are fetched from the environment. Search here for 'GetEnvironment' for examples of the function needed.

Posted: Thu Nov 28, 2013 3:45 pm
by DSRajesh
Sorry job type is server.

There is no such function

Posted: Thu Nov 28, 2013 4:02 pm
by DSRajesh
Chullet

How can I call the user defined envifonment variable in the server routine.

If I need to use the routine in server job how can I pass those environment variables for the routine called in the server job job transfomer.

Posted: Thu Nov 28, 2013 4:20 pm
by chulett
One discussion here, there are others:

viewtopic.php?t=120571