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.
See syntax for compound, this has worked for me in the past:
TABLE FILE CAR
PRINT *
WHERE RECORDLIMIT EQ 1
ON TABLE PCHOLD FORMAT EXL2K OPEN
ON TABLE SET STYLE *
TYPE=REPORT, TITLETEXT='Report1', $
ENDSTYLE
END
-RUN
TABLE FILE CAR
PRINT *
WHERE RECORDLIMIT EQ 2
ON TABLE PCHOLD FORMAT EXL2K OPEN
ON TABLE SET STYLE *
TYPE=REPORT, TITLETEXT='Report2', $
ENDSTYLE
END
-RUN
TABLE FILE CAR
PRINT *
WHERE RECORDLIMIT EQ 3
ON TABLE PCHOLD FORMAT EXL2K CLOSE
ON TABLE SET STYLE *
TYPE=REPORT, TITLETEXT='Report3', $
ENDSTYLE
END
Also, my requirement is not from a single table, I want the tabs based on the field names of different tables, but used in the same report. ex: --- table A --------- Field 1 | Field 2 | Field 3
Table B --------- Field 4 | Field 5 | Field 6
Table C --------- Field A | Field B
I want four excel tabs named, 1. Field 2 2. Field 4 3. Field 6 4. Field B
In Focus since 2008 WebFOCUS 8.2.0.1 Windows 7 - IE,Chrome,Firefox Excel, PDF, HTML, AHTML, XML JavaScript, jQuery, D3.js, Highcharts
Posts: 79 | Location: New York | Registered: February 04, 2010
Your are not giving me much to go on. Are you joining the tables? Now that I look at your previous post, what you probably need to do, and this is a stab in the dark because I can't see your code, is to create a TABLE request for each view and use a define to create a generic sort field based on the value from that table. So for instance, table A would look something like this:
DEFINE FILE TABLEA
SORTFLD1/Ann=FIELD2;
END
TABLE FILE TABLEA
PRINT ...
BY SORTFLD1
...
ON TABLE HOLD AS HOLDA FORMAT ALPHA
END
Do something like this for each view. Then create your final output:
SET COMPOUND=BYTOC
TABLE FILE HOLDA
PRINT ...
BY SORTFLD1
ON TABLE PCHOLD FORMAT EXL2K
MORE
FILE HOLDB
MORE
FILE HOLDC
END
Please experiment with this shell to get it to do what you want. FYI, the MORE syntax concatentates the 3 hold files together assuming like fieldnames and formats. Look up either the MORE command or Universal Concatenation.