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



But I'm not sure that it needs to be decrypted at the point that I'm 
reading the file.  I'm reading the first few bytes to find out if the file 
is encrypted or not.

(still working on the error number - should have it soon)...

Thanks!

Jeff Stevens
Mize, Houser & Co. P.A.
913 451 1882
JStevens@xxxxxxxxxxxxxx





"Bob Cozzi" <cozzi@xxxxxxxxx> 
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
07/01/2005 08:51 AM
Please respond to
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>


To
"'RPG programming on the AS400 / iSeries'" <rpg400-l@xxxxxxxxxxxx>
cc

Subject
RE: IFS STMF file read - Codepage problem?






You can open non-"plain" ASCII with O_TEXTDATA? Hmmm?
I don't think he should be reading the file as O_TEXTDATA, but rather, 
read
it as binary, decrypt it, then convert the decrypted text which should at
that point be in ASCII or CCSID 437 (8-bit ASCII US PC) to EBCDIC.

-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 Scott Klement
Sent: Thursday, June 30, 2005 5:10 PM
To: RPG programming on the AS400 / iSeries
Subject: Re: IFS STMF file read - Codepage problem?


>> EVAL data:x
>     00000     2D2D2D2D 2D424547 494E2050 4750204D   - .....âáåñ+.&å&.(
>     00010     45535341 47452D2D 2D2D2D40 40404040   - áëë åá.....
>     00020     40404040 40404040 40404040 40404040   -
>     00030     4040.... ........ ........ ........   -   ..............
> On the code page 437  - the file attributes say that it's a codepage of
> 437.

Yep, that looks like valid ASCII. You need to get O_TEXTDATA working, 
somehow. Please let us know what the value of "errno" is when you find 
out.




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.