|
Joel, Consider the FTRANS keyword on the control specification with an associated hex table. This allows you to automagically translate any of the 8-bit codes used for characters into another 8-bit code (for the specified file). See... http://publib.boulder.ibm.com/cgi-bin/bookmgr/bookmgr.cmd/BOOKS/QB3AGZ00/1.7 .2 Regards, Jerry Jewel "Better living through fine code and hot coffee!" > -----Original Message----- > From: Stone, Joel [SMTP:StoneJ@GourmetAward.com] > Sent: Friday, February 04, 2000 1:03 PM > To: 'RPG400-L@midrange.com' > Subject: scrub data during subfile load > > I am loading a subfile with 70 byte strings of data from another PC. > Sometimes the data is hex 02, which gives me the following error: > > What is an easy way to change any characters below hex 40 to spaces? Is > looping thru the string the only method? Will XLATE work? > > > Message ID . . . . . . : CPF5192 > > Date sent . . . . . . : 02/04/00 Time sent . . . . . . : > 15:52:12 > > > Message . . . . : Data sent to device QPADEV0054 not valid. Negative > > response code is 10050122. > > > > Cause . . . . . : The condition was caused by the program output data > > containing below hex 40 or too many input fields. > +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
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.