how to get jobs names from Datastage project.

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
esivaprasad
Participant
Posts: 135
Joined: Tue Dec 09, 2008 10:35 am

how to get jobs names from Datastage project.

Post by esivaprasad »

Hi All,

I would like to know how many jobs available in Datastsge project.
How to import all job names from a datastage project .
I am using Datastsge 7.5 and OS Unix.
Is any option available in Datastage 7x to get all job names at a time, without manually.

Thank you,
:D
Siva
nagarjuna
Premium Member
Premium Member
Posts: 533
Joined: Fri Jun 27, 2008 9:11 pm
Location: Chicago

Post by nagarjuna »

you can get all jobnames using the command dsjob -ljobs ....this will display all jobs within a particular project .
Nag
fareeda_b
Participant
Posts: 48
Joined: Sat Feb 23, 2008 4:25 pm

Post by fareeda_b »

Hi Siva,

dsjob -ljobs <Projectname>
then you will get your project jobs in list .
Thanks
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

In Director go to the View menu and disable display of categories/folders.
The count of job names will be in the status bar, and the display will contain a list of all jobs, which you can sort based on any of the column headings. You can then use Director's report printing facilities if you wish; these include the ability to "print" to file.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
jinm
Premium Member
Premium Member
Posts: 47
Joined: Tue Feb 24, 2004 1:59 am

Post by jinm »

Code: Select all

In Director go to the View menu and disable display of categories/folders.
The count of job names will be in the status bar, and the display will contain a list of all jobs, which you can sort based on any of the column headings. You can then use Director's report printing facilities if you wish; these include the ability to "print" to file. 
Any way you can have a DS job do that ?
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The DS_JOBS hashed file can be accessed from server jobs or from the TCL command line (which in turn can be called from execute command stage in a sequence job, for example). The SQL syntax would be
"SELECT COUNT(*) FROM DS_JOBS WHERE JOBTYPEIND NE '';"

Addendum - I read your post that you only wanted the count, but you can modify the SQL above to get the list of job NAMEs as well.
jinm
Premium Member
Premium Member
Posts: 47
Joined: Tue Feb 24, 2004 1:59 am

Post by jinm »

Hi Arn

Thanks for the swift reply

It was actually an extract similar to
Log on to #project# in DS Director -> Uncheck Show Categories -> Project Print -> summary only and print to file -> Define File Location

This way we could have an automated extract for the Job names in a given DS Project for customer so she can validate the content.
We run this for Pharma companies and have a ridiculously level of documentation
:shock:

Brgds Jan

EDIT: We run it on Windows
Post Reply