Where the job paramters stored in the unverse

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
rhaddur
Participant
Posts: 52
Joined: Mon Mar 13, 2006 7:33 am
Location: mumbai

Where the job paramters stored in the unverse

Post by rhaddur »

Hi folks,

Where the job parameters pertaining to a job are stored in the datastage universe.
e.g. all the job names stored in table DS_JOBS.
Rhaddur
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Job parameters are not stored as such in the engine. The default values are stored within the job metadata, but the actual values used at runtime are only accessible by using the API routines such as DSGetParamInfo().
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Of course they are stored, but in a number of places. Job parameters have design-time default values, run-time default values (set in Director), indirect default values (for environment variable job parameters), and, of course, the values with which the job was last run. All of these things are stored in different locations, indeed mostly in different tables.

None of this location information has been published by the vendor. Indeed it has deliberately not been published, and they reserve the right to change it at any time. And have done in previous versions.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

They are stored in the ROOT record of DS_JOBOBJECTS in version 7 and earlier versions.
Mamu Kim
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Only earlier as far as version 5.0 - it's a different structure earlier than that. Version 8.x it's different again. Further, some of the things I referred to above are stored in RT_CONFIGnnn.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
rhaddur
Participant
Posts: 52
Joined: Mon Mar 13, 2006 7:33 am
Location: mumbai

Post by rhaddur »

ArndW wrote:Job parameters are not stored as such in the engine. The default values are stored within the job metadata, but the actual values used at runtime are only accessible by using the API routines such as ...
Thanx for your prompt reply


Where exactly The default values are stored within the "job metadata"(in which table)
Rhaddur
ag_ram
Premium Member
Premium Member
Posts: 524
Joined: Wed Feb 28, 2007 3:51 am

Post by ag_ram »

rhaddur,

Job parameters defined in a Job are stored in the ROOT record of UniVerse table DS_JOBOBJECTS in version 7 and earlier versions as Kduke said. Here are position numbers(Field No) in DS_JOBOBJECTS file for each element in Job parameter properties.

Code: Select all

   Parameter Name       - 14
   Prompt               - 16
   Type                 - 19
   Default Value        - 17
   Help Text            - 18
And moreover you can use the below UniVerse SQL to fetch the Job Parameter defined in a Job but mind - the result would be of multivalued columns So you would get only one record no matter how many Job Parameter defined in a Job.

Code: Select all

SELECT 
   EVAL DS_JOBOBJECTS."@RECORD<14>" AS Param_Name, 
   EVAL DS_JOBOBJECTS."@RECORD<16>" AS Prompt, 
   EVAL DS_JOBOBJECTS."@RECORD<19>" AS Type, 
   EVAL DS_JOBOBJECTS."@RECORD<17>" AS Default_Value,
   EVAL DS_JOBOBJECTS."@RECORD<18>" AS Help_Text 
FROM 
   DS_JOBOBJECTS , DS_JOBS 
WHERE 
   DS_JOBOBJECTS.OLETYPE='CJobDefn' AND DS_JOBS.JOBNO=DS_JOBOBJECTS.OBJIDNO AND DS_JOBS.NAME='<jobName>';
And I am pretty sure that you can get a lot more Jobs related to Job Parameters Extract from UniVerse tables, from kduke's creation 'ETLStats' at his site.
Very useful tool in extracting medata of DS Jobs and much more.
ag_ram
Premium Member
Premium Member
Posts: 524
Joined: Wed Feb 28, 2007 3:51 am

Post by ag_ram »

Post Reply