job parameters

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
Renita
Participant
Posts: 28
Joined: Sun Feb 26, 2006 10:06 pm

job parameters

Post by Renita »

Hi All,

Can someone help me as to where the default paramteres fro a job are stored. I am using $PROJDEF for each job. However certain users change the parameters at joblevel. I want to get the list of these jobs and then chnage them from backend.
There should be some universe table where these default values reside.
I get the default values using dsjob howver dsjob must be picking these values from some universe table right??
:?:
Anyone familiar with this??
rafik2k
Participant
Posts: 182
Joined: Wed Nov 23, 2005 1:36 am
Location: Sydney

Post by rafik2k »

The parameter and default values are stored in DataStage Administrator's under project properties-->environment.

What you are getting using $PROJDEF are all environment variable defined in DataStage Administrator.

While running job using dsjob command, you can send local values instead of defult value using -param option.

Search for dsjob command would help you.
JoshGeorge
Participant
Posts: 612
Joined: Thu May 03, 2007 4:59 am
Location: Melbourne

Re: job parameters

Post by JoshGeorge »

If you are using $PROJDEF then you can find those corresponding default values in DSParams file in your project directory. You can see them in DS administrator also. If you want to get the list of jobs where some developers have changed $PROJDEF for certain fields and then change them, easy way to do will be to take an export of your project and find and replace them all in the .dsx file.
Joshy George
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
Renita
Participant
Posts: 28
Joined: Sun Feb 26, 2006 10:06 pm

Post by Renita »

Hey....
Thanks for the reply....
I agree we could do that....but i am curious to know where do these values reside in the universe.
Anyone familiar with this.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

They are stored not in a database at all, but in a text file called DSParams in the project directory on the server.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Renita
Participant
Posts: 28
Joined: Sun Feb 26, 2006 10:06 pm

Post by Renita »

But the DSParams does not store the job level paramteres. It stores the Project level parameters right?
if i override a parameter value at job level, where would that be stored?

Awaiting responses...
Renita
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Job level parameters exist at three levels.

First, there are the design-time defaults. These are stored in a table called DS_JOBOBJECTS in the Repository, and copied into the RT_CONFIGnnn table for the job when the job is compiled.

Second, there are the run-time defaults, which can be set in the Director client. These are stored in the RT_CONFIGnnn table for the job when they are prescribed via the Director client.

Third, there are the non-default replacement values supplied via the Job Run Options dialog or the -param option of the dsjob command. These are stored in the RT_STATUSnnn table for the job (and can be viewed in status view in Director). Run-time parameter values are also logged, in the "job starting" event in the job log.

Job parameter values are read into memory - loaded into field #7 of a COMMON dynamic array called STAGECOM.JOB.STATUS - when the job is started and can not subsequently be altered. At least not legally.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply