Focal Point
[SOLVED] Need a column with the same value on every row

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/471101305

August 06, 2010, 10:23 AM
Theresa
[SOLVED] Need a column with the same value on every row
I've searched this forum and documentation, but haven't been able to figure out how to create a column in my output with the same value for every row. I know how to do this in SQL, but not in WebFocus.

Here's what I currently have:
 
DEFINE FILE NEW_REPORT
Count/I1=ABS(1);
END
TABLE FILE NEW_REPORT

SUM
   CNT.Count AS 'Count'
....
 


We tried:
1 AS 'Count'
and got an error. Any suggestions?

This message has been edited. Last edited by: Theresa,


PMF: 5.2.3 HF 4
Server: WF 7.6.11/DB2
Desktop: WF 7.6.11/SQL Server/XP
output: HTML
August 06, 2010, 10:32 AM
fatboyjim
Hi,

Maybe try a PRINT instead of COUNT.

Best Regards,

Jimmy Pang


DEV: WF 7.6.10
TEST: WF 7.6.10
PROD: WF 7.6.10
MRE: WF 7.6.4
OS/Platform: Windows
Dev Studio: WF 7.7
Output: HTML, EXCEL, PDF, GRAPH, LOTUS, CSV
August 06, 2010, 11:29 AM
Theresa
That worked!

For future reference, here is the line I used:

 PRINT CNT.Count AS 'Count' 


Thanks!
Theresa


PMF: 5.2.3 HF 4
Server: WF 7.6.11/DB2
Desktop: WF 7.6.11/SQL Server/XP
output: HTML