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     on subtotal: subtotal of noprint field and embed of another field in literal

Read-Only Read-Only Topic
Go
Search
Notify
Tools
on subtotal: subtotal of noprint field and embed of another field in literal
 Login/Join
 
<Vipul>
posted
I need help in doing the following:

TABLE FILE PD_INFO
PRINT CNT NOPRINT
AMOUNT/P17.2CM AS ''
TRIMMEMO AS ''
WHERE DEBITCREDIT EQ 'C'
BY TRNCODE NOPRINT SKIP-LINE
BY DESCRIPTION NOPRINT
BY HIGHEST AMOUNT NOPRINT
ON TRNCODE NOPRINT SUBHEAD
""ON TRNCODE SUB-TOTAL AMOUNT AS 'Subtotal:


Basically I want the output of Subtotal to print as:
Subtotal: 6 ACH Credit(s)
$4,552.00

If you notice I want the subcount of cnt(which has the value of 1) and description to print in subtotal command.

Any help will be appreciated.

Vipul
 
Report This Post
<Vipul>
posted
My earlier postiing got truncated: it is

TABLE FILE PD_INFO
PRINT CNT NOPRINT
AMOUNT/P17.2CM AS ''
TRIMMEMO AS ''
WHERE DEBITCREDIT EQ 'C'
BY TRNCODE NOPRINT SKIP-LINE
BY DESCRIPTION NOPRINT
BY HIGHEST AMOUNT NOPRINT
ON TRNCODE NOPRINT SUBHEAD
""ON TRNCODE SUB-TOTAL CNT AMOUNT AS 'Subtotal:

Basically I want the field description and count of cnt to print on Subtotal before the subtotal is printed.

I want my output to be as:
Subtotal: 6 ACH Credit(s)
$1000.00

Any help will be appreciated.

Vipul
 
Report This Post
<Vipul>
posted
My earlier postiing got truncated: it is

TABLE FILE PD_INFO
PRINT CNT NOPRINT
AMOUNT/P17.2CM AS ''
TRIMMEMO AS ''
WHERE DEBITCREDIT EQ 'C'
BY TRNCODE NOPRINT SKIP-LINE
BY DESCRIPTION NOPRINT
BY HIGHEST AMOUNT NOPRINT
ON TRNCODE SUB-TOTAL CNT AMOUNT AS 'Subtotal:
Basically I want the field description and count of cnt to print on Subtotal before the subtotal is printed.

I want my output to be as:
Subtotal: 6 ACH Credits
$1000.00

Any help will be appreciated.

Vipul
 
Report This Post
Virtuoso
posted Hide Post
You will need to remove the SUBTOTAL and then add

ON TRNCODE SUBFOOT
"Subtotal: "
SUBTOTAL lines will always appear before SUBFOOTs so you will need to manually code both of them in a SUBFOOT.
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Virtuoso
posted Hide Post
Let's try that again:


You will need to remove the SUBTOTAL and then add

ON TRNCODE SUBFOOT
"Subtotal: <CNT.CNT <DESCRIPTION </1"
"<ST.AMOUNT"

SUBTOTAL lines will always appear before SUBFOOTs so you will need to manually code both of them in a SUBFOOT.
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
<Vipul>
posted
Thanks Mickey,

It worked....
 
Report This Post
<Vipul>
posted
Mickey,

How will I get the formatting in
Thanks
 
Report This Post
<Vipul>
posted
Did not previewed. Somehow it does not like gt , lt symbols.

Ok How will I get the formatting in st.amount field it is a dollar field.

Thanks in advence

Vipul
 
Report This Post
Virtuoso
posted Hide Post
Create a COMPUTE field (with the new format) equal to the AMOUNT field. Then change the SUBFOOT to do an ST. on the COMPUTE field. I do not know if there is a more elegant way to do this but it works. The following is an example using the CAR file.

TABLE FILE CAR
PRINT RCOST/D12M DCOST
COMPUTE NEWRCOST/D12M=RCOST; NOPRINT
BY COUNTRY
BY CAR
ON COUNTRY SUBFOOT
"<ST.NEWRCOST"
END
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report 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     on subtotal: subtotal of noprint field and embed of another field in literal

Copyright © 1996-2020 Information Builders