Setting up DataStage Default Directory on Windows Server

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
svishaal
Participant
Posts: 3
Joined: Tue Jul 12, 2005 3:06 am

Setting up DataStage Default Directory on Windows Server

Post by svishaal »

Hi,

Can anyone help me to setup the default project directory.

Eq. - Whenever I specify ./test111.txt in Sequenctial File Stage file output parameter, it creates the test111.txt file in DataStage project folder which I am current working in.

Now, I want instead of DataStage Project Folder, file should be generated in my own folder, which I can specify by putting "./" in file output parameter.


Can anyone help me this thing, that where I should change the setting so that it will generate the files in my own folder instead of DS project folder.


Thanks in Advance....
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The CWD (current working directory) of any shell command in DataStage will always be that of the DataStage project directory, so if you specify a relative path it will always start in that location. You should specify an absolute path if you want to use your own folder.
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Welcome aboard. :D

The "." means "current directory". If you're executing a DataStage server job, that means the project directory. There's no way around that. You can't use ".".

Use a job parameter instead, for example #FileDir#/myfile.txt
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