Compare two Datastage jobs

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
monaz
Participant
Posts: 98
Joined: Sat Aug 23, 2008 3:14 am

Compare two Datastage jobs

Post by monaz »

Hi All,

Can anyone please let me know is there anyway we can compare two datastage jobs?
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

For v7,

Take export and do a diff.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

In other words, it's a manual process. Export both to a .dsx and compare using your favorite tool. This is automated in 8.x.
-craig

"You can never have too many knives" -- Logan Nine Fingers
cppwiz
Participant
Posts: 135
Joined: Tue Sep 04, 2007 11:27 am

Post by cppwiz »

The Cross Project Compare tool in 8.x is quite nice. Just highlight the job in the repository list and click on the Repository menu then Cross Project Compare and select the other job. It gives a detailed report of the differences.
nagarjuna
Premium Member
Premium Member
Posts: 533
Joined: Fri Jun 27, 2008 9:11 pm
Location: Chicago

Post by nagarjuna »

Unfortunately it will take some time to produce the difference :(
Nag
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Minutes rather than hours. Learn patience, grasshopper.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
sbass1
Premium Member
Premium Member
Posts: 211
Joined: Wed Jan 28, 2009 9:00 pm
Location: Sydney, Australia

Post by sbass1 »

This is a long shot, but...

Before I reinvent the wheel (ok, maybe this request isn't as common as a wheel!), has anyone developed any Beyond Compare user-configurable rules to ignore unimportant differences between DSX files? Examples might be:
* VC LOGS *
^1_1 05/26/09 14:03:57 Batch 15122_50672 INIT foddev9 DEV_XXX userid Initialize
added to the job description by the version control tool
TimeModified "some-time"
Readonly "some-value"
etc.

If so, I'd love to get an export of your rules...

Thanks...

P.S.: DS 7.x, Server, Unix
Some people are the Michael Jordan's of Datastage. I'm more like Muggsy Bogues :-)
nagarjuna
Premium Member
Premium Member
Posts: 533
Joined: Fri Jun 27, 2008 9:11 pm
Location: Chicago

Post by nagarjuna »

ray.wurlod wrote:Minutes rather than hours. Learn patience, grasshopper. ...
I understand ray ...But when i wrote a batch script to compare jobs its taking long time ...for comparision of 10 jobs across twp projects it took nearly 4 hrs :(
Nag
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Yes, that's minutes. 48 minutes each, on average.

There's a lot of work to do to compare every object and every relationship.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

Its not the comparision command which is taking long time, probably it your network connection/server/client system which is taking long time. On my system it compares around 100 jobs with another 100 on other server per hour. Of course it depends on the complexity of the job but you shouldn't complain about the time taken to compare the jobs.
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
Sreenivasulu
Premium Member
Premium Member
Posts: 892
Joined: Thu Oct 16, 2003 5:18 am

Post by Sreenivasulu »

Cross project compare is an excellent feature of version 8. This was a very tedious and manual process in earlier versions.


Regards
Sreeni
kurics40
Premium Member
Premium Member
Posts: 61
Joined: Wed Nov 18, 2009 10:01 am

Post by kurics40 »

nagarjuna wrote:... when i wrote a batch script to compare jobs its taking long time ...
Hi Nagarjuna,

Can you show me your batch script?
I dont know how to invoke the compare tool from command line.

Best regards,
Janos
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

kurics40 wrote:I dont know how to invoke the compare tool from command line.
Oddly enough, it's fully documented. Designer Client Guide, Chapter 9.
-craig

"You can never have too many knives" -- Logan Nine Fingers
kurics40
Premium Member
Premium Member
Posts: 61
Joined: Wed Nov 18, 2009 10:01 am

Post by kurics40 »

Hi Chulett,

Thanks a lot.

http://publib.boulder.ibm.com/infocente ... jects.html

Best regards,
Janos
Post Reply