find category name

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
GJ_Stage
Participant
Posts: 131
Joined: Mon Oct 27, 2008 6:59 am

find category name

Post by GJ_Stage »

Hi All,

dsjob -ljobs TEST

I can see all the jobs under project called TEST but Category name (Folder) is not displaying . I wanted to remove some jobs from this project but without folder name it is very difficult to do it. Every time i need to fire DS_JOBS command to find category.

select category from ds_jobs where job_name='firstjob'|

Please tell me is there any way is there to find list of jobs under each category in 7.5.2.
Jothi
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Code: Select all

SELECT NAME FROM DS_JOBS WHERE CATEGORY LIKE '%<<Category>>';
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
GJ_Stage
Participant
Posts: 131
Joined: Mon Oct 27, 2008 6:59 am

Post by GJ_Stage »

Thanks.

I wanted to take list of all the jobs and corresponding category in the project. What command need to use.?
Jothi
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Same "command", slightly modified.

Code: Select all

SELECT NAME, CATEGORY FROM DS_JOBS
You'll get a little extra stuff without excluding 'root records' and the like but that's close enough. Seriously, was that all that hard to derive from the other examples? :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Code: Select all

SELECT NAME, CATEGORY FROM DS_JOBS WHERE NAME NOT LIKE '//%' AND NAME NOT LIKE '\\%' ORDER BY CATEGORY, NAME;
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Left that extra bit for you, Ray. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
pandeesh
Premium Member
Premium Member
Posts: 1399
Joined: Sun Oct 24, 2010 5:15 am
Location: CHENNAI, TAMIL NADU

Post by pandeesh »

Craig, What are that ''root records" actually ?

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

Post by ray.wurlod »

Nothing to worry about. In fact, there are no ROOT records in DS_JOBS.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I guess those are actually in DS_JOBOBJECTS. I was referring to the bits Ray excluded with the "not like" syntax he added. Category records? Embedded henderson joints? Temporal fragments? :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The excluded records are simply category placeholders - they record the existence and relationships of category folders. They contain no other information.
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