Environment Variable Error

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
ririr
Participant
Posts: 84
Joined: Sun Apr 04, 2004 8:59 pm

Environment Variable Error

Post by ririr »

I have Environment Variables created in a project. When reference in a job I have the default value set to $PROJDEF under job parameters. The "View Data" in the stage is throwing "TNS ERROR".

But when I take off $PROJDEF as default value and reload the environment variable it tags the database name to the default value. And the "View Data" in the stage retreives the data back.

I do not think it is a problem with the TNS names. The TNS error only appears when I use $PROJDEF as default value.

Please advise.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

with $PROJDEF you cannot view the data. It only loads it during run time. Thats why you are facing this error. I believe in the newer version (7.5.2) they have changed this. I guess you have an earlier version thats why its happenening.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ririr
Participant
Posts: 84
Joined: Sun Apr 04, 2004 8:59 pm

Post by ririr »

You are right. Is there a ptach available that you know to fix this issue?
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Not that i know of. Maybe there is. Contact IBM for that.
IMHO, its not an issue. If you want to view the data, just go to the directors log, in the first entry of the job start where it loads all the environment variables, just keep a copy of that somewhere and keep pasting appropriate values to view data.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
kris007
Charter Member
Charter Member
Posts: 1102
Joined: Tue Jan 24, 2006 5:38 pm
Location: Riverside, RI

Post by kris007 »

As per Craig
There is a patch available - it's called 7.5.1A... or, very shortly, 7.5.2.
:wink:
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Yup. Craig's sense of humour always freshens my day.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
gateleys
Premium Member
Premium Member
Posts: 992
Joined: Mon Aug 08, 2005 5:08 pm
Location: USA

Post by gateleys »

DSguru2B wrote:I believe in the newer version (7.5.2) they have changed this.
7.5.1A has the problem fixed.

gateleys
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

which i think is known as 7.5.2, Right? Or am i day dreaming :?:
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply