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.
I'm trying to subtract 1 day from the current day and use it in a where clause. I'm confused on the format. The ENTDATE and DATE define fields work but I can't get the DAYAGO define to work. I also tried using the AYMD function. Can someone please assist.
DEFINE FILE INFO
ENTDATE/HMDYY=ENTRYDATE
DATE/A10=TODAY(DATE);
DAYAGO/MDYY=DATEADD(DATE, 'D', -1);
END
TABLE FILE INFO
NAME
ADDRESS
ENTDATE
WHERE ENTDATE EQ DAYAGO;
This message has been edited. Last edited by: kitten,
WebFOCUS 7.6.2, MS Windows Server/______, Excel, PDF, HTML
For starters, 1) add a semicolon at the end of this line: "ENTDATE/HMDYY=ENTRYDATE", 2) Add "DAYAGO" to your print line, 3) remove the WHERE statement, 4) Add a RECORDLIMIT and END, and see if "DAYAGO" is what you expect it to be, 5 take from there. and
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005
Oops. I did have the semicolon at the end just didn't copy it over. I also tried to print the DAYAGO field but get the following error: INVALID TYPE OF ARGUMENT #1 FOR USER FUNCTION DATEADD.
Should I have used the AYMD function?
WebFOCUS 7.6.2, MS Windows Server/______, Excel, PDF, HTML
That worked Tom, but the where clause doesn't. I get the following error: (FOC280) COMPARISON BETWEEN COMPUTATIONAL AND ALPHA VALUES IS NOT ALLOWED (FOC009) INCOMPLETE REQUEST STATEMENT
Do I need to convert the ENTDATE to Alpha?
WebFOCUS 7.6.2, MS Windows Server/______, Excel, PDF, HTML