Error using Parameters in stage SybaseIQ Load

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
BI
Participant
Posts: 2
Joined: Thu Feb 05, 2009 12:43 pm

Error using Parameters in stage SybaseIQ Load

Post by BI »

We are using stage SybaseIQ Load. We can set parameters like DBNAME, SERVER, etc. Job compiles without error but when we execute the job we get an error and by checking the log in director we can see that the variables have not been replaced by the value specified in the parameter file (We see that DBNAME is #DBNAME# while we would expect to be replaced by the real value).

Does anyone know how to solve the problems ? Can it be a "bug" in datastage ?

Thanks for your answers.

BI.
:!:
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Welcome aboard.

When you see #DBNAME# (or any value surrounded by "#") in your job log it suggests strongly that that job parameter was not set for this job run.

Could it be that your job uses environment variables, and the parameter reference should therefore have been #$DBNAME# ? Or is the parameter reference simply misspelled where it is used in the job design?

There are probably other things you could check, but it's not a bug in DataStage.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
uegodawa
Participant
Posts: 71
Joined: Thu Apr 27, 2006 12:46 pm

Post by uegodawa »

Create an environment variables and assign the values over there.

In your job add those environment variables as parameters and set default value to $PROJDEF.

Now, in your Sybase IQ stage variable should look likes #$DBNAME#
Thanks,
Upul
BI
Participant
Posts: 2
Joined: Thu Feb 05, 2009 12:43 pm

Post by BI »

uegodawa wrote:Create an environment variables and assign the values over there.

In your job add those environment variables as parameters and set default value to $PROJDEF.

Now, in your Sybase IQ stage variable should look likes #$DBNAME#
Thanks for your reply we did it a try but it didn't work. We have entered a PMR at IBM for resolution. I keep you posted.
Post Reply