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.
Hi, I want to find out yesterdaty's date. I'm trying this code: DEFINE FILE A2PER1 THISDATE/A8YYMD WITH PTNO = EDIT('&YYMD','99999999'); THIS_DATE/I8YYMD WITH PTNO = EDIT(THISDATE); YESTERDAY/I8YYMD WITH PTNO = AYMD(THIS_DATE,-1,YESTERDAY); YESTERDAY1/MDYYTR WITH PTNO = YESTERDAY; END and when I print the dates, it gives me blank. Please help.
The echo of a fex would not show '&YYMD', it would list the substituted value ('20080507').
If this is executing in a context that does not recognize Dialog Manager variables (e.g. reading from std input, or executing a file via a FILEDEF ddname), the FOC177 is appropriate: the alpha expression '&YYMD' is not a valid date value.
quote:
Take the quotes off &YYMD
No, the quotes are appropriate.
You can assign a literal value to a smart date in the form of either a date literal or an integer constant representing a date offset.
After the substitution for &YYMD,
='20080507'; unambiguously provides a date value.
But =20080507; is ambiguous -- it can be interpreted either as a yyyymmdd date, or as an offset. -- The present behavior of Focus depends on the value: integer values that could be calendar dates are treated as date constants (as if they were quoted); otherwise the value is treated as an offset.
The range of "could be" dates is unspecified and the cutoff points are arbitrary (is 01001231 a very early date, or the offset of a far-off future date?)
-- But AFAIK the interpretation of some unquoted integer values as dates and others as offsets is undocumented, and subject to code tightening without notice.
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005