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.
TABLE FILE CAR
PRINT
SEATS
BY CAR
ACROSS COUNTRY AS ''
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
LEFTMARGIN=0.5000000,
RIGHTMARGIN=0.5000000,
TOPMARGIN=0.2500000,
BOTTOMMARGIN=0.2500000,
PAGESIZE='LEGAL',
$
TYPE=REPORT, FONT=ARIAL, SIZE=9, $
END
-EXIT
If we run this piece, the Report comes like CAR then SEATS across COUNTRY. But, I have a requirement like the BY field TITLE 'CAR' and the ACROSSVALUES like ENGLAND, FRANCE etc. should come on the same line, not in two seperate lines.
How to get this done?This message has been edited. Last edited by: Kerry,
Thanks,
Ramkumar. WebFOCUS/Tableau Webfocus 8 / 7.7.02 Unix, Windows HTML/PDF/EXCEL/AHTML/XML/HTML5
Posts: 394 | Location: Chennai | Registered: December 02, 2009
See if this helps, SET ACROSSTITLE = SIDE TABLE FILE CAR PRINT SEATS BY CAR AS '' ACROSS COUNTRY AS 'CAR' ON TABLE PCHOLD FORMAT PDF ON TABLE SET STYLE * LEFTMARGIN=0.5000000, RIGHTMARGIN=0.5000000, TOPMARGIN=0.2500000, BOTTOMMARGIN=0.2500000, PAGESIZE='LEGAL', $ TYPE=REPORT, FONT=ARIAL, SIZE=9, $ END -EXIT
WF 7.7.02 on Windows 7 Teradata HTML,PDF,EXCEL,AHTML
use multi verb, for pdf change size to 6 to fit on one page otherwise select format EXL2K or HTML
TABLE FILE CAR SUM SEATS ACROSS COUNTRY AS '' ACROSS CAR AS '' ON TABLE PCHOLD FORMAT PDF ON TABLE SET STYLE * LEFTMARGIN=0.1000000, RIGHTMARGIN=0.1000000, TOPMARGIN=0.2500000, BOTTOMMARGIN=0.2500000, PAGESIZE='LEGAL', SQUEEZE=ON, $ TYPE=REPORT, FONT=ARIAL, SIZE=6, $ END
Not sure what the exact request will be, but maybe you can use a technique like this:
-Fred-
TABLE FILE CAR
SUM
COMPUTE TMP/A100 =
'COMPUTE ''' | COUNTRY || '''/D12S = IF COUNTRY EQ ''' || COUNTRY || ''' THEN SEATS ELSE 0;';
BY COUNTRY NOPRINT
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE HOLD AS HLDCTRY FORMAT ALPHA
END
-RUN
TABLE FILE CAR
PRINT
-INCLUDE HLDCTRY
BY CAR
END
Thank you for your replies. But in my case, I have more than one BY field as well as Across field. My Actual code...
TABLE FILE RPT_CAT_HOLD_PAID
SUM
PAID_AMT AS ''
BY NETWORKTYPE AS '' NOPRINT
BY ORDER_NO NOPRINT
BY LEVELFSEC AS '' NOPRINT
BY SBR_NM AS 'Subscriber Name'
BY MBR_NM AS 'Member Name'
BY MBR_UMI AS 'Member UMI'
BY SVCDAT AS 'Date of ,Service'
BY VEN_NM AS 'Provider Name'
ACROSS ORDER_SEQ AS ' ' NOPRINT
ACROSS COLUMN_TYPE1 AS ' '
END
When I try the way as Freste's code...
TABLE FILE RPT_CAT_HOLD_PAID
SUM
COMPUTE TMP/A100 =
'COMPUTE ''' | COLUMN_TYPE1 || '''/D15.2MB = IF COLUMN_TYPE1 EQ ''' || COLUMN_TYPE1 || ''' THEN PAID_AMT ELSE 0;';
BY COLUMN_TYPE1 NOPRINT
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE HOLD AS HLDCTRY FORMAT ALPHA
END
-RUN
TABLE FILE RPT_CAT_HOLD_PAID
SUM
-INCLUDE HLDCTRY
BY NETWORKTYPE AS '' NOPRINT
BY ORDER_NO NOPRINT
BY LEVELFSEC AS '' NOPRINT
BY SBR_NM AS 'Subscriber Name'
BY MBR_NM AS 'Member Name'
BY MBR_UMI AS 'Member UMI'
BY SVCDAT AS 'Date of ,Service'
BY VEN_NM AS 'Provider Name'
ACROSS ORDER_SEQ AS ' ' NOPRINT
END
It is not working properly... Could you please tell, where I went wrong ?
Thanks,
Ramkumar. WebFOCUS/Tableau Webfocus 8 / 7.7.02 Unix, Windows HTML/PDF/EXCEL/AHTML/XML/HTML5
Posts: 394 | Location: Chennai | Registered: December 02, 2009
Add a HOLD to your TABLE FILE, and see what is written.
TABLE FILE RPT_CAT_HOLD_PAID
SUM
PAID_AMT
BY NETWORKTYPE NOPRINT
BY ORDER_NO NOPRINT
BY LEVELFSEC NOPRINT
BY SBR_NM
BY MBR_NM
BY MBR_UMI
BY SVCDAT
BY VEN_NM
ACROSS ORDER_SEQ NOPRINT
ACROSS COLUMN_TYPE1
ON TABLE HOLD AS ACR_OUT
END
-RUN
? HOLD ACR_OUT
You can use the BY fields and then the ALIAS to create the next TABLE FILE, contolling the display, output format, etc. The across values have been written to the hold file.