generating jobs reports

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

Luk
Participant
Posts: 133
Joined: Thu Dec 02, 2004 8:35 am
Location: Poland
Contact:

generating jobs reports

Post by Luk »

Hello!

It is known that it is possible to generate job report (in Designer) in HTML or XML!
But is it possible to generate such reports for many jobs in one time (without need to open each job in designer and generate report)??

Regards
LUK
Precious
Charter Member
Charter Member
Posts: 53
Joined: Mon Aug 23, 2004 9:51 am
Location: South Africa
Contact:

Post by Precious »

You are able to generate reports using the command line.

You could write a job that gets the job list, then looping thru that, run the create report command for each job.

Code: Select all

dsdesign.exe /H=hostname /U=username /P=password /O=omitflag project 
job_name | /SC shared_container_name /R /RP=report_pathname /RT=stylesheet_pathname /RX
Regards,
Precious

Mosher's Law of Software Engineering: Don't worry if it doesn't work right. If everything did, you'd be out of a job.
Luk
Participant
Posts: 133
Joined: Thu Dec 02, 2004 8:35 am
Location: Poland
Contact:

Post by Luk »

Thanks
LUK
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

I posted a batch file that will do a job report for every job on ADN. I prefer JobReport written by Tony Curcio. I think it creates a nicer document. So created a wrapper for his routine which will do all jobs and all routines. I wrote the routine part to look the same as his html. It creates and index to all the other pages as well. You can download it from ADN and my tips page. It is called GenHtml.

DwNav also generates all of this plus a where used link by table and hash file name which I call job metadata. You can download it from my web site and request a 30 day evaluation copy for free.
Mamu Kim
Luk
Participant
Posts: 133
Joined: Thu Dec 02, 2004 8:35 am
Location: Poland
Contact:

Post by Luk »

I posted a batch file that will do a job report for every job on ADN. I prefer JobReport written by Tony Curcio. I think it creates a nicer document. So created a wrapper for his routine which will do all jobs and all routines. I wrote the routine part to look the same as his html. It creates and index to all the other pages as well. You can download it from ADN and my tips page. It is called GenHtml.
I've found and download it from your web page, but I can't import *.dsx file.
I have message that I it is possible only if my DS client code page will be 1252 (my current code page is 1250)!
LUK
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Luk, edit the code setting right at the beginning of the .DSX file and you will be able to import it.
Luk
Participant
Posts: 133
Joined: Thu Dec 02, 2004 8:35 am
Location: Poland
Contact:

Post by Luk »

Luk, edit the code setting right at the beginning of the .DSX file and you will be able to import it.
Arnd, I have already done it! But I have not found entry about code page! Maybe you know what must I look for??
LUK
Luk
Participant
Posts: 133
Joined: Thu Dec 02, 2004 8:35 am
Location: Poland
Contact:

Post by Luk »

You are able to generate reports using the command line.

You could write a job that gets the job list, then looping thru that, run the create report command for each job.
OK! I can do it, but how can I generate report from job which exist on server (UNIX) and I have my client on another machine (Windows)??
I have no client installed on UNIX!!
LUK
Luk
Participant
Posts: 133
Joined: Thu Dec 02, 2004 8:35 am
Location: Poland
Contact:

Post by Luk »

Arnd, I have already done it! But I have not found entry about code page! Maybe you know what must I look for??
sory Arnd :) it was silly question!! I found it :)
LUK
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

It should work on Windows or UNIX. On UNIX you need to download the files from the server.
Mamu Kim
vmcburney
Participant
Posts: 3593
Joined: Thu Jan 23, 2003 5:25 pm
Location: Australia, Melbourne
Contact:

Post by vmcburney »

With DataStage 7.5.1 the command line job report with the /R report switch turned on provides a bitmap and a HTML document with links between the bitmaps and the attributes section of the HTML document via some clever rectangle reference coordinates properties on the bitmap image.

<img src="imagename<map name="jobmap"><area shap="rect" cords="..."href=...>
<area shape="rect" coords="..." href = ...>
<area shape="rect" coords="..." href = ...>
<area shape="rect" coords="..." href = ...>

In other words when you click on the picture of a job stage it takes you to the job stage properties in the report.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

It is still ugly.
Mamu Kim
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Serks? :lol:
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
nageshmb
Participant
Posts: 3
Joined: Thu Mar 11, 2004 1:09 pm

Re: generating jobs reports

Post by nageshmb »

>>It is known that it is possible to generate job report (in Designer) in HTML or XML!

Is this possible in 7.1 too? If yes, how? I know there is an option available in 7.5

-Nagesh.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

JobReport works in 7.1. You can download it and GenHtml from ADN or my tips page. I think 7.5.1 was the first version to document a job from Designer or dsjob.
Mamu Kim
Post Reply