×
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.
Dale, maybe you want to cast your result ?
Here is an example that I had on hand:
CAST (
CAST (REPLACE(cshcol,' ','0')
AS NUMERIC(10,0))/100
AS NUMERIC(10,2)) AS cshcol92
NUMERIC is the Sql equivalent of zoned,
DECIMAL is the Sql equivalent of packed
HTH
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Dale Janus
Sent: Wednesday, March 19, 2014 9:19 AM
To: RPG
Subject: problem with SQL query manager
I was using query manager to create a quick inventory cost report for selected vendors. Our material is stored in feet and inches and a cost per foot. I divided inches by 12, added to feet and multiplied by cost per foot. This was a created expression using the prompts in query manager
The result field was 32 positions long. While I could read the detail data, the total line was too long to display. (maybe it would have printed, I did not try).
So I tried rounding the expression and truncating the expression. Result was the same.
Can anyone tell me how to define the length of an expression in query manager?
Here are some screen shots.
Define Expressions
Type expression using field names, constants, and operators, press Enter.
For full name and expression, press F4.
Valid operators are: +, -, *, /, CONCAT ...
Name Expression
COST2 ROUND(COSTFT+COSTIN,2)
COST TRUNCATE(LENGTH*INCOST,2)
More...
Edit Column Formatting
Type information, press Enter.
For Usage and Edit, press F4 for list.
For Heading, press F4 for prompt.
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.