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] Another Multi Value Pass Question with a Twist

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Another Multi Value Pass Question with a Twist
 Login/Join
 
Gold member
posted
I'm trying to create a Parameter datadump tool off a 50mill record transaction table

How do you pass multiple value in my situation below where the transaction table don't have a Product field?

CATEGORY TABLE
CATEGORY PRODUCT
AA AA1
AA AA2

TABLE FILE CATEGORY
PRINT
PRODUCT
ON TABLE HOLD HCAT FORMAT ALPHA

-RUN

-READ HCAT &PRODUCT.A12.


TRANSACTION TABLE

DEFINE FILE TXN
-*products created in the define
AA1/D15.2 = IF LEVEL6 EQ 'AA1' AND LEVEL5 EQ 'AA' THEN REVENUE ELSE 0;
AA2/D15.2 = IF LEVEL6 EQ 'AA2' AND LEVEL5 EQ 'AA' THEN REVENUE ELSE 0;
END

TABLE FILE TXN
SUM
&PRODUCT
BY MONTH
BY LEVEL1
BY LEVEL2
BY LEVEL3
BY LEVEL4
BY LEVEL5
BY LEVEL6
WHERE &PRODUCT NE 0
END


If there are any other suggestion beside multi value pass please pass along.

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


WF 8105M
- Portal, Dashboard
- Rcaster, Data Migrator
- Windows 2012 Client Server
- Dev/App Studio 8105
- Data: SQL, Oracle, Neteeza,MVS
 
Posts: 78 | Registered: October 24, 2006Report This Post
Virtuoso
posted Hide Post
If you are going to DEFINE the PRODUCTs in table TXN, do you even need the CATEGORY table?
DEFINE FILE TXN
PRODUCT/A3 = IF (LEVEL6 EQ 'AA1' AND LEVEL5 EQ 'AA') THEN 'AA1' ELSE
             IF (LEVEL6 EQ 'AA2' AND LEVEL5 EQ 'AA') THEN 'AA2' ELSE
             IF ..... ;
END

TABLE FILE TXN
SUM REVENUE
BY PRODUCT
BY MONTH
BY LEVEL1
BY LEVEL2
BY LEVEL3
BY LEVEL4
BY LEVEL5
BY LEVEL6
WHERE (PRODUCT EQ '&PRODUCT')
  AND (REVENUE NE 0);
END

This message has been edited. Last edited by: Dan Satchell,


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Gold member
posted Hide Post
Thanks Dan.

I got 175 products and its not as simple as level6=aa and level5 eq aa to define a product.


WF 8105M
- Portal, Dashboard
- Rcaster, Data Migrator
- Windows 2012 Client Server
- Dev/App Studio 8105
- Data: SQL, Oracle, Neteeza,MVS
 
Posts: 78 | Registered: October 24, 2006Report This Post
Gold member
posted Hide Post
Any alternative solutions??


WF 8105M
- Portal, Dashboard
- Rcaster, Data Migrator
- Windows 2012 Client Server
- Dev/App Studio 8105
- Data: SQL, Oracle, Neteeza,MVS
 
Posts: 78 | Registered: October 24, 2006Report This Post
Gold member
posted Hide Post
quote:
CATEGORY TABLE
CATEGORY PRODUCT
AA AA1
AA AA2

TABLE FILE CATEGORY
PRINT
PRODUCT
ON TABLE HOLD HCAT FORMAT ALPHA

-RUN

-READ HCAT &PRODUCT.A12.


TRANSACTION TABLE

DEFINE FILE TXN
-*products created in the define
AA1/D15.2 = IF LEVEL6 EQ 'AA1' AND LEVEL5 EQ 'AA' THEN REVENUE ELSE 0;
AA2/D15.2 = IF LEVEL6 EQ 'AA2' AND LEVEL5 EQ 'AA' THEN REVENUE ELSE 0;
END

TABLE FILE TXN
SUM
&PRODUCT
BY MONTH
BY LEVEL1
BY LEVEL2
BY LEVEL3
BY LEVEL4
BY LEVEL5
BY LEVEL6
WHERE &PRODUCT NE 0
END

Ok solved 1 half of the issue by using filedef
FILEDEF HCAT DISK APPS\HCAT.TXT
TABLE FILE CATEGORY
PRINT
PRODUCT
ON TABLE HOLD HCAT FORMAT ALPHA
END

TABLE FILE TXN
SUM
-*-------------
-*RESOLVED WITH INCLUDE FILE
-*-------------
-MRNOEDIT -INCLUDE HCAT
BY MONTH
BY LEVEL1
BY LEVEL2
BY LEVEL3
BY LEVEL4
BY LEVEL5
BY LEVEL6
-*-------------
-*ISSUE REMAINING
-*HOW WOULD I PASS THE WHERE STATEMENT BELOW ???
-*FOR MORE THEN 2 PRODUCTS AS I NEED THE OR
-*COUNT # OF PROUDCTS AND LOOP??
-*-------------
WHERE AA1 NE 0 OR AA2 NE 0
END


WF 8105M
- Portal, Dashboard
- Rcaster, Data Migrator
- Windows 2012 Client Server
- Dev/App Studio 8105
- Data: SQL, Oracle, Neteeza,MVS
 
Posts: 78 | Registered: October 24, 2006Report This Post
Virtuoso
posted Hide Post
Maybe something like this:

FILEDEF WCAT DISK APPS\WCAT.TXT
-*
DEFINE FILE CATEGORY
 WHERE_TXT/A15 = IF (LAST PRODUCT EQ '') THEN (PRODUCT | ' NE 0')
                 ELSE ('OR ' | PRODUCT | ' NE 0');
END
-*
TABLE FILE CATEGORY
 PRINT WHERE_TXT
 WHERE (PRODUCT NE '');
 ON TABLE HOLD WCAT FORMAT ALPHA
END
-*
TABLE FILE TXN
SUM
-*-------------
-*RESOLVED WITH INCLUDE FILE
-*-------------
-MRNOEDIT -INCLUDE HCAT
BY MONTH
BY LEVEL1
BY LEVEL2
BY LEVEL3
BY LEVEL4
BY LEVEL5
BY LEVEL6
WHERE
-MRNOEDIT -INCLUDE WCAT
;
END


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Gold member
posted Hide Post
Thanks Dan!!!

Thats exactly what I needed it to do!!

Cheers,


WF 8105M
- Portal, Dashboard
- Rcaster, Data Migrator
- Windows 2012 Client Server
- Dev/App Studio 8105
- Data: SQL, Oracle, Neteeza,MVS
 
Posts: 78 | Registered: October 24, 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     [SOLVED] Another Multi Value Pass Question with a Twist

Copyright © 1996-2020 Information Builders