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] Compound reports with multiple worksheets in EXL2K

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Compound reports with multiple worksheets in EXL2K
 Login/Join
 
Silver Member
posted
I wanted to know if it is possible to have multiple compound reports with multiple worksheets in EXL2K. I'm not sure I'm wording this correctly. I've created a sample of what I'd like using the CAR file below: Notice that there are three reports, each with multi-worksheets. Is there a way to run all three in one fex?

-*----Report 1----multitabs
DEFINE FILE CAR
COUNTRYCAR/A30='ENGLAND-' || CAR;
END

TABLE FILE CAR
PRINT
CAR.CARREC.MODEL
CAR.BODY.BODYTYPE
CAR.BODY.SEATS
CAR.BODY.DEALER_COST
CAR.BODY.RETAIL_COST
BY CAR.COMP.COUNTRYCAR NOPRINT
BY CAR.ORIGIN.COUNTRY NOPRINT
BY CAR.COMP.CAR NOPRINT
HEADING
"ENGLAND WHERE COUNTRY EQ 'ENGLAND';
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET COMPOUND BYTOC
END

-*----Report 2----multitabs
DEFINE FILE CAR
COUNTRYCAR/A30='ITALY-' || CAR;
END

TABLE FILE CAR
PRINT
CAR.CARREC.MODEL
CAR.BODY.BODYTYPE
CAR.BODY.SEATS
CAR.BODY.DEALER_COST
CAR.BODY.RETAIL_COST
BY CAR.COMP.COUNTRYCAR NOPRINT
BY CAR.ORIGIN.COUNTRY NOPRINT
BY CAR.COMP.CAR NOPRINT
HEADING
"ITALY WHERE COUNTRY EQ 'ITALY';
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET COMPOUND BYTOC
END

-*----Report 3----multitabs
DEFINE FILE CAR
COUNTRYCAR/A30='JAPAN-' || CAR;
END

TABLE FILE CAR
PRINT
CAR.CARREC.MODEL
CAR.BODY.BODYTYPE
CAR.BODY.SEATS
CAR.BODY.DEALER_COST
CAR.BODY.RETAIL_COST
BY CAR.COMP.COUNTRYCAR NOPRINT
BY CAR.ORIGIN.COUNTRY NOPRINT
BY CAR.COMP.CAR NOPRINT
HEADING
"JAPAN WHERE COUNTRY EQ 'JAPAN';
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET COMPOUND BYTOC
END

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 8206
Exl2k
 
Posts: 36 | Registered: May 23, 2014Report This Post
Silver Member
posted Hide Post
I do realize that I can change the define but the question still lingers about multi-reports with multi-sheets in one fex. Here's my alternative:
DEFINE FILE CAR
COUNTRYCAR/A30=IF COUNTRY EQ 'ENGLAND' THEN 'ENGLAND-' || CAR ELSE IF COUNTRY EQ 'ITALY' THEN 'ITALY-' || CAR ELSE IF COUNTRY EQ 'JAPAN' THEN 'JAPAN-' || CAR ELSE ' ';
END

TABLE FILE CAR
PRINT
CAR.CARREC.MODEL
CAR.BODY.BODYTYPE
CAR.BODY.SEATS
CAR.BODY.DEALER_COST
CAR.BODY.RETAIL_COST
BY CAR.COMP.COUNTRYCAR NOPRINT
BY CAR.ORIGIN.COUNTRY NOPRINT
BY CAR.COMP.CAR NOPRINT
HEADING
"WHERE COUNTRY EQ 'ENGLAND' OR 'ITALY' OR 'JAPAN';
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET COMPOUND BYTOC
END


WebFOCUS 8206
Exl2k
 
Posts: 36 | Registered: May 23, 2014Report This Post
Virtuoso
posted Hide Post
Depending of what is your purpose but here two solutions.

Solution -1- which need more coding and only includes the 3 countries from your example (where you're not really filtering the country):
DEFINE FILE CAR
COUNTRYCAR/A30=COUNTRY || '-' || CAR;
END

TABLE FILE CAR
PRINT 
 CAR.CARREC.MODEL
 CAR.BODY.BODYTYPE
 CAR.BODY.SEATS
 CAR.BODY.DEALER_COST
 CAR.BODY.RETAIL_COST
BY CAR.COMP.COUNTRYCAR
BY CAR.ORIGIN.COUNTRY
BY CAR.COMP.CAR
WHERE COUNTRY EQ 'ENGLAND';
ON TABLE HOLD AS HLD1
END

TABLE FILE CAR
PRINT 
 CAR.CARREC.MODEL
 CAR.BODY.BODYTYPE
 CAR.BODY.SEATS
 CAR.BODY.DEALER_COST
 CAR.BODY.RETAIL_COST
BY CAR.COMP.COUNTRYCAR
BY CAR.ORIGIN.COUNTRY
BY CAR.COMP.CAR
WHERE COUNTRY EQ 'ITALY';
ON TABLE HOLD AS HLD2
END

TABLE FILE CAR
PRINT 
 CAR.CARREC.MODEL
 CAR.BODY.BODYTYPE
 CAR.BODY.SEATS
 CAR.BODY.DEALER_COST
 CAR.BODY.RETAIL_COST
BY CAR.COMP.COUNTRYCAR
BY CAR.ORIGIN.COUNTRY
BY CAR.COMP.CAR
WHERE COUNTRY EQ 'JAPAN';
ON TABLE HOLD AS HLD3
END

DEFINE FILE HLD1
HEADTXT /A50 = DECODE COUNTRY (ENGLAND 'ENGLAND WHERE COUNTRY EQ ''ENGLAND''' ELSE '');
END
DEFINE FILE HLD2
HEADTXT /A50 = DECODE COUNTRY (ITALY 'ENGLAND WHERE COUNTRY EQ ''ITALY''' ELSE '');
END
DEFINE FILE HLD3
HEADTXT /A50 = DECODE COUNTRY (JAPAN 'ENGLAND WHERE COUNTRY EQ ''JAPAN''' ELSE '');
END
TABLE FILE HLD1
PRINT 
 MODEL
 BODYTYPE
 SEATS
 DEALER_COST
 RETAIL_COST
BY COUNTRYCAR NOPRINT
BY COUNTRY NOPRINT
BY CAR NOPRINT

HEADING
"<HEADTXT"
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET COMPOUND BYTOC
MORE
FILE HLD2
MORE
FILE HLD3
END



Solution -2- which is much more simple but includes all countries:
DEFINE FILE CAR
COUNTRYCAR/A30=COUNTRY || '-' || CAR;
HEADTXT /A50 = COUNTRY || ' WHERE COUNTRY EQ ''' || COUNTRY || '''';
END

TABLE FILE CAR
PRINT 
 CAR.CARREC.MODEL
 CAR.BODY.BODYTYPE
 CAR.BODY.SEATS
 CAR.BODY.DEALER_COST
 CAR.BODY.RETAIL_COST
BY CAR.COMP.COUNTRYCAR NOPRINT
BY CAR.ORIGIN.COUNTRY NOPRINT
BY CAR.COMP.CAR NOPRINT

HEADING
"<HEADTXT"
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET COMPOUND BYTOC
END



WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report 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] Compound reports with multiple worksheets in EXL2K

Copyright © 1996-2020 Information Builders