setting a unix ENV variable at job level through paramset

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
dsscholar
Premium Member
Premium Member
Posts: 195
Joined: Thu Oct 19, 2006 2:45 pm

setting a unix ENV variable at job level through paramset

Post by dsscholar »

Hi There,

We exported a unix variable for eg f_iname=a in unix

i have added the userdefined environmental variable in Admin client as

f_iname without default value

in my job paramter set i have added the above $f_iname user defined env variable ,setting default value as $ENV

when i am running a job through designer, job is getting abort with error message as Missing Parameters sample.$f_iname [$ENV].

But when i try running through unix from the project path with local option
as shown below its running fine.

/opt/IBM/InformationServer/Server/Projects/dstage1 $$DS_BIN/dsjob -run -local <proj_name> <job_name>

please give me the suggestions to overcome this issue
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Set the variable in the environment of the user under whose identity the job actually runs when it's run from Designer.

To discover this identity, include a before-job subroutine ExecSH to execute an id command.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply