I am trying to identify from the Repository for each of my Jobs the total number of stages of these types it uses:
- Link_Partitioner
Transformer
Sort
Aggregator
Code: Select all
SELECT DS_JOBS.NAME JobName FMT '40L', COUNT(1) FROM DS_JOBOBJECTS, DS_JOBS WHERE DS_JOBOBJECTS.OBJIDNO = DS_JOBS.JOBNO AND (DS_JOBOBJECTS.OLETYPE = 'CTransformerStage' OR DS_JOBOBJECTS.OLETYPE = 'CCustomStage') GROUP BY DS_JOBS.NAME ;
Code: Select all
cat_test_03 2|
cat_test_04 2|
cat_test_06 5|
cat_test_07 2|
cat_test_08 4|
hist_01 8|
hist_02 8|
hist_03 8|
hist_04 7|
1. My query is counting also the Oracle OCI stage and I would like to know how to prevent that and include only the four stage types listed above.
2. The query is counting stages which are no longer in the job and that's not good for my final objective.
I have been trying to solve these two issues by reviewing the content of the unnamed @RECORD fields in DS_JOBOBJECTS without much success.
The first 15 fields (identified as DS_JOBOBJECTS.'@RECORD<n>') did not provide any helpful information.
Thank you.