Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Need a column with the same value on every row

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Need a column with the same value on every row
 Login/Join
 
Silver Member
posted
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
 
Posts: 38 | Location: Washington, D.C., United States | Registered: April 22, 2010Report This Post
Platinum Member
posted Hide Post
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
 
Posts: 117 | Location: Toronto, Ontario, Canada | Registered: February 29, 2008Report This Post
Silver Member
posted Hide Post
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
 
Posts: 38 | Location: Washington, D.C., United States | Registered: April 22, 2010Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Need a column with the same value on every row

Copyright © 1996-2020 Information Builders