Focal Point
[SOLVED] Supress repeated values

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7467061526

October 15, 2012, 01:05 PM
Lloyd
[SOLVED] Supress repeated values
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
October 15, 2012, 01:53 PM
Danny-SRL
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

October 15, 2012, 03:06 PM
Lloyd
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
October 15, 2012, 04:34 PM
Waz
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!

October 15, 2012, 05:37 PM
Lloyd
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