environment variables in routine

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
DSRajesh
Premium Member
Premium Member
Posts: 297
Joined: Mon Feb 05, 2007 10:37 pm

environment variables in routine

Post 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.
RD
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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.
-craig

"You can never have too many knives" -- Logan Nine Fingers
DSRajesh
Premium Member
Premium Member
Posts: 297
Joined: Mon Feb 05, 2007 10:37 pm

Post by DSRajesh »

Sorry job type is server.

There is no such function
RD
DSRajesh
Premium Member
Premium Member
Posts: 297
Joined: Mon Feb 05, 2007 10:37 pm

Post 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.
RD
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

One discussion here, there are others:

viewtopic.php?t=120571
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply