variable to get DataStage Home directory path
Moderators: chulett, rschirm, roy
variable to get DataStage Home directory path
Hi,
I am trying to write a routine where it has to execute dsadmin command from DataStage Home directory (which is on Unix box). For this requirement first I need to find directory of DataStage home directory, is there any variable or option where it retrieves DataStage home directory (otherthan using $DSHOME) ?
I see there is something called %SERVERPATH% variable under 'job properties' -> 'Dependency' tab, how this is going to help ?
Regards,
Ganesh
I am trying to write a routine where it has to execute dsadmin command from DataStage Home directory (which is on Unix box). For this requirement first I need to find directory of DataStage home directory, is there any variable or option where it retrieves DataStage home directory (otherthan using $DSHOME) ?
I see there is something called %SERVERPATH% variable under 'job properties' -> 'Dependency' tab, how this is going to help ?
Regards,
Ganesh
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
What are you trying to achieve by invoking a sparsely documented command from a routine? If you're in a routine System(32) may be easier than hacking around with environment variables.
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.
Or perhaps you could do the same thing dsenv does:
Code: Select all
cat `./dshome`
-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:
However, you appear not to have noticed that the cat command was surrounded by back-quotes, not single-quote characters.
(System(32) remains the easiest approach.)
(System(32) remains the easiest approach.)
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.
Ah. Thanks.ArndW wrote:On sites with multiple DS instances there won't be a /.dshome file. I would prefer to stick with the simple, time-proven method that Ray suggested, "System(32)".
However, curious about the 'because of permissions problems' statement.
![Confused :?](./images/smilies/icon_confused.gif)
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers