Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Keep ACROSS headers after holding
Go
New
Search
Notify
Tools
Reply
  
[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, 2018Reply With QuoteReport 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.0.1M gen 240, Dev 8.2.04 gen 48, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2223 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Reply With QuoteReport This Post
Expert
posted Hide Post
You may need .EVAL in there to make it WHERE ANALYST EQ '&Input_Variable_Analyst.EVAL'
 
Posts: 3040 | Location: Middle Tennessee [8204M Gen48 in Test&Prod] | Registered: February 23, 2005Reply With QuoteReport 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.




Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2012/Tomcat Standalone Workstation: Windows 7/IE 11 Database: Oracle 12c/Netezza Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer, & ReportCaster

 
Posts: 780 | Registered: April 23, 2003Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Keep ACROSS headers after holding

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.