|
On v5r2, trying to use %dec to convert a numeric expression in an alpha field
to a numeric, but am
getting RNQ0105: "A character representation of a numeric value is in error".
I found no APARs
for this. Any help would be appreciated!
Here is the relevent code:
FWIPlist if f 132 disk
FPD14WL# o e disk
IWIPlist ns
I 105 117 wl_@xxxxxx
I 118 132 wl_estamt
C Dou *inLR
C Read WIPlist LR
C If not *inLR
c Select
c When wl_@xxxxxx = 'ESTIMATE AMT:'
c Eval w#_estamt = %dec( %trim(wl_estamt) : 13 : 2 )
Here is the relevent parts of the dump:
NAME ATTRIBUTES VALUE
W#_ESTAMT PACKED(15,2) 0000000000000.00
WL_@xxxxxx CHAR(13) 'ESTIMATE AMT:'
WL_ESTAMT CHAR(15) ' 3,793.00'
VALUE IN HEX '40404040404040F36BF7F9F34BF0F0'X
TIA, Dan
__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
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.