Regarding Parameters
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 228
- Joined: Tue Oct 03, 2006 7:08 pm
Regarding Parameters
Hi Gurus,
With respect to parameters.
My friend is using parameter for table name(ie) he defined a parameter for table name.The value of the parameter is default value $PROJDEF.
what happens is that when i try to run the job, it asks for parameter values.Why does it asks for the supplied value, with the PROJDEF iam getting error. Is it not possible to trace the actual value supplied to the parameter.Plz help me Gurus.
cheers;
vijay
With respect to parameters.
My friend is using parameter for table name(ie) he defined a parameter for table name.The value of the parameter is default value $PROJDEF.
what happens is that when i try to run the job, it asks for parameter values.Why does it asks for the supplied value, with the PROJDEF iam getting error. Is it not possible to trace the actual value supplied to the parameter.Plz help me Gurus.
cheers;
vijay
-
- Charter Member
- Posts: 560
- Joined: Wed Jul 13, 2005 5:36 am
- Location: Ohio
you can trace the actual value supplied by looking into the director. see the first line of the job log.
post the error you are getting. Most probably its the table name that you have configured wrong. $PROJDEF should work fine. How has "your friend" put in the parameter in the stage? did he do something like #$PARAMETER#?
post the error you are getting. Most probably its the table name that you have configured wrong. $PROJDEF should work fine. How has "your friend" put in the parameter in the stage? did he do something like #$PARAMETER#?
-
- Participant
- Posts: 228
- Joined: Tue Oct 03, 2006 7:08 pm
-
- Premium Member
- Posts: 1255
- Joined: Wed Feb 02, 2005 11:54 am
- Location: United States of America
First of all, did you define the environment variable for the table name in the DS administrator? And like Narasimha asks, did you give a default value to it?
Whale.
Whale.
Anything that won't sell, I don't want to invent. Its sale is proof of utility, and utility is success.
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
What is the default value set in the Administrator client for this environment variable?
It can not be $PROJDEF, $ENV or $UNSET; it must be a "proper" value. $PROJDEF is only to use as the default value of a job parameter, not of an environment variable.
It can not be $PROJDEF, $ENV or $UNSET; it must be a "proper" value. $PROJDEF is only to use as the default value of a job parameter, not of an environment variable.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 228
- Joined: Tue Oct 03, 2006 7:08 pm
Hi,
I have created environmental variable in Administrator.
for ex:
name prompt type value
username enter the user name string scott
Iam calling this parameter at joblevel,
At Job level , i changed parameters value to default value $PROJDEF.
name prompt type value
$user name enter user name string $PROJDEF.
Iam using this parameter in source and target stage.
when i compile and run the job, As usual a tab comesup ,
ENTER THE USER NAME - when it takes the default value $PROJDEF and returns error- saying that the username supplied is incorrect.
When i enter the Actual value-Scott, its working fine.why is it happening.
plz help me.
cheers;
vijay
I have created environmental variable in Administrator.
for ex:
name prompt type value
username enter the user name string scott
Iam calling this parameter at joblevel,
At Job level , i changed parameters value to default value $PROJDEF.
name prompt type value
$user name enter user name string $PROJDEF.
Iam using this parameter in source and target stage.
when i compile and run the job, As usual a tab comesup ,
ENTER THE USER NAME - when it takes the default value $PROJDEF and returns error- saying that the username supplied is incorrect.
When i enter the Actual value-Scott, its working fine.why is it happening.
plz help me.
cheers;
vijay
-
- Premium Member
- Posts: 1255
- Joined: Wed Feb 02, 2005 11:54 am
- Location: United States of America
-
- Participant
- Posts: 228
- Joined: Tue Oct 03, 2006 7:08 pm
-
- Charter Member
- Posts: 822
- Joined: Sat Sep 17, 2005 5:25 pm
- Location: USA
You had created the Env Variables in Administrator with default values then I guess you are doing some typing error.
Try doing this
At Job level click the 'Add Environment Variables' >> 'user defined' and click on the parameters you need to use, it will get populated here.
Try doing this
At Job level click the 'Add Environment Variables' >> 'user defined' and click on the parameters you need to use, it will get populated here.
I haven't failed, I've found 10,000 ways that don't work.
Thomas Alva Edison(1847-1931)
Thomas Alva Edison(1847-1931)
-
- Participant
- Posts: 228
- Joined: Tue Oct 03, 2006 7:08 pm
Hi Gurus,
When i use the parameter in the source stage iam not getting any error.
Its running fine, if i use the same parameter in the target stage iam getting error.Even when i want to view the data from source stage, it says $PROJDEF is incorrect, unable to connect to database with the value supplied.
what i mean what i found is we need to supply actual value of the parameter if we want to view the data, with the default env variable its not working.
plz help me.
cheers;
vijay
When i use the parameter in the source stage iam not getting any error.
Its running fine, if i use the same parameter in the target stage iam getting error.Even when i want to view the data from source stage, it says $PROJDEF is incorrect, unable to connect to database with the value supplied.
what i mean what i found is we need to supply actual value of the parameter if we want to view the data, with the default env variable its not working.
plz help me.
cheers;
vijay
-
- Participant
- Posts: 228
- Joined: Tue Oct 03, 2006 7:08 pm
-
- Premium Member
- Posts: 1255
- Joined: Wed Feb 02, 2005 11:54 am
- Location: United States of America
Is this the exact version? Check the version by going to the 'Help' menu of the DS designer and clicking on 'About DataStage Designer' and post it.vijaykumar wrote:Hi Gurus,
Iam working on DataStage Version 7.5.
cheers;
vijay
Because there are versions where $PROJDEF doesn't work. One of them is 7.5x2. Not sure if there is any patch available.
Whale.
Anything that won't sell, I don't want to invent. Its sale is proof of utility, and utility is success.
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE