Hi All,
Is there a way to programatically find the following details for each job
(in each Env we have , DEV, QA and PROD)
Last Run Date
Compile Date
and any other info that might help us compare jobs between Env
We want to do House keeping before upgrading to a new Datastage Version
Thanks,
NV
Compare Jobs Between Environments
Moderators: chulett, rschirm, roy
Except for the compile date, you can get generic information about a job (including the last run date) from dsjob -jobinfo. Easily scripted to run against all jobs in a project in an iterative manner. Run one manually first to see if the output is helpful enough for your mission, should you decide to accept it.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Although not programmatically, you can also use DataStage Designer to compare designs across projects. This would be useful if you suspect that there are differences between environments, or simply to confirm that what's in DEV hasn't changed since it was last promoted.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
This works on version 8.1 to get the compile date for a job:
two steps to get compile date from the command line:
1) find job number: LIST DS_JOBS jobname example:3610
this also works: SELECT JOBNO FROM DS_JOBS WHERE NAME = 'jobname';
2) substitute JOBNO in the RT_CONFIGxxxx table name
SELECT EVAL "@RECORD<31>" AS COM_DATE FMT '20L' FROM RT_CONFIG3610 WHERE EVAL "@RECORD<1>" = 'JOB';
output will be compile date and time like this:
two steps to get compile date from the command line:
1) find job number: LIST DS_JOBS jobname example:3610
this also works: SELECT JOBNO FROM DS_JOBS WHERE NAME = 'jobname';
2) substitute JOBNO in the RT_CONFIGxxxx table name
SELECT EVAL "@RECORD<31>" AS COM_DATE FMT '20L' FROM RT_CONFIG3610 WHERE EVAL "@RECORD<1>" = 'JOB';
output will be compile date and time like this:
Code: Select all
COM_DATE............
2014-11-13 15:22:33
1 records listed.