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     [SOLVED] Supress repeated values

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Supress repeated values
 Login/Join
 
Platinum Member
posted
Hi All, here is yet another one of my sporadic problems:

  
CPY017 PLT017 DIV017 MIN_DATE MAX_DATE SCA017 CTL017 IDT017 IV#017 PK#100 CPO017 CAR017 SM#017 BL#017 TCK100 AR$017 TD$017 DS$017 QTY017 CS$017 
1 1 10 120202 120202 NY 258831 20212 136944 350684 JENNA S12 UPS 95770 315429 1Z5RW1020347993816 155.47 .00 -95.20 3 .00 
1 1 10 120202 120202 NY 258831 20212 136944 365463 JENNA S12 UPS 95770 315429 1Z5RW1020346625868 155.47 .00 -95.20 3 .00 
1 1 10 120202 120202 NY 263313 20212 136946 350692 SCOTT SHAW S12 UPS 95770 315430 1Z5RW1020347623028 34.62 .00 -21.20 1 .00 
1 1 10 120202 120202 NJ 258597 20212 136947 350693 JOE S12 UPS 95770 315435 1Z5RW1020346862889 119.40 .00 -79.60 4 .00 
1 1 10 120202 120202 NY 258621 20212 136948 365294 TED S12 UPS 95770 315433 1Z5RW1020348178071 135.87 .00 -83.20 1 .00 



I am trying to create a multi-verb request, where the last 5 fields (AR#017, etc.) should be prohibited on subsequent lines
(they are unique by the IV$017 field) but still print the repeated date for the other columns.

Is there a way to make this work?

This message has been edited. Last edited by: Lloyd,


Lloyd Prendergast
Michael Kors (USA), Inc.
Phone: 201-453-5076
Fax: 646-354-4776
Lloyd.Prendergast@Michaelkors.com


WebFOCUS 523
WebFOCUS 7.6
WebFOCUS 7.7

Windows Server 2005
Windows Server 2008

Iseries V5R3M0
Iseries V5R5M0
Iseries V6R1M0
 
Posts: 157 | Location: Secaucus, NJ | Registered: May 21, 2004Report This Post
Virtuoso
posted Hide Post
Lloyd,

1. Why a multi-verb?
2. As for your AR$017 fields, you can use a COMPUTE with the LAST function:
  
COMPUTE SAR$017/format = IF IV$017 EQ LAST IV$017 THEN ' ' ELSE AR$017; AS AR$017 


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Platinum Member
posted Hide Post
quote:
Posted October 15, 2012 01:53 PM Hide Post
Lloyd,

1. Why a multi-verb?
2. As for your AR$017 fields, you can use a COMPUTE with the LAST function:


COMPUTE SAR$017/format = IF IV$017 EQ LAST IV$017 THEN ' ' ELSE AR$017; AS AR$017



1. I tried to use a multi-verb as that was the only way I could think of doing it. (I am only an occasional WF programmer/user, so some times my brain forgets how to do things...)

2. Never used the last verb before, but I think that's exactly what I was looking for....


gonna try it out and let you know how its goes...

Yup, was exactly what I wanted, thanks Danny!....

This message has been edited. Last edited by: Lloyd,


Lloyd Prendergast
Michael Kors (USA), Inc.
Phone: 201-453-5076
Fax: 646-354-4776
Lloyd.Prendergast@Michaelkors.com


WebFOCUS 523
WebFOCUS 7.6
WebFOCUS 7.7

Windows Server 2005
Windows Server 2008

Iseries V5R3M0
Iseries V5R5M0
Iseries V6R1M0
 
Posts: 157 | Location: Secaucus, NJ | Registered: May 21, 2004Report This Post
Expert
posted Hide Post
Can you post the code ?


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
Platinum Member
posted Hide Post
The code is just as Danny explained, rather than creating a multi-verb report, I just did a natural sum, and used the LAST verb/function to only print the values once, :
  
 COMPUTE SAR$017/A15 = IF IV#017 EQ LAST IV#017 THEN ' ' ELSE FTOA(AR$017, '(D12.2)', SAR$017); AS 'INVOICE, DOLLARS'


Lloyd Prendergast
Michael Kors (USA), Inc.
Phone: 201-453-5076
Fax: 646-354-4776
Lloyd.Prendergast@Michaelkors.com


WebFOCUS 523
WebFOCUS 7.6
WebFOCUS 7.7

Windows Server 2005
Windows Server 2008

Iseries V5R3M0
Iseries V5R5M0
Iseries V6R1M0
 
Posts: 157 | Location: Secaucus, NJ | Registered: May 21, 2004Report 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     [SOLVED] Supress repeated values

Copyright © 1996-2020 Information Builders