Thank you Peter and Robert.  I do believe that the problem is that the
field is not treated as numeric.  Don't know why it will not pick the
field specs up properly from the database, but I have changed the file
field to alphanumeric, and the comparison seems to work now.

Don

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]
On Behalf Of Peter Dow (ML)
Sent: Tuesday, March 20, 2007 2:58 PM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] How can this be?? Must be something OBVIOUS

Hi Don,

Maybe it's because they're strings, not numbers, so the comparison is
left-adjusted blank-filled, not based on decimal alignment.

In other words, "4" is greater than "1".

hth,
*Peter Dow* /
Dow Software Services, Inc.
909 793-9050
pdow@xxxxxxxxxxxxxxx <mailto:pdow@xxxxxxxxxxxxxxx> /

Don Cavaiani wrote:
TSTTOD   TSTQTR   (from mytable1a)
04:00a   4.00

      @DTW_TB_GETV(mytable1a, "1", "2", savi1d)     
4.00 savi1d
 
TSTTOD   TSTQTR   (from mytable1b)
01:30a   1.50

      @DTW_TB_GETV(mytable1b, "1", "2", savo1d) 1.50 savo1d

%IF (savi1d >= "16.00")
@dtw_eval("$(savo1d) + 24", savo1d)
%ELSE
%ENDIF

25.5 savo1d    


Don F. Cavaiani
IT Manager
Amerequip Corp.
920-894-7063
 
"Only one who devotes himself to a cause with his whole strength and 
soul can be a true master. For this reason mastery demands all of a 
person." Albert Einstein



  

--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list To
post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/web400.



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 [javascript protected email address].

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