Hi Everyone,
How can we list all the DS jobs which were using a specific environment variable in a project?
We have thousands of DS jobs in our project and need to list all the jobs used by specific environment variable like #$SqlServerDSN#.
I took the latest copy of .dsx file and manually searching for the jobs. Is there any better approch to list out the all the jobs?
Can anyone please help me by your suggestion.
Thanks and regards,
Ramu
List out all the DS jobs using specific environment variable
Moderators: chulett, rschirm, roy
We can implement through unix script as below
1)Get the list of the jobs in project by using dsjob command
2)For each Job get the list of parameters by using dsjob command
3)Check whether specific environment variable is present or not in a job.
We need to pass proper parameters for dsjob command to implement the first and second step
1)Get the list of the jobs in project by using dsjob command
2)For each Job get the list of parameters by using dsjob command
3)Check whether specific environment variable is present or not in a job.
We need to pass proper parameters for dsjob command to implement the first and second step
-
- Premium Member
- Posts: 1735
- Joined: Thu Mar 01, 2007 5:44 am
- Location: Troy, MI
yes that will give you the parameters defined in the job, whether used anywhere or not. Also you can find that out by querying datastage repository and also whether it is used inside any stage or not.
If to be done from DSX, I think Phil Hibbs posted a spreadsheet with macros to parse the dsx and give you the details in tabular format. You might want to check that out.
If to be done from DSX, I think Phil Hibbs posted a spreadsheet with macros to parse the dsx and give you the details in tabular format. You might want to check that out.
Priyadarshi Kunal
Genius may have its limitations, but stupidity is not thus handicapped.
Genius may have its limitations, but stupidity is not thus handicapped.
Administrator Client Component-> Projects Tab-> Command Button -> Here You need to query Repository Tables...vamsi.4a6 wrote:Can any one please tell me where to query the Datastage Repository tables like DS_JOBS and DS_JOBOBJECTS for a particular Datastage project?
Another way is from DSEngine folder-->using dssh command connect to repostiry
Thanks,
Sekhar
Sekhar
viewtopic.php?t=144212&highlight=priyadarshikunal wrote:If to be done from DSX, I think Phil Hibbs posted a spreadsheet with macros to parse the dsx and give you the details in tabular format. You might want to check that out.
Thanks,
Sekhar
Sekhar