how do i find Project directory using unix command line

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
JITeam
Premium Member
Premium Member
Posts: 17
Joined: Mon Mar 24, 2008 9:43 am

how do i find Project directory using unix command line

Post by JITeam »

I would like to know is there a way to find where is Project directory using Unix command line option, i need know this to use this path in a shell script.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

By default the projects are located in $DSHOME/../Projects/{YourProjectName}. If the projects are located elsewhere, the command

Code: Select all

dssh "LIST UV.ACCOUNT ID.SUP PATH FMT 64L WITH @ID EQ '{YourProjectName}'"
will give the path on line 4 of the output.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Code: Select all

cd `cat /.dshome`
. ./dsenv
dssh "SELECT SCHEMA_NAME, PATH FROM UV_SCHEMA WHERE SCHEMA_NAME = '<<Project Name>>';" << eof
QUIT
eof
Redirect output of dssh to a location of your choosing.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply