popeye
16th October 2001, 02:35
Hi !
How do I read a flat file from a shared network drive?
Basically ... How do I give the path?
We are using Baan IV c3 on UNIX.
I have a file located on a network drive (shared).
When I use the following command, it returns -2.
ret = seq.open("\\Sj-mnair\Data\51.txt","r")
Thanks.
Regards,
M&M
~Vamsi
16th October 2001, 03:18
Madhu,
Look at an earlier posting:
http://www.baanboard.com/baanboard/showthread.php?s=&threadid=252
If you need for this to work with jobs then consider Samba or mounting a NFS drive. You will have to work with your M$ network/unix admins on this.
And if you don't need the job option then simply use functions in the ottdllbw library like seq.open.local (or is it seq.local.open).
mark_h
16th October 2001, 18:56
Here is a sample of the path only:
k:\\somepath\\somepath1\\filename
At least when I enter k:\excel\data.csv in debug it comes out k:\\excel\\data.csv. If doing in a job see Vamsi's reply. The only thing I can see that you are missing is a drive. Maybe the below will work - of course you have to point it to the right drive. Not sure if the all of the \'s are necessary.
ret = seq.open("c:\\Sj-mnair\\Data\\51.txt","r")
Good Luck!!
popeye
17th October 2001, 01:14
Thanks a lot Vamsi !
Cheers,
Madhu