We are trying to use Project Level parameters in Datastage 7.0 jobs.
I have created 3 User-defined Variables, SOURCE_DB, SOURCE_USER, SOURCE_PWD, using Datastage Administrator.
In my Datastage job > Job Properties, I have added these environment variables and set the default value as $ENV. (For some strange reason $PROJDEF doesnot seem to work)
This simple datastage job reads from Oracle Source (OCI 9 stage) and populates to the text file. The source query is "Select name from V$database".
When I run this job, the job aborts with the message "Missing Parameters $SOURCE_DB [$ENV] $SOURCE_USER [$ENV] $SOURCE_PWD [$ENV] "
I browsed thru the forums, went thru help docs, and found that Running a job by itself, passing $ENV as the values will abort the job.
I tried to call this job from Sequence, passing $ENV as the parameter value. The job worked fine.
Then I changed values of SOURCE_DB in the Datastage Administrator to point to Test Database.
I ran the sequence again, but this time, the Job fails with error "Missing Parameters $SOURCE_DB [$ENV] $SOURCE_USER [$ENV] $SOURCE_PWD [$ENV] "
My question is
1) How to ensure that the changed values (changes done to variable values in Administrator) are reflected in the jobs
2) Is it really not possible to use $PROJDEF
Datastage 7.5.1A is far better than Datastage 7.0
![Smile :)](./images/smilies/icon_smile.gif)
Can you please help me with these.
Regards