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.
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,
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, 2013