|
Hi All. I think I am having a problem with ASCII to EBCDIC conversions. Here is what I know: I am storing an encrypted file on the IFS. The file comes from a vendor and they are running a PC package. The file is encoded in ASCII. I have the keys stored on the IFS and they are in ASCII encoding. The files that need to be encoded are written to the IFS using an RPG program and the file is opened with the ASCII code table. The files that we receive are from a POST to a web site and are processed by an RPG program. They are also written in ASCII format on the IFS. If I run my classes on a PC and connecting to the IFS, all works well. The file is read, decrypted (or encrypted) and written back to the IFS. Life is good. Then I try to run the classes on the 400. When I try to run the class on the 400, I receive encryption/decryption errors because of some math conversion errors. I believe what is happening (and correct me if I am wrong - Dave or someone from the Data Group may know the answer to this) is an ASCII/EBCDIC conversion problem. I believe that when the classes are being run in the QShell environment, they are interpreting the data in EBCDIC methods and when they are being run on the PC they are interpreting the data in ASCII. Does anyone have any suggestions on how to correct this problem? Thanks! Mike ================================ Mike Silvers AS/400 Senior Programmer/Analyst AS/400 IBM Certified RPG IV Developer AS/400 IBM Certified Solutions Expert Hainey Business Systems 8 E. Canal St Dover, PA 17315 Branch Office: (410) 397-8739 Phone: (800) 932-3380 Fax: (717) 292-9474 Web: http://www.hbs-inc.com ________________________________ Providing E-Commerce, EDI, AS/400 Development and related services nationwide. ================================
As an Amazon Associate we earn from qualifying purchases.
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.