When I run the below code I get only SEATS as column names, any idea how to get the CAR names in the column title
TABLE FILE CAR SUM SEATS BY COUNTRY ACROSS CAR ON TABLE HOLD AS TEMP END -RUN
TABLE FILE TEMP PRINT * ENDThis message has been edited. Last edited by: Kathleen Butler,
February 15, 2006, 08:15 AM
Tony A
If you are going to hold your data prior to printing it out then there is no reason to use an across phrase - just use BY.
Once you have the held data, then report on it using the ACROSS phrase -
TABLE FILE CAR
SUM SEATS
BY COUNTRY
BY CAR
ON TABLE HOLD AS TEMPFILE
END
-RUN
TABLE FILE TEMPFILE
SUM SEATS
BY COUNTRY
ACROSS CAR
END
I take it that this is just an example of a much larger process as there is little point in holding the first extract to then report upon it, you might as well do it in one pass!
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
February 15, 2006, 10:44 AM
<Sathish.B>
Tony, i wanted an output in this format.
COUNTRY BMW BENZ AUDI ENGLAND . 8 . ITALY 9 . . JAPAN 6 9 .
so that i can refer BMW, BENZ, AUDI as separate columns for further processing. Not sure if this is possible.
February 15, 2006, 11:28 AM
susannah
Sathish.. just don't hold the interim file, as T says. the creation of special across names 'seaengland' 'seafrance' etc, is a very useful feature of webfocus, concatenating the first three letters of the measurename and the across field value. This will be very useful, as your programming talents grow. If you must hold and retable, then SET ASNAMES = ON TABLE FILE CAR SUM SEATS AS '' BY COUNTRY ACROSS CAR ON TABLE HOLD END TABLE FILE HOLD PRINT * ENDThis message has been edited. Last edited by: susannah,
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
February 16, 2006, 12:34 AM
<Sathish.B>
Thanks a ton, this was the output i was looking for. will help me lot in my project.
November 30, 2015, 06:17 AM
Ramkumar - Webfous
quote:
SET ASNAMES = ON TABLE FILE CAR SUM SEATS AS '' BY COUNTRY ACROSS CAR ON TABLE HOLD END TABLE FILE HOLD PRINT * END
Sorry for opening this way old thread...
But if I am making this as
ON TABLE HOLD AS HLD1 FORMAT FOCUS
Then the column names are not retained... Any SET commands to have that?
Thanks,
Ramkumar. WebFOCUS/Tableau Webfocus 8 / 7.7.02 Unix, Windows HTML/PDF/EXCEL/AHTML/XML/HTML5
November 30, 2015, 06:40 AM
Ramkumar - Webfous
The thing is TITLE='', $ is how it is setting up in the master file it is creating for the focus mart.
Having an intermediate HOLD file resolved the issue.This message has been edited. Last edited by: Ramkumar - Webfous,
Thanks,
Ramkumar. WebFOCUS/Tableau Webfocus 8 / 7.7.02 Unix, Windows HTML/PDF/EXCEL/AHTML/XML/HTML5