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



Probably the file name you're specifying is not correct.
For example, if a field is declared as Char(17) in your program and you file
name is:

/cozzi/myFile.txt
It is passed to the OPEN operation and will work.
But if the file name is:
/cozzi/aa.txt

And it is passed through the same 17-byte variable to the OPEN API, then it will
not find it unless you wrap the variable name in %TRIMR().


-Bob Cozzi
www.iSeriesTV.com
iPod your industry news instead of reading it.
Coming June 2006
Ask your friends to tune into iSeriesTV.com


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On
Behalf Of Smith, Mike
Sent: Wednesday, May 31, 2006 11:52 AM
To: rpg400-l@xxxxxxxxxxxx
Subject: Reading from IFS

I'm am trying to redo an application that was written in KIX by a former
employee.  I want to read the file via rpg from the IFS.  I found a
program I had downloaded a long time ago to read from the IFS.

The problem I'm having is that in testing this little program out, I
have some files(.txt) that it will read and others that I get an 
(error> - file not found) message.

The files are there.  In particular the file that I really need to
read, is receiving the message.

What are some things I can check to determine the problem?  I have
looked at CCSID on the files, but I'm not getting a consistence value 
on the different files that I have experimented with.



Michael Smith
iSeries.mySeries.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.