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     [CLOSED] Variable fields in HOLD file

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Variable fields in HOLD file
 Login/Join
 
Gold member
posted
Hi,

I've created a hold file through the use of an ACROSS query with some variables.
 
TABLE FILE DWH_CLEARING_AND_SETTLEMENT
SUM 
     &V_MEASURES.(<Nbr,DWH.FIELDS.COUNT>,<Amt,DWH.FIELDS.AMOUNT>.Please select sum field(s).
BY  LOWEST DWH.FIELDS.YEAR_MONTH
ACROSS LOWEST &V_ACROSS.(<Mcc,DWH.FIELDS.MCC>,<Type ,DWH.FIELDS.TYPE>).Please select across field(s).  
ON TABLE SET ASNAMES ON
ON TABLE HOLD 

This works fine and I can use the hold file to create a report on it.
Considering the number of fields can be different however (depending on chosen across field), I need to print a variable number of fields:
 
TABLE FILE HOLD
SUM *
BY HOLD.HOLD.YEAR_MONTH 
ON TABLE PCHOLD FORMAT FLEX


My question: How can I prevent the YEAR_MONTH to show up twice? (once as BY, once as SUM)
Note: PRINT * doesn't work as the end report is shown as a FLEX chart --> for the chart to show correctly, it needs to be in the BY clause

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


Prod: WebFOCUS 8.0.06 on Win2008/Tomcat7/LDAP Mode
Test: WebFOCUS 8.0.06 on Win2008/Tomcat7/LDAP Mode
 
Posts: 59 | Registered: April 23, 2012Report This Post
Virtuoso
posted Hide Post
Here's one possible solution. Use CHECK FILE HOLD to get a list of fields in your HOLD file and use this list to exclude your BY field from the final report query.

TABLE FILE CAR
 PRINT
  SALES
  RETAIL_COST
  DEALER_COST
 BY COUNTRY
 ON TABLE HOLD AS CARHOLD
END
-*
CHECK FILE CARHOLD HOLD
-*
TABLE FILE HOLD
 PRINT FIELDNAME
 WHERE FIELDNAME NE 'COUNTRY';
 ON TABLE SAVE AS FIELDS
END
-RUN
-*
TABLE FILE CARHOLD
 SUM
-INCLUDE FIELDS
 BY COUNTRY
END


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Expert
posted Hide Post
What about

SET HOLDLIST=PRINTONLY

and

BY YEAR_MONTH NOPRINT

?


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Gold member
posted Hide Post
A late reply on a closed topic as I was on vacation (yay for me)

@Dan: Thanks for the tip, it worked like a charm after I removed any quotes from the column names in the hold file

@Francis: Unless I misunderstood your suggestion, the NOPRINT option would remove YEAR_MONTH from the hold file, but I need this data to show on my x-axis.

Thanks to you both!


Prod: WebFOCUS 8.0.06 on Win2008/Tomcat7/LDAP Mode
Test: WebFOCUS 8.0.06 on Win2008/Tomcat7/LDAP Mode
 
Posts: 59 | Registered: April 23, 2012Report 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     [CLOSED] Variable fields in HOLD file

Copyright © 1996-2020 Information Builders