How to Query Stage Names from Universe
Moderators: chulett, rschirm, roy
How to Query Stage Names from Universe
Hi Gurus,
By querying on Universe, we can get all the job names and Link names from the Universe.
Same way, How to query all the Stage names from Universe.
Eg: I have given stage names in a Job as src_finance , tfm_finance,tgt_finance. How to query these stage names from DS Universe
Kind Regards
LUK
By querying on Universe, we can get all the job names and Link names from the Universe.
Same way, How to query all the Stage names from Universe.
Eg: I have given stage names in a Job as src_finance , tfm_finance,tgt_finance. How to query these stage names from DS Universe
Kind Regards
LUK
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Why not use the API?
Code: Select all
DSGetJobInfo(hJob, DSJ.STAGELIST)
DSGetStageInfo(hJob, DSJ.LINKLIST)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Thanks for u r reply Kim,
The code (dsx) which u have given (EtlStats) to query the Universe and to generate job reports is really awesome.
From EtlStas from LoadEtlJobLink Job, it is giving Job Name , Link Name and Category. Will it possible to get all the names given to Stages in the job using query on Universe.
Kindly let me know how to query Stage Names.
Kind Regards
LUK
The code (dsx) which u have given (EtlStats) to query the Universe and to generate job reports is really awesome.
From EtlStas from LoadEtlJobLink Job, it is giving Job Name , Link Name and Category. Will it possible to get all the names given to Stages in the job using query on Universe.
Kindly let me know how to query Stage Names.
Kind Regards
LUK
EtlStats has a script named DsJobLinksAll.sql. Here is the SQL:
Change the where clause. Remove LinkType and you are there.
Code: Select all
SELECT
DS_JOBOBJECTS.OLETYPE as LinkType,
DS_JOBS.NAME as JobName,
DS_JOBOBJECTS.NAME as LinkName,
DS_JOBS.CATEGORY as Category
FROM
DS_JOBOBJECTS,
DS_JOBS
WHERE
OBJIDNO = JOBNO
and DS_JOBOBJECTS.OLETYPE like '%put'
Group by
LinkType,
JobName,
LinkName,
Category
;
Mamu Kim
Dear Kim,
I have modified the query like this,
SELECT
DS_JOBOBJECTS.OLETYPE as StageName,
DS_JOBS.NAME as JobName,
DS_JOBOBJECTS.NAME as LinkName,
DS_JOBS.CATEGORY as Category
FROM
DS_JOBOBJECTS,
DS_JOBS
WHERE
OBJIDNO = JOBNO
Group by
StageName,
JobName,
LinkName,
Category
;
And i m getting Job name, all the stage names and Link names in Stage_name column.
Kindly correct the query to get JobName, StageName, LinkName and Categroy from the Universe for all the Jobs in Project.
Pls let me know if i need to change any Conditions in Job Constraint (At Trn stage for job LoadEtlJobLink) to get the exact output.
Thanks in Advance
Kind Regards
LUK
I have modified the query like this,
SELECT
DS_JOBOBJECTS.OLETYPE as StageName,
DS_JOBS.NAME as JobName,
DS_JOBOBJECTS.NAME as LinkName,
DS_JOBS.CATEGORY as Category
FROM
DS_JOBOBJECTS,
DS_JOBS
WHERE
OBJIDNO = JOBNO
Group by
StageName,
JobName,
LinkName,
Category
;
And i m getting Job name, all the stage names and Link names in Stage_name column.
Kindly correct the query to get JobName, StageName, LinkName and Categroy from the Universe for all the Jobs in Project.
Pls let me know if i need to change any Conditions in Job Constraint (At Trn stage for job LoadEtlJobLink) to get the exact output.
Thanks in Advance
Kind Regards
LUK
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Code: Select all
SELECT
DS_JOBOBJECTS.OLETYPE as StageType,
DS_JOBS.NAME as JobName,
DS_JOBOBJECTS.NAME as StageName
FROM
DS_JOBOBJECTS,
DS_JOBS
WHERE
OBJIDNO = JOBNO
and DS_JOBOBJECTS.OLETYPE like '%Stage%'
Group by
StageType,
JobName,
StageName
;
Mamu Kim