|
I think you may be thinking too hard. I believe (that's dangerous when
coming from me :-) ), that you don't need to convert the string. You
should be able to define the HEX value you want to search for and just scan
the original string field for that value.
D CarriageReturn C x'0D'
%scan(CarriageReturn:String)
mcrangle@cinetic-
landis.co.uk
Sent by: To
rpg400-l-bounces@ rpg400-l@xxxxxxxxxxxx
midrange.com cc
Subject
08/01/2006 09:52 Scan Hex values of Character field
AM
Please respond to
RPG programming
on the AS400 /
iSeries
<rpg400-l@midrang
e.com>
Here is my problem;
We have a 3000 long character field populated from Lotus Notes via DECS.
I need to find all instances of a carriage return ( hex value X'0D I think)
so I can display the field on both green screen and printouts to suppliers.
I can only find instances of single values character to hex conversions on
the archive.
Is something like this possible:
D DS
D Char 3000A
D HexChar 3000B
Or other solutions gratefully received.
Regards
--
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 mailing list archive is Copyright 1997-2025 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.