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.
Im trying to get a count of distinct License_no and just cant seem to get it to print out right. It always comes out 0 on the subfoot ""Total Count: Can anyone tell what im doing wrong?
Thanks.
TABLE FILE SQLOUT
PRINT
LEGAL_NAME AS 'Legal,Name'
Business_Address AS 'Business,Address'
Mailing_Address AS 'Mailing,Address'
Phone_Number AS 'Phone,Number'
LC_Return_Date/HMDYY AS 'Indicator,Effective,Date'
BY License_No AS 'License,Number'
BY Tax_Period AS 'Tax,Period'
BY TRADE_NAME AS 'Trade,Name'
ON License_No RECAP
COUNT1/I9 = IF License_No EQ LAST License_No THEN 0 ELSE 1;
ON License_No SUBFOOT
" "
ON TABLE SUBFOOT
"Total Count: <TOT.COUNT1 "
WHERE Tax_Period EQ '&Tax_Period.(FIND TAX_PERIOD IN DBO_PERIOD).Tax_Period.';
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT &FMT
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
This message has been edited. Last edited by: Kerry,
I never do a RECAP that way; Use a multi-verb process. Also, ON TABLE will cause problems in later releases(so I have found), so I use DUMMY. Also, I changed your COUNT logic:
DEFINE FILE SQLOUT
DUMMY/A1 = ' ';
END
TABLE FILE SQLOUT
SUM
COMPUTE COUNT1/I9 = IF License_No EQ LAST License_No THEN COUNT1+1 ELSE 1; NOPRINT
BY DUMMY NOPRINT
PRINT
LEGAL_NAME AS 'Legal,Name'
Business_Address AS 'Business,Address'
Mailing_Address AS 'Mailing,Address'
Phone_Number AS 'Phone,Number'
LC_Return_Date/HMDYY AS 'Indicator,Effective,Date'
BY DUMMY NOPRINT
BY License_No AS 'License,Number'
BY Tax_Period AS 'Tax,Period'
BY TRADE_NAME AS 'Trade,Name'
ON License_No SUBFOOT
" "
ON DUMMY SUBFOOT
"Total Count: <TOT.COUNT1 "
WHERE Tax_Period EQ '&Tax_Period.(FIND TAX_PERIOD IN DBO_PERIOD).Tax_Period.';
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT &FMT
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
DEFINE FILE SQLOUT
DUMMY/A1 = ' ';
END
TABLE FILE SQLOUT
SUM
COMPUTE COUNT1/I9 = IF License_No EQ LAST License_No THEN COUNT1 ELSE COUNT1+1; NOPRINT
BY DUMMY NOPRINT
PRINT
LEGAL_NAME AS 'Legal,Name'
Business_Address AS 'Business,Address'
Mailing_Address AS 'Mailing,Address'
Phone_Number AS 'Phone,Number'
LC_Return_Date/HMDYY AS 'Indicator,Effective,Date'
BY DUMMY NOPRINT
BY License_No AS 'License,Number'
BY Tax_Period AS 'Tax,Period'
BY TRADE_NAME AS 'Trade,Name'
ON License_No SUBFOOT
" "
ON DUMMY SUBFOOT
"Total Count: <TOT.COUNT1 "
WHERE Tax_Period EQ '&Tax_Period.(FIND TAX_PERIOD IN DBO_PERIOD).Tax_Period.';
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT &FMT
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE
DEFINE FILE SQLOUT
DUMMY/A1 = ' ';
END
TABLE FILE SQLOUT
SUM
COMPUTE COUNT1/I9 = IF License_No EQ LAST License_No THEN COUNT1 ELSE COUNT1 + 1; NOPRINT
BY DUMMY NOPRINT
[B]BY License_No AS 'License,Number'[/B]
PRINT
Tax_Period AS 'Tax,Period'
TRADE_NAME AS 'Trade,Name'
LEGAL_NAME AS 'Legal,Name'
Business_Address AS 'Business,Address'
Mailing_Address AS 'Mailing,Address'
Phone_Number AS 'Phone,Number'
LC_Return_Date/HMDYY AS 'Indicator,Effective,Date'
BY DUMMY NOPRINT
BY License_No AS 'License,Number'
ON DUMMY SUBFOOT
"Total Count: <COUNT1 "
ON License_No SUBFOOT
" "
WHERE Tax_Period EQ '&Tax_Period.(FIND TAX_PERIOD IN DBO_PERIOD).Tax_Period.';
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT &FMT
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *