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.
Trying to create a date range in WebFocus using parameters. Problem is the "to" side of the date ends with a time of 00:00:00. So basically I am not getting the final day. Looking for some ideas.
I modified the master table to have this FIELDNAME=MOD_PAID_DATE, ALIAS=PAID_DATE, USAGE=MDYY, ACTUAL=DATE, MISSING=ON, $ FIELDNAME=PAID_DATE, ALIAS=PAID_DATE, USAGE=HYYMDs, ACTUAL=HYYMDs, FIELDTYPE=R, MISSING=ON, $
Then I created the report with the following where clause.
WHERE ( MOD_PAID_DATE GE '&FromModDate.From Date.' ) AND ( MOD_PAID_DATE LE ('&To_PAID_DATE.To Date.') );
Multiple Date-Time functions are used in the -SET statement, HINPUT to take the date-time string and turn it into a Date-Time value, HADD to add 1 DAY and HCNVRT to convwert the result from a Date-Time value back to a string.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
I keep getting this error. 0 ERROR AT OR NEAR LINE 15 IN PROCEDURE ADHOCRQ FOCEXEC * (FOC177) INVALID DATE CONSTANT: ) (FOC009) INCOMPLETE REQUEST STATEMENT BYPASSING TO END OF COMMAND
Here is the code
SET TRACEOFF=ALL SET TRACEUSER=CLIENT SET TRACEON=SQLAGGR//CLIENT SET TRACEON=STMTRACE//CLIENT
-SET &FROM_DTTM1 = &FROM_DATE ; -SET &TO_DTTM1 = &TO_DATE ; -SET &TO_DTTM2 = HCNVRT(HADD(HINPUT(14, '&TO_DTTM1.EVAL' , 14, 'HYYMDS'), 'DAY', 1, 8, 'HYYMDS'), 'HYYMDS', 20, 'A20'); JOIN CLEAR * TABLE FILE CONCUR_CT_REPORT PRINT RPT_KEY EMP_KEY BY HIGHEST PAID_DATE WHERE ( PAID_DATE GE DT(&FROM_DTTM1) AND PAID_DATE LT DT(&TO_DTTM2)); ON TABLE NOTOTAL ON TABLE SET HTMLCSS ON END
It appears that it does not recognize DTTM2. Not sure why as I have tried several things to narrow it down. Any ideas?