DSGetProjectInfo

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
_chamak
Premium Member
Premium Member
Posts: 29
Joined: Tue Aug 24, 2010 10:29 am

DSGetProjectInfo

Post by _chamak »

Hi,

I am writing a routine to get the run time stats of a job. I need a list of jobs on a particular pattern rather than getting all the jobs.

For all the jobs we use DSGetProjectInfo(DSJ.JOBLIST)

Can some one help me how to get a list of jobs with a pattern.

For example If i have different jobs with pattern XXX_, i need only those jobs.

Appreciate your help.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Please don't post your questions in multiple forums and please try to pick the right one to post in.

Are you looking for some way to return only a subset of jobs from the function or some way to filter the full list after it has been returned? The latter can be accomplished using O/S command like grep or Index or Matches within your routine.
-craig

"You can never have too many knives" -- Logan Nine Fingers
_chamak
Premium Member
Premium Member
Posts: 29
Joined: Tue Aug 24, 2010 10:29 am

Post by _chamak »

chulett wrote:Please don't post your questions in multiple forums and please try to pick the right one to post in.

Are you looking for some way to return only a subset of jobs from the function or some way to fi ...
HI Chullet, Sorry for that. I accidentally posted in server.

Yes I need only a subset of jobs.
-Thanks
Chamak
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The function does not include any filtering capability. But your routine could easily process the list to retain only those that match your pattern.
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