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.
Hi, i think for you guys this is quiet easy. I want to make a distinct count on a table file. And i have only one column as result. I want to put this result into a &variable to use it for an output.
Regards
ChristianThis message has been edited. Last edited by: ChristianP,
WF Production Version: 7.7.02M WF Test Version: 7.7.02M Developer Studio: 7.7.02 HTML, EXL2K, FLEX, PDF,PPT
Originally posted by Doug: Consider HOLDing your selection and using &LINES or &RECORDS.
More specifically, HOLD the list of distinct values, as in
TABLE FILE CAR
COUNT ENTRIES BY SEATS
ON TABLE HOLD
END
&LINES = 3 <--
&RECORDS = 18
If you just HOLD the count, &LINES will be one, while &RECORDS will be the number of records contributing to the result set, not the count of distinct values.
TABLE FILE CAR
WRITE CNT.DST.SEATS
ON TABLE HOLD
END
&LINES = 1 <--
&RECORDS = 18
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
Jack, Never used COUNTWIDTH = ON; seems a waste, really:
-SET &ECHO=ALL;
APP APPENDPATH IBISAMP
-RUN
TABLE FILE CAR
SUM
CNT.DST.SEATS/I11
ON TABLE SAVE
END
-RUN
-READ SAVE &CNTRY_CNT.I11.
-TYPE &CNTRY_CNT
-EXIT