Add new parameter and remove default value from Jobs

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
bkamila
Premium Member
Premium Member
Posts: 29
Joined: Tue Jun 14, 2005 5:01 pm
Location: Mascot

Add new parameter and remove default value from Jobs

Post by bkamila »

Hello DataStage Gurus!!!!!!!!!!!

We have tasks to --
1. Add 2 new job level parameters to 300 DataStage jobs
2. Remove Default Values of Parameters for 300 DataStage jobs

We want to know -- what is easy and safe way to achieve above objectives without manually changing each job. Our colleagues have been taking few options, for example:
1. use utility (CopyParameter) or any other utility available,
2. extract xxx.dsx and manually add the Parameter and manually remove the default value,
3. come up with an awk script the will interrogate and loop thru each job of the xxx.dsx file. Interrogate for changes.

Ray you are DataStage guru. Is it possible for you to suggest a ready made solution which is comparatively safe and less time consuming?

My email is bkamila@optusnet.com.au. Feel free to write to me directly.

Cheers, Bana
BANA KAMILA
BI, Data Warehouse and Database Consultant
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Bana, feel free to send money for free receipt !

There is a tool called Parameter Manager for DataStage available from the folks who run this site, but I am not sure that it is still available. There is a forum here at DSXchange relating to it.

Vincent published a blog on hacking job parameters without losing your mind, which might serve as a useful source of ideas.

My business can do that kind of custom coding, but it would perforce be on some kind of commercial arrangement.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
changming
Participant
Posts: 68
Joined: Wed Oct 13, 2004 3:35 am

Re: Add new parameter and remove default value from Jobs

Post by changming »

I do not think there is a simple way to do it. Just change it one by one, that will only take 2 days for one people.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Ken Bland has a utility that will easily handle #1 and is part of what he gives away for free from his website.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Raghavendra
Participant
Posts: 147
Joined: Sat Apr 30, 2005 1:23 am
Location: Bangalore,India

Post by Raghavendra »

we had same requirment for task2 ( removing default values of parameters). We have contacted IBM for the same and they gave a routine to do that particular task. That was in my previous organisation and i don't remember the routine name now.
Raghavendra
Dare to dream and care to achieve ...
Raghavendra
Participant
Posts: 147
Joined: Sat Apr 30, 2005 1:23 am
Location: Bangalore,India

Post by Raghavendra »

we had same requirment for task2 ( removing default values of parameters). We have contacted IBM for the same and they gave a routine to do that particular task. That was in my previous organisation and i don't remember the routine name now.
Raghavendra
Dare to dream and care to achieve ...
jdmiceli
Premium Member
Premium Member
Posts: 309
Joined: Wed Feb 22, 2006 10:03 am
Location: Urbandale, IA

Post by jdmiceli »

I wrote a Perl script that does this exact thing, but it is for Server jobs. Does anyone know if the DSX files for Parallel and Server are similar in structure? If so, then I can make the script available to you to use.
Bestest!

John Miceli
System Specialist, MCP, MCDBA
Berkley Technology Services


"Good Morning. This is God. I will be handling all your problems today. I will not need your help. So have a great day!"
jdmiceli
Premium Member
Premium Member
Posts: 309
Joined: Wed Feb 22, 2006 10:03 am
Location: Urbandale, IA

Post by jdmiceli »

I wrote a Perl script that does this exact thing, but it is for Server jobs. Does anyone know if the DSX files for Parallel and Server are similar in structure? If so, then I can make the script available to you to use.
Bestest!

John Miceli
System Specialist, MCP, MCDBA
Berkley Technology Services


"Good Morning. This is God. I will be handling all your problems today. I will not need your help. So have a great day!"
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

From an email question:
bkamila wrote:Hi Mr Chulett

Do you know the contact details or url of Ken Bland's utility? Please email me, if you know how to download the utility.
As noted earlier, from his website:

http://www.kennethbland.com/

You'll need to request a password first. Once you have access, you can download the KBA Job Control Utilities.
-craig

"You can never have too many knives" -- Logan Nine Fingers
jdmiceli
Premium Member
Premium Member
Posts: 309
Joined: Wed Feb 22, 2006 10:03 am
Location: Urbandale, IA

Post by jdmiceli »

Hi all!

I have had several requests for my Perl script so I will start another thread in the General Section and post it. I will also include my other utilities just in case anyone can use them.

Bestest!
Bestest!

John Miceli
System Specialist, MCP, MCDBA
Berkley Technology Services


"Good Morning. This is God. I will be handling all your problems today. I will not need your help. So have a great day!"
jdmiceli
Premium Member
Premium Member
Posts: 309
Joined: Wed Feb 22, 2006 10:03 am
Location: Urbandale, IA

Post by jdmiceli »

This thread has multiple utilities to work with .dsx and other files (in Perl):

viewtopic.php?t=113429&highlight=perl

I hope it help!

Bestest,
Bestest!

John Miceli
System Specialist, MCP, MCDBA
Berkley Technology Services


"Good Morning. This is God. I will be handling all your problems today. I will not need your help. So have a great day!"
Post Reply