To identify jobs in a project and not in another.

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
sandeepsreedhar
Participant
Posts: 15
Joined: Mon Dec 21, 2009 12:49 am
Location: India

To identify jobs in a project and not in another.

Post by sandeepsreedhar »

Hi,

We have two versions of the same project.
One is kept as a base and the other where all the changes are done.
We are asked to find out if the list of new jobs in the updated one.
Is there any way to find a job which is not in the other project?

Currently we are going categorywise and comparing the jobs in both projects. Appreciate if some one can provide an alternative,

Regards,


Sandeep
DS_SUPPORT
Premium Member
Premium Member
Posts: 232
Joined: Fri Aug 04, 2006 1:20 am
Location: Bangalore

Post by DS_SUPPORT »

Get the jobnames from DS_JOBS from both the projects and compare it in excel or anyother tool.

Code: Select all

SELECT NAME FROM DS_JOBS WHERE NAME NOT LIKE '\\%';
You can use this query either in universe stage or you can use it in Administrator Command prompt directly.

For saving the results from Adminstrator Command prompt, first execute

Code: Select all

COMO ON YOUR_FILENAME.TXT
And the file will be stored in the &COMO& folder inside your project folder in the Datastage server.

Finally use

Code: Select all

 COMO OFF 
, Else you will storing all the unwanted things to the newly created file.
srinivas.g
Participant
Posts: 251
Joined: Mon Jun 09, 2008 5:52 am

Post by srinivas.g »

use the below command:
dsjob -ljobs <projectname> >> filename1.txt
\]
and compare the files.
Srinu Gadipudi
sandeepsreedhar
Participant
Posts: 15
Joined: Mon Dec 21, 2009 12:49 am
Location: India

Post by sandeepsreedhar »

Thanks a lot for all the replies.....
Vineet Pal Singh
Participant
Posts: 21
Joined: Mon Mar 16, 2009 3:59 am

Post by Vineet Pal Singh »

SELECT * FROM DS_JOBS WHERE NAME = 'YOURJOBNAME';
Vineet Pal Singh
Participant
Posts: 21
Joined: Mon Mar 16, 2009 3:59 am

Post by Vineet Pal Singh »

SELECT * FROM DS_JOBS WHERE NAME = 'YOURJOBNAME';
Post Reply