×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
I installed Windows Services for Unix 3.5 on one of our Windows 2003 servers.
The NFS Services is running and I have shared the directory under the tab "NFS Sharing" and made sure that I allowed Anonymous Access and set the Anonymous UID to 0 Zero and the Anonymous GID to 0 Zero.
I set permissions for All Machines to have Read-Write access and the encoding to be ANSI.
Under the security tab I Added Anonymous Logon and Everyone and gave them Full Control.
I went to my iSeries and created a directory on the IFS and gave it appropriate permissions.
Mount type(*nfs) mfs('10.0.108.18:/ImageCache') mntovrdir('/iseriesnfs') options('rw,nosuid,retry=5,rsize=8096,wsize=8096,timeo=20,retrans=5,acregmin=30,acregmax=60,acdirmin=30,acdirmax=60,hard')
I then wrote an RPG program to read the directory and when if finds a particular type of file extension i.e. .txt then to read the file.
When I open the file it returns a handle
gHandle = open(%trim(fnwithdir): O_RDONLY: S_IRWXU + S_IRWXG + S_IRWXO);
When I read the file gBytes is 0 Zero.
gBytes = read(gHandle: gDataPtr: gDataPtrSize);
I would think that gBytes should be greater than 0.
I have validated that there is data in the file I am trying to read.
Any thoughts?
Thanks
Bruce "Hoss" Collins
Project Leader/System i Administration
AAA Cooper Transportation
(334) 671-3106
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.