Good News Everybody!
The new search engine is LIVE!
Please report any problems to david (at) midrange.com.
|
Well, the V5R3 book says (about %SCAN): "The type of the return value is unsigned integer. This built-in function can be used anywhere that an unsigned integer expression is valid." I've used 5I 0 with %SCAN, but now that you mention it, that seems unnecessary. %SCAN can't return a negative number. 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 Robert Munday Sent: Wednesday, September 13, 2006 8:35 AM To: RPG400 Subject: Using An Unsigned Field I have found a field defined as 5 U 0 which I would normally define as 5 I 0. This field is used as a result for a scan operation: D Pos S 5U 0 Pos = %Scan(' ': FIELDA) Is there any value in having this field unsigned instead of signed? Robert Munday Munday Software Consultants Montgomery, AL on assignment in Dublin, OH
This mailing list archive is Copyright 1997-2026 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.