failed to write file to directory

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
speedsterrules
Participant
Posts: 28
Joined: Thu Sep 29, 2005 1:50 pm

failed to write file to directory

Post by speedsterrules »

ob_xxxxx..BeforeJob (DoJobReport): Failed to write file xxx.txt to directory \\dirpath\

I am getting this error while trying to send the information from DSJobReport(1; \\dirpath\;) to the directory.

The DS server is windows.

Thanks
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Check that you have write access to every folder (including the root folder) in the pathname, and that every folder named in the pathname actually exists. Finally, check that the final entry in the pathname is the name of a folder.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
speedsterrules
Participant
Posts: 28
Joined: Thu Sep 29, 2005 1:50 pm

Post by speedsterrules »

Thanks for your comments Ray.

I realized there was some problem with the pathname for the directory. Its running fine now.

But I had another quick question. How can we attach an alias ID to my output filename. I mean it says if the job has an alias ID, the file would be named accordingly.

Thanks
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Unrelated to thread topic. Please start a new thread so that future searchers will find it more easily.
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