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] Keep ACROSS headers after holding

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Keep ACROSS headers after holding
 Login/Join
 
Member
posted
Hello,

I have the following code:

TABLE FILE TABLE_ONE
SUM NUMBER_OF_RECORDSS AS 'Number'
MAXUnits_Impacted AS 'MaxUnits'
Units_Impacted AS 'Units_Impacted'

COMPUTE eep/D12.2% = (1-( MAXUnits_Impacted/ NUMBER_OF_RECORDSS )) * 100; AS 'TQR %'

BY LOWEST ANALYST_ONE AS 'Analyst'
ACROSS Year RECOMPUTE
ACROSS Sort NOPRINT
ACROSS Month AS 'Month'
WHERE ( Date GT '20180131' )AND ( Date IS NOT MISSING);
ON TABLE SUBHEAD
"TEST TEST TEST"
"Run Date: &TODAY"
ON TABLE SET PAGE NOLEAD
ON TABLE HOLD AS ACCESS_TEMP FORMAT FOCUS
END

TABLE FILE ACCESS_TEMP
PRINT *
WHERE ANALYST EQ '&Input_Variable_Analyst'
ON TABLE SUBHEAD
"TEST TEST TEST"
"Run Date: &TODAY"
ON TABLE SET PAGE NOLEAD
ON TABLE PCHOLD FORMAT XLSX

I'm not sure why, but I cannot seem to have the

WHERE ANALYST EQ '&Input_Variable_Analyst'

line anywhere else in this code and get the results I want. After (way too much) research I think it has something to do with the fact that I'm connecting to access, and WEBFOCUS seems to only acknowledge that line exists when it's in the final TABLE FILE statement.

But anyway...

If I export after the first TABLE FILE statement ends, I have a nice year header line and a a nice month header. But these lines are gone when I export the second TABLE FILE to excel. Is there any way to get them to carry over to the second TABLE FILE command?

Thanks in advance!

This message has been edited. Last edited by: FP Mod Chuck,


intsoccersuperstar
WebFOCUS 8105m
Windows, Excel
 
Posts: 16 | Registered: October 17, 2018Report This Post
Virtuoso
posted Hide Post
WHERE ANALYST EQ '&Input_Variable_Analyst' 

Is working only in the second TABLE FILE because ANALYST is only "assigned/defined/created" in the first TABLE FILE by using
BY LOWEST ANALYST_ONE AS 'Analyst'

The AS assigned the new field name "ANALYST" to the original field ANAYLST_ONE
Change you where clause by
WHERE ANALYST_ONE EQ '&Input_Variable_Analyst'

and it then should work and you won't need the second TABLE FILE to have the proper field labeling as you expect and already have your result as an Excel file


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Expert
posted Hide Post
You may need .EVAL in there to make it WHERE ANALYST EQ '&Input_Variable_Analyst.EVAL'
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Master
posted Hide Post
It sounds like you are using 'ANALYST' in an AS phrase and would like it available within the HOLD file, for later reporting.

Can you check the SETting of ASNAMES?

It almost sounds like you have it set to OFF, and would want to try SETting it to 'FOCUS' given that this is a HOLD file in FOCUS format.




Pilot: WebFOCUS 8.2.06 Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2016/Tomcat Standalone Workstation: Windows 10/IE11+Edge Database: Oracle 12c, Netezza, & MS SQL Server 2019 Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer & ReportCaster
 
Posts: 822 | Registered: April 23, 2003Report 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] Keep ACROSS headers after holding

Copyright © 1996-2020 Information Builders