Environment Variable - Export

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
fmartinsferreira
Participant
Posts: 142
Joined: Wed Mar 24, 2004 10:51 am
Location: Brazil

Environment Variable - Export

Post by fmartinsferreira »

Is it possible to export the Environment variables from one project to another?

Regards,

Fernando Martins
trobinson
Participant
Posts: 208
Joined: Thu Apr 11, 2002 6:02 am
Location: Saint Louis
Contact:

Post by trobinson »

The Project env variables are found in the file DSParams in the Projects/<Project> subdirectory. This file can be copied to any other project and editted to suit. Obviously be careful in doing so since it is a hack.
DeepakCorning
Premium Member
Premium Member
Posts: 503
Joined: Wed Jun 29, 2005 8:14 am

Post by DeepakCorning »

Yes, this is a good solution . To be safe copy the old one somewhere or rename it something so that if something gets bad you can chnage it back.
fmartinsferreira
Participant
Posts: 142
Joined: Wed Mar 24, 2004 10:51 am
Location: Brazil

Post by fmartinsferreira »

Thats Worked!
Thanks a lot!
:D

Fernando Martins
fmartinsferreira
Participant
Posts: 142
Joined: Wed Mar 24, 2004 10:51 am
Location: Brazil

Post by fmartinsferreira »

Well, I exported the jobs and enviroment variables to other project, but the values of each env_var is attributed with the old values like the old project.
I changed the values in the new project but only work if I enter in each job and put the enviroment variable again.

Is there any way to change all the values without "enter in each job and put the enviroment variable again"?

Regards

Fernando Martins
gateleys
Premium Member
Premium Member
Posts: 992
Joined: Mon Aug 08, 2005 5:08 pm
Location: USA

Post by gateleys »

In the job properties of the jobs, the default value should be set to $PROJDEF. Hence, it will pick up the variable values that have been set via the Administrator.

gateleys
fmartinsferreira
Participant
Posts: 142
Joined: Wed Mar 24, 2004 10:51 am
Location: Brazil

Post by fmartinsferreira »

Thanks gateleys! :D

Regards,

Fernando
fmartinsferreira
Participant
Posts: 142
Joined: Wed Mar 24, 2004 10:51 am
Location: Brazil

Post by fmartinsferreira »

How about the encrypted fields?

I can't set to $PROJDEF!

Regards,

Fernando Martins
DeepakCorning
Premium Member
Premium Member
Posts: 503
Joined: Wed Jun 29, 2005 8:14 am

Post by DeepakCorning »

Manullay copy $PROJDEF and paste it there.
gateleys
Premium Member
Premium Member
Posts: 992
Joined: Mon Aug 08, 2005 5:08 pm
Location: USA

Post by gateleys »

DeepakCorning wrote:Manullay copy $PROJDEF and paste it there.
Or, just type $PROJDEF in the password fields. It will appear as asterisk.

gateleys
DeepakCorning
Premium Member
Premium Member
Posts: 503
Joined: Wed Jun 29, 2005 8:14 am

Post by DeepakCorning »

:)
fmartinsferreira
Participant
Posts: 142
Joined: Wed Mar 24, 2004 10:51 am
Location: Brazil

Post by fmartinsferreira »

Worked! :D

Thanks!

Fernando
Post Reply