Page 1 of 1

Use a $PATH UNIX directory in a server job

Posted: Tue Mar 27, 2007 3:42 am
by brunix
Hello everybody,
I have a question.
It's possible to use a path defined in a UNIX environment in a server job like a path parameter.
For example I define with an export command the following path:
export SOURCEDIR='/develop/source/.
If I write "cd $SOURCEDIR" I will change to the /develop/source/ dir.
How can I Use this $SOURCEDIR environment variable directly in a server job ?
Thank's in advance,
Brunix

Posted: Tue Mar 27, 2007 4:33 am
by srinagesh
I think defining SOURCE_DIR in your dsenv would allow you to refer this in your jobs.

Alternatively, you can also create a Project level Parameter to define SOURCE_DIR and use it in your project

Posted: Tue Mar 27, 2007 4:41 am
by brunix
srinagesh wrote:I think defining SOURCE_DIR in your dsenv would allow you to refer this in your jobs.

Alternatively, you can also create a Project level Parameter to define SOURCE_DIR and use it in your project
How can I define SOURCE_DIR in my dsenv ?
Sorry I'm novice :)

I think too to use a Project level parameter, but I haven't permission to define it.
Thank's a lot,
Brunix

Posted: Tue Mar 27, 2007 5:44 am
by sonal
You can define the Project level parameter through Administrator
and use it as a path parameter.
Log on to administrator, select your project and then define the environmental variable under properties and the heading of User Defined.

Use it in your Jobs through the Job properties.

Posted: Tue Mar 27, 2007 5:45 am
by kumar_s
What version of Datastage are you using?
dsenv is the file that available in $DSHOME. It has the list of environmental variable that need to be exported.
Alternatively you can use DSParams.
Server edition has less flexibility on restricting to User defined Parameter from Administrator client as well as $ENV options.

Posted: Tue Mar 27, 2007 7:29 am
by chulett
brunix wrote:I think too to use a Project level parameter, but I haven't permission to define it.
You mean you're not allowed to? Since you have a logon to the project, you can log into the Administrator and define a User Defined environment variable in your project. It doesn't take an admin to do that. :?