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.
The variable &DTYYMD displays 37956, where as &DATEMDYY displays current date in yymd format. This is happening after upgrading to webfocus 532 on win2k. Both the variables displays 37956 in 521 & 526. Any Idea why is it happening?
Try removing the 'I8' on the input format for the &DTYYMD field:
-SET &DTYYMD=DATECVT(&DT1 ,'YYMD','YYMD');
On the second one &DATE is a reserved word and by adding MDYY or YYMD to it, it changes the format, so the DATECVT is being ignored. You can see this by trying: -TYPE &DATE -TYPE &DATEMDYY
KJ, since your're using the datecvt function, i'm assuming that you in fact WANT a smart date as a result. And that number 37956 is exactly correct, its the smartdate being held in variable &DTYYMD. Smartdates are integers representing the number of dates elapsed since the beginning of the last century ; theres a difference between the way FOcus calculates it and Excel calculates it, but you can get the idea by going to Excel and entering 12/1/04 in a date formated cell a1, and then in another cell enter =value(a1) and you'll see 38322. This is how both applications handle date arithmetic. So if you WANT a smart date in an &var, you've got it. If you DON"T want a smart date in an &var, then don't use the DATECVT function.
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003