March 19, 2007, 07:43 AM
<Torque>Concatenation
Hi,
I have to concatenate two A360 fields to produce an output.
Some records have these fields as empty/null and as a result on concatenation I get garbage values.
I have tried using TRIM before concatenation; STRIP after concatenation; IS-MISSING and replacing before concatenation, but none of them have worked.
Please help..
Thanks
March 19, 2007, 09:27 AM
LeahHave you tried passing the values separately in a hold file then concatenating from that point? I've found WebFOCUS will pass missing on as blanks or zeroes based on the format when coming out of a hold file.
March 19, 2007, 09:35 AM
Francis MarianiTry
SET HOLDMISS=ON
or
ON TABLE SET HOLDMISS ON
This seems to do the trick.
Here's a working example, just change the setting to OFF or ON to see the difference.
SET HOLDMISS=OFF
SET HOLDLIST=PRINTONLY
TABLE FILE CAR
SUM
SALES
MODEL/A360
CAR/A360
FOR COUNTRY
'ENGLAND' OVER
'FRANCE' OVER
'CANADA'
ON TABLE HOLD AS H001
END
-RUN
DEFINE FILE H001
TEST1/A720 = MODEL | CAR;
END
TABLE FILE H001
PRINT
E01
SALES
TEST1
END
-RUN
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server