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.
This should be the easiest thing in the world. I'm trying to use dialog manager to set tomorrow's date: -SET &MEASDATE = &DATE; -SET &NEXTDATE = DATEADD(&MEASDATE,'D',1);
Result: INVALID TYPE OF ARGUMENT #1 FOR USER FUNCTION DATEADD
Unfortunately, you have to convert the "alpha" Dialogue Manager date to a date field before using DATEADD.
E.G.:
-*-- Determine Period End Date 24 months prior to selected Period ---
-SET &DT24 =
- DATECVT( DATEADD(DATECVT(&F1V1,'I8YYMD','YYMD'),'M', -24),'YYMD','I8YYMD');
The inner DATECVT converts the DM variable to a date field, then DATEADD is applied, then the outer DATECVT converts the DATEADD result back to an alpha DM variable.
ok, that's helpful. to add one more question though:
my initial date (&MEASDATE) is sometimes passed into the fex as mm/dd/yy string. How would I accomplish the same thing if I start with "9/24/07" for example?
-SET &MEASDATE = &DATE;
-*-- Strip the slash separator character
-SET &MEASDT1 = EDIT(&MEASDATE,'99$99$99');
-*-- Convert the variable to a Date, add a day, convert back to integer
-SET &NEXTDT1 =
- DATECVT( DATEADD(DATECVT(&MEASDT1,'I6MDY','YYMD'),'D', 1),'YYMD','I8YYMD');
-*-- convert from yymd to mdyy
-SET &NEXTDT2 = CHGDAT('YYMD','MDY',&NEXTDT1,'A8');
-*-- add date separator character
-SET &NEXTDATE = EDIT(&NEXTDT2,'99/99/99');
-TYPE &MEASDATE - &NEXTDATE
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