Display record counts on links in Designer from the last run

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

tbtcust
Premium Member
Premium Member
Posts: 230
Joined: Tue Mar 04, 2008 9:07 am

Display record counts on links in Designer from the last run

Post by tbtcust »

Hi all.

How do I go to a job in Designer and display the record counts on the links from the last run?

I have a set of jobs that are run in Designer. Currently when I run each job I take a snap shoot of job in Designer to capture the record counts on the links. This is to prove to auditors that the jobs ran successfully.

Is it possible to run these jobs in a sequencer and then go back to each job in Designer and display the record counts on the links from the last run?

Thanks in advance for any help.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

:? Lost. Sure, you can manually go back, right-click on the canvas and 'Show performance statistics' but I can't imagine that's really what you want. Why not use the job's log for the audit?
-craig

"You can never have too many knives" -- Logan Nine Fingers
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Yikes. So... you, manually, need to get a snapshot of *every* job after *every* time it runs? If true, then it sucks to be you. :P
-craig

"You can never have too many knives" -- Logan Nine Fingers
tbtcust
Premium Member
Premium Member
Posts: 230
Joined: Tue Mar 04, 2008 9:07 am

Post by tbtcust »

Yup and on this project it does suck to be me. There are dozens of jobs.

Is it possible to generate theses snapshots in a report from DataStage?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

"dsdesign.exe" on a Client machine can print a bitmap of any job's canvas:

Code: Select all

dsdesign.exe /H=%Host% /U=%User% /P=%Password% /SaveAsBmp=%BitmapDir%\%Jobname%.bmp %Project% %Jobname%
No clue, however, if it will include the job statistics or not. I suspect not but give it a shot. :(

From what I recall, Kim Duke has a batch file to do this for all jobs in a project in his Tips & Tricks section. You could use that as a starting point, I would think.
-craig

"You can never have too many knives" -- Logan Nine Fingers
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

That is correct. The batch file will run dsjob to get a list of jobs then run this command on every job. I forget the name of the bat file.
Mamu Kim
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Post your command line. Change passwords and user names.
Mamu Kim
tbtcust
Premium Member
Premium Member
Posts: 230
Joined: Tue Mar 04, 2008 9:07 am

Post by tbtcust »

D:\IBM\InformationServer\Clients\Classic\dsdesign.exe /H=999.99.99.9 /U=UserName /P=UserName1 /SaveAsBmp=E:\Reports\JobName.bmp ProjectName JobName
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

That looks syntactically correct. Perhaps an 8.x issue? Can you try a different user/password?
-craig

"You can never have too many knives" -- Logan Nine Fingers
tbtcust
Premium Member
Premium Member
Posts: 230
Joined: Tue Mar 04, 2008 9:07 am

Post by tbtcust »

I used all the user/password. They all give the same error.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Sounds like it's time to open a case with your official support provider, see if that option is still valid in the 8.x release.
-craig

"You can never have too many knives" -- Logan Nine Fingers
tbtcust
Premium Member
Premium Member
Posts: 230
Joined: Tue Mar 04, 2008 9:07 am

Post by tbtcust »

I used all the user/password. They all give the same error.
tbtcust
Premium Member
Premium Member
Posts: 230
Joined: Tue Mar 04, 2008 9:07 am

Post by tbtcust »

chulett, the problem was with the /H=999.99.99.9. It should be /D=999.99.99.9.

I have finally got the hang of this command. One other questions. I need the bitmap to display the stats from of the last run in the links. Is it possible to do this with this command?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

No. The bitmap is taken from the design-time metadata not from the run-time metadata.
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 »

Yah, already said I was afraid that would be the case.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply