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



After you create the file, do you close it and then re-open it? I think
someone posted that you don't have to do this on V5R3 but on earlier
releases, you run into problems with stuff not getting written correctly
if you don't do this.

Matt

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Jeffrey Young
Sent: Friday, July 15, 2005 1:18 AM
To: RPG programming on the AS400 / iSeries
Subject: RE: IFS Output problem

Bob,
I do not beleive that is the problem as I have done this before by
transfering a database file to an FTP server with the same data output
from the program and then opened using EXCEL.
When I wrote to a database file, my data in the file did not contain any
garbage characters.
The problem I am having now is that when I create the file directly on
the IFS, I am unable to open directly using EXCEL, and also that I have
some garbage characters in my data.
These characters are not in the data that is being passed to the WRITE
command. (I verified that using DEBUG to display the contents of the
record area at the time of the write).
Does anyone have any idea why this is happening?
I am on V5R2 and the PTF level is current.
 
Thanks,

Bob Cozzi <cozzi@xxxxxxxxx> wrote:
You might be confusing Excel by using the XLS suffix on the file since
the
file has HTML in it... I would leave it at .HTM or .HTML

-Bob Cozzi
www.RPGxTools.com
If everything is under control, you are going too slow.
- Mario Andretti


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Jeffrey Young
Sent: Thursday, July 14, 2005 1:42 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: IFS Output problem

Bob,
I changed my second open to use the options

Open_Flag = (O_WRONLY + O_TEXTDATA + O_APPEND);
and now I can read it in NOTEPAD.
I still can not open it in EXCEL unles I first SAVE it in NOTEPAD.
Then, when I open using EXCEL, I get the same results as my first
posting.

HELP (-:

<snip>


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.