How to change the value for the $APT_config_file

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
vij
Participant
Posts: 131
Joined: Fri Nov 17, 2006 12:43 am

How to change the value for the $APT_config_file

Post by vij »

Hi all,

We have to deploy the code to production environment soon. The problem is - in the stage environment where we have the code currently, the value for the $APT_CONFIG_FILE parameter has the server name along with the path, eg., /server name/apps/Ascential/......../default.apt is the value.

Now, we have more than 200 jobs, we can't go and change each and every $APT_CONFIG_FILE value in stage environment. Is there any way to change the value of the $APT_CONFIG_FILE parameter with out doing changes in each and every job?

Thanks,
Vij
keshav0307
Premium Member
Premium Member
Posts: 783
Joined: Mon Jan 16, 2006 10:17 pm
Location: Sydney, Australia

Post by keshav0307 »

if you have defined the parameter $APT_CONFIG_FILE then you can pass the new value at run time.

else export all jobs in a file, and then global find and replace teh value for $APT_CONFIG_FILE, and inport in new environment
vij
Participant
Posts: 131
Joined: Fri Nov 17, 2006 12:43 am

Post by vij »

Hi keshav0307 ,

Thanks for your reply. We run jobs from the script. I will try your second workaround.
Govindarajan
Participant
Posts: 24
Joined: Mon Jul 12, 2004 10:16 am

Post by Govindarajan »

In environment variable please pass the value against APT_CONFIG_FILE.
Post Reply