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



Notepad opens the data and displays it correctly? I thought it got a bunch
of garbage in Notepad (the data you posted) but maybe I misread which
application displayed the data incorrectly.

One thing to remember is if the file is already created with one CCSID and
you change the CCSID of that existing file, the data in the file does not
magically change to the new CCSID.
-Bob


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Ian Patterson
Sent: Monday, October 25, 2004 12:18 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: tip required to transfer large data from User Space to IFS

I agree with Scott, if the CCSID was wrong, I would still be able to open
the file, but with rubbish data.
But Notepad sees it OK, so I don't think thats it.

Delphi is a current version (5) and usually gets things right for 32bit
Windows, although I have known it to be a bit sensitive at times.

I think it points to the IFS Mode. I definately had to change some rights to
get the thing going, so I need to do a bit more checking there.
(whats a umask ??)

Unfortunately I am now out of the office until Thursday morning (its 6.15 pm
here), so won't be able to check out any ideas until then.

Thanks to those who have helped so far.


Regards

Ian Patterson

ian@xxxxxxxxxxxxxxxxx <mailto:ian@xxxxxxxxxxxxxxxxx>

Grange IT Limited
tel 01947 880458
www.grangesystems.com



-----Original Message-----
From: rpg400-l-bounces+ian=grange-systems.co.uk@xxxxxxxxxxxx
[mailto:rpg400-l-bounces+ian=grange-systems.co.uk@xxxxxxxxxxxx]On Behalf
Of Scott Klement
Sent: 25 October 2004 17:58
To: RPG programming on the AS400 / iSeries
Subject: RE: tip required to transfer large data from User Space to IFS




On Mon, 25 Oct 2004, Ian Patterson wrote:
>
> If I use the file creation (from Scotts's tutorials) method to create the
> IFS file, and then access it in Delphi programs in Windows, I get IO
errors.
> Notepad can open the file.

Hmmm... it sounds like the iSeries is doing it's job properly if Notepad
can open the file.  I don't know what Delphi does differently...  Unless
Delphi is an old version, like Win 3.1?

[SNIP]
> 0089.00 c                   eval      fd = open(%trimr(AppFile):
> 0090.00 c                             O_WRONLY+O_TRUNC+O_CREAT+O_CODEPAGE:
> 0091.00 c                             file_IFSMODE:file_CODEPAGE)
[SNIP]
> 0027.00 D File_IFSMODE    C                   CONST(511)
>
> I then give *PUBLIC all access & rights to the data & objects (manually)

Why would you have to manually give authority?  Something's not kosher
here...  If you've got a file mode of 511, everyone should have both read
& write authority to the file.   Unless it's a umask problem?  What's your
umask set to?

--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.




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.