Global Variable

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
Marley777
Premium Member
Premium Member
Posts: 316
Joined: Tue Jan 27, 2004 3:26 pm

Global Variable

Post by Marley777 »

Hi, thanks for reading.

How can I create a dynamic global variable. I want all jobs in the project to see the variable but want the ability to change the variable on the fly via a job...and all jobs would see that value.
Mike
Premium Member
Premium Member
Posts: 1021
Joined: Sun Mar 03, 2002 6:01 pm
Location: Tampa, FL

Post by Mike »

1. Create a project environment variable.
2. All jobs include the project environment variable as a job parameter with a value of $PROJDEF.
3. Use the dsadmin -envset command to change the value as needed.

Mike
Marley777
Premium Member
Premium Member
Posts: 316
Joined: Tue Jan 27, 2004 3:26 pm

Post by Marley777 »

Thanks for your help so far.

Any idea how I can change the global variable value using -envset. Can I do this in a transformer or within a datastage job?
Mike
Premium Member
Premium Member
Posts: 1021
Joined: Sun Mar 03, 2002 6:01 pm
Location: Tampa, FL

Post by Mike »

Execute command activity within a job sequence.

Mike
Post Reply