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.
I have a defined field column and I am trying to get a MAX and MIN for the column. Below is the code and I am trying to get a MAX value for the COUNTERP field. It is sorted by MONTH and I need to know the month that had the highest COUNTERP. I have tried everything I know to try and I have tried stuff posted on focal point. Has anyone had this issue?
DEFINE FILE CLIENT_INFO TERM_MO/MT = CLIENT_TERM_DT; COUNT_MO/I11 = 1; COUNTERP/I11 = IF CLIENT_ID EQ PARENT_CLIENT_ID END
TABLE FILE CLIENT_INFO SUM COUNTERP BY TERM_MO BY COUNT_MOThis message has been edited. Last edited by: Kerry,
DEFINE FILE CAR
CNT_1/I11=1;
END
TABLE FILE CAR
SUM
SALES
CNT_1
BY TOTAL HIGHEST CNT_1 NOPRINT
BY CAR
ON TABLE HOLD AS HLD_MAX FORMAT ALPHA
END
-RUN
?FF HLD_MAX
-READ HLD_MAX &MAX_CAR.A16.
-TYPE &MAX_CAR
So what do you want to do with the MAX and MIN values ?
This will get you the Maximum and Minimum Months.
TABLE FILE EMPLOYEE
SUM MAX.CURR_SAL
MIN.CURR_SAL
PRINT COMPUTE
MAXMIN/A3 = IF MAX.CURR_SAL EQ CURR_SAL THEN 'MAX' ELSE
IF MIN.CURR_SAL EQ CURR_SAL THEN 'MIN' ELSE ' ' ;
TERM_MO/MT MISSING ON= IF MAXMIN NE ' ' THEN HIRE_DATE ELSE MISSING ;
BY CURR_SAL
WHERE TOTAL MAXMIN NE ' '
END
Thank you everyone for your help. Ram, I tried your code and it worked. I had already tried the "By Highest" but not the "By Total Highest". Thanks again.