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] ACROSSVALUEs and TITLE - Alignment

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] ACROSSVALUEs and TITLE - Alignment
 Login/Join
 
Guru
posted
 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, 2009Report This Post
Platinum Member
posted Hide Post
No straight solution to that.

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
 
Posts: 165 | Registered: September 29, 2008Report This Post
Guru
posted Hide Post
Hi Hari,

Thanks for your reply... But in my case I have 5 BY Fields and 2 ACROSS fields. Then This is not possible, in that case.


Thanks,

Ramkumar.
WebFOCUS/Tableau
Webfocus 8 / 7.7.02
Unix, Windows
HTML/PDF/EXCEL/AHTML/XML/HTML5
 
Posts: 394 | Location: Chennai | Registered: December 02, 2009Report This Post
Member
posted Hide Post
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
 
Posts: 12 | Location: Dallas, TX | Registered: November 02, 2011Report This Post
<FreSte>
posted
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
 
Report This Post
Expert
posted Hide Post
FreSte, interesting technique.

Has it been posted before.

Good One


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
<FreSte>
posted
No, I think it was not posted before.
It was something I've used before at a customer's site.

-Fred-
 
Report This Post
Expert
posted Hide Post
I've done similar before, but never thought of generating the computes.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Guru
posted Hide Post
Hi Waz/Freste,

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, 2009Report This Post
Expert
posted Hide Post
Here is another suggestion.

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.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report 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] ACROSSVALUEs and TITLE - Alignment

Copyright © 1996-2020 Information Builders