Environment variables

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
pmadhavi
Charter Member
Charter Member
Posts: 92
Joined: Fri Jan 27, 2006 2:54 pm

Environment variables

Post by pmadhavi »

Hi,
We have the jobs existing Datastage7.1.
Now we are using DS7.5. We have to modify the target table structure as the database has been upgraded.

We have old environment variables set for the database connection.
We changed the job parameter to point to the new environment variables as part of upgrade
The new variables are initialised in the Administrator.
But when we run the job, it is throwing the following error.
FDM84_89_LEDGER_F00_HF..SQ_PS_ETL_JOB_CTL: Unknown client library - #$SRCDBType#

#$SRCDBType# is the old envronment variable for the source where as #$TGLB_DBTYPE# is the new environment variable.

Pls help me
Thanks,
Madhavi
kwwilliams
Participant
Posts: 437
Joined: Fri Oct 21, 2005 10:00 pm

Re: Environment variables

Post by kwwilliams »

"We changed the job parameter to point to the new environment variables as part of upgrade"

Did you actually delete the old job parameter and import the new environmental variable?

Is there a sequence involved in this that could still be referencing the old environmental variable. Did all of the jobs and sequences involved get recompiled, you cannot change a job without recompiling the sequence associated with it.

You might want to post the OSH so we could more easily see what's involved in your job.
pmadhavi
Charter Member
Charter Member
Posts: 92
Joined: Fri Jan 27, 2006 2:54 pm

Re: Environment variables

Post by pmadhavi »

kwwilliams wrote:"We changed the job parameter to point to the new environment variables as part of upgrade"

Did you actually delete the old job parameter and import the new environmental variable?

Is there a sequence involved in this that could still be referencing the old environmental variable. Did all of the jobs and sequences involved get recompiled, you cannot change a job without recompiling the sequence associated with it.

You might want to post the OSH so we could more easily see what's involved in your job.
First clarify me whether we can set up the environment variables in the dsenv file at Unix machine??
Because the old environment variables have not been defined in the administrator.
So we created new variables for our project and added in the jobs.
We restarted the Unix server. But the new values are not getting reflected in the jobs.
Thanks,
Madhavi
kwwilliams
Participant
Posts: 437
Joined: Fri Oct 21, 2005 10:00 pm

Re: Environment variables

Post by kwwilliams »

Do your jobs reference the environmental variable directly in any way? If they do, you would need to change the job and recompile the job. It sounds like you did not set up the environmental variable, but your job still references these variables. Go to your job and look at the properties. See if you see the $SRCDBType as one of the variables. My guess is that you will.
sun rays
Charter Member
Charter Member
Posts: 57
Joined: Wed Jun 08, 2005 3:35 pm
Location: Denver, CO

Re: Environment variables

Post by sun rays »

pmadhavi wrote:Hi,
We have the jobs existing Datastage7.1.
Now we are using DS7.5. We have to modify the target table structure as the database has been upgraded.

We have old environment variables set for the database connection.
We changed the job parameter to point to the new environment variables as part of upgrade
The new variables are initialised in the Administrator.
But when we run the job, it is throwing the following error.
FDM84_89_LEDGER_F00_HF..SQ_PS_ETL_JOB_CTL: Unknown client library - #$SRCDBType#

#$SRCDBType# is the old envronment variable for the source where as #$TGLB_DBTYPE# is the new environment variable.

Pls help me
You have changed the job parameters, but did you also make this change in the stage properties of Source and target database stages ? If you didn't, then they would still be referncing old parameters, which obviously can't be found.
MTA
Participant
Posts: 37
Joined: Thu Feb 02, 2006 2:25 pm

Post by MTA »

Also check $PATH in dsenv......
M.T.Anwer
The day the child realizes that all adults are imperfect he becomes an adolescent;
the day he forgives them, he becomes an adult; the day he forgives himself, he becomes wise.
-Aiden Nowlan
Post Reply