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



Not that I know of. The DIGITS function will ignore the sign, but it
creates a character string. No way to convert back.

SQL has had ABS since at least v3r2. Can you use a QMQRY instead? If you
have Query Manager, you can use that - has Query/400-like interface. If
not, you can create a QMQRY from source. Just create a source file with
record length = 91 (don't ask). Then merely enter your SQL statement into
it. Then CRTQMQRY. Run it with STRQMQRY.

At 02:56 PM 3/22/02 -0600, you wrote:
>Greetings,
>
>I am attempting to write a query that will take a particular field (positive
>or negative numeric data) and perform a calculation using the absolute value
>of that number.  Is there a way to make Query/400 ignore the sign of numeric
>data like this?
>
>Thanks,
>
>-doug
>
>
>************************************************
>DOUGLAS JOHNSON
>System Administrator
>The University Book Store
>711 State Street
>Madison, WI 53703
>
>djohnson@univbkstr.com
>608-257-3784
>608-257-9479(fax)
>
>_______________________________________________
>This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
>To post a message email: MIDRANGE-L@midrange.com
>To subscribe, unsubscribe, or change list options,
>visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
>or email: MIDRANGE-L-request@midrange.com
>Before posting, please take a moment to review the archives
>at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.