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] Calculating a report in Webfocus

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Calculating a report in Webfocus
 Login/Join
 
Platinum Member
posted
I have an Endorsement report that I am working on and I need to be able to setup code to determine what Endorsements have been set for each policy.

My report displays policies with 32 different endorsement fields and each field can have an endorsement number between 1 - 603. Each endorsement will only be listed once for each policy if at all.

Ok here is what I want to do…

For each Policy I want to SUM ENDR_NO_1 - ENDR_NO_32 and put the results in different columns titled 1 - 603. If the first policy has an endorsement of 1 I want to put a 1 in the "1" column, if not I want to put a 0 in the "1" column. If the policy has an endorsement of 2 I want to put a 1 in the "2" column and if not I want to put a 0 in the "2" column, it the policy has an endorsement of 52 I want to put a 1 in the “52” column and if not put a 0 in the “52” column etc. I am sure I could use an IF statement but I don’t want to do this 603 times. Can this be done with an Array?

The report I am viewing has been setup in another area and it being calculated in Excel. We want to make this calculation in Webfocus so that the report can be generated from my HTML page.

Clear as Mud?  If there is an easier way I am all for it, I am new to Webfocus so any help would be appreciated.

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


WebFOCUS 8105m
Windows, All Outputs
 
Posts: 156 | Registered: August 23, 2010Report This Post
Virtuoso
posted Hide Post
yes ....clear as mud...
place an example ...try to make it a bit more simple
make a screenshot or something like that




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
<JG>
posted
try something like this

-SET &CNTR=0;
COMPUTE ARRAY/A600='~'||''
-REPEAT ENDARRY 32 TIMES
-SET &CNTR=&CNTR + 1;
||ENDR_NO_&CNTR.EVAL||'~'
-ENDARRY
; NOPRINT
-SET &CNTR=0;
-REPEAT ENDLOOP 603 TIMES
-SET &CNTR=&CNTR + 1;
COMPUTE ENDORSMENT_&CNTR.EVAL/I1=IF ARRAY CONTAINS '~&CNTR.EVAL~' THEN 1 ELSE 0;
-ENDLOOP
 
Report 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] Calculating a report in Webfocus

Copyright © 1996-2020 Information Builders