|
Thanks. I will try changing the \ to a / and see what happens. The "root" is in case the root directory is not being shared. I have found that in that case, you need the directory name "root" as the first directory in your path name. Mark Phippard <MarkP@xxxxxxxxxxxxxxx> wrote: midrange-l-bounces@xxxxxxxxxxxx wrote on 07/11/2005 05:56:14 PM: > I am using the IFS IO API's and am having a problem creating a file > in an RPG IV program. > I am getting back a -1 in the File Descriptor when using the OPEN. > My file name is \root\ifsreports\JEFF\corbtch.xls, Open_Flag is > O_CREAT + O_WRONLY + O_CODEPAGE, Mode_Flag is S_IWUSR + S_IRUSR + > S_IRGRP + S_IROTH. > Is there any way to determine what it does not like? In my experiences, I have found that while the OS/400 IFS commands are forgiving, and will accept a path like \folder\file.ext. The API's are not and require that the path be specified as /folder/file.ext. Also, do you really have a folder named root? I would guess that the correct path is /ifsreports/JEFF/corbtch.xls Mark _____________________________________________________________________________ Scanned for SoftLanding Systems, Inc. by IBM Email Security Management Services powered by MessageLabs. _____________________________________________________________________________
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.