Lost user when calling a .bat file

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
gpbarsky
Participant
Posts: 160
Joined: Tue May 06, 2003 8:20 pm
Location: Argentina

Lost user when calling a .bat file

Post by gpbarsky »

Hi, forumers......

From within a DS job I am invoking a .bat file by means of the DSExecute command. The .bat file works with a directory of the net. It checks if the directory exists, creates it, and copies some files into the directory of the net.

The .bat file is failing when it is executing. The main reason is "Access denied". This message appears in the machine of the created directory. I checked out the permissions for the user and they are Ok.

When looking at the log of the machine of the net, my support noticed that the "anonymous" user is logging instead the user of the DS job, which invoked the .bat file.

Let me make an example:
DSJOB1 is running in the director, with the ZETL user.
DSJOB1 invokes F1.bat.
F1.bat is trying to access a \\11.111.111.111\.... directory, with the anonymous user.
When F1.bat tries to copy files into \\11.111.111.111\... directory, it fails.

The question is why the user is lost when the .bat is executed ?

Any help, will be appreciated.
:)
Guillermo P. Barsky
Buenos Aires - Argentina
Post Reply