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



Also, remember, you can't use the BIF %SCAN, because it does not put results
into all the elements of an array - just the first instance. This is one
case where you have to use fixed format (grrrr.....)

Francis Lapeyre
IS Dept. Programmer/Analyst
Stewart Enterprises, Inc.
E-mail: flapeyre@xxxxxxxx 

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Gene Burns
Sent: Tuesday, August 1, 2006 9:47 AM
To: RPG programming on the AS400 / iSeries
Subject: Re: Scan Hex values of Character field

Try this setup.
   
     d CR              c                   X'0D'   
     d arr             s              1a   dim(3000)     

     c     CR            scan      char          arr
                                                      
This should fill the array with every position of hex '0D' in the CHAR 
field.

Gene

mcrangle@xxxxxxxxxxxxxxxxxxxx wrote:
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

  

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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 copyright@midrange.com.

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.