× 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.



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 thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.