APT_CONFIG_FILE filename changed

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
durgaps
Participant
Posts: 74
Joined: Sat Jul 08, 2006 4:09 am
Location: Melbourne, Australia
Contact:

APT_CONFIG_FILE filename changed

Post by durgaps »

I have a project containing around totally 250 jobs which is using the Environment variable APT_CONFIG_FILE. The APT_CONFIG_FILE I am using is named: H3_Dev.apt. Now, it needs to be changed to H3_Upgrade.apt. There is no change to the configurations, its just the file name change. I dont want to open all the jobs one by one and change the value.

One way of doing this is:
Take the export of the jobs in a .dsx file.
Open it in a text editor.
Do a REPLACE ALL from one file name to the other.
Import the jobs back to the project.
Q: Do I need to re-compile the jobs after this operation?


Is there any other way of doing this?
Durga Prasad
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Why do you have to change it in every job? All you need to do is change the environment variable to point to the new file.
Last edited by DSguru2B on Tue Feb 06, 2007 11:15 pm, edited 1 time in total.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
keshav0307
Premium Member
Premium Member
Posts: 783
Joined: Mon Jan 16, 2006 10:17 pm
Location: Sydney, Australia

Post by keshav0307 »

Durga
you already have any easy way. i did the same thing for a common change in all the job. you don't need to recompile the jobs
durgaps
Participant
Posts: 74
Joined: Sat Jul 08, 2006 4:09 am
Location: Melbourne, Australia
Contact:

Post by durgaps »

Hi Brian/Keshav,

Thanks for the reply.

I missed this in my previous post. I have another 75 jobs which uses a different configuration file and this needs to be retained. And I have used the APT_CONFIG_FILE environment variable in the Job Parameters window of all the jobs.

I guess the only way is to export the required jobs, do a mass replace for the APT Config filename and then import them back in the project.

Thanks,
Durga Prasad
jhmckeever
Premium Member
Premium Member
Posts: 301
Joined: Thu Jul 14, 2005 10:27 am
Location: Melbourne, Australia
Contact:

Post by jhmckeever »

Can't you create a symbolic link pointing from the old name to the new name. It's a bit of a fudge but if it were documented and managed it would work OK.

J.
<b>John McKeever</b>
Data Migrators
<b><a href="https://www.mettleci.com">MettleCI</a> - DevOps for DataStage</b>
<a href="http://www.datamigrators.com/"><img src="https://www.datamigrators.com/assets/im ... l.png"></a>
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

I guess then an export, find and replace and finally import would be the way for you. Otherwise you can purchase Kim's PNav to get this done for you in a much cleaner fashion.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply