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 have a date coming from an ORACLE database (date time field) and I need to check that this falls within the past 7 days. I know about defining a variable = &DMY to get todays date, and presumably I could then have another variable = that one -7 for the start of the date range, but I cannot seem to get the formats of this date and my ORACLE date to match so that I can get them to work in the filter. I do not have access to modify any code so I'm limited to what can be done via the infoassist interface. Could anyone help please?
Thank you.This message has been edited. Last edited by: tcox,
Hi Tom. Thanks for all your help on this. The good news is that I did exactly what you suggested and managed to get into the 'managed reporting applet' so that I could change the code, and ran the report from there and it worked perfectly. I then went back to the Infoassist user interface (which is where we want our users to develop reports) and it still comes up with the same error about inconsistent formats and it will not run.
Just as another idea, I read about Report Assistant which I also managed to get into via the MR-Applet. I re-created my report in there and ran it. It worked perfectly again.
So I now have three ways to run this: two of which work fine, but the third doesn't and that's the one I need for the users.
So why is the user interface / interactive version failing?
tcox, I opened IA and was able to generate the 3 new columns successfully(see image below). You probably need to remove db_view. from SDATE: SDATE/YYMD = HDATE(SESSION_CREATION_DATE, 'YYMD');
Also, make sure when you enter the DEFINE that the Format is changed to YYMD and there is no semi-colon at the end... If it still doesn't work, contact IBI... Good Luck! Tom
I have closed this case to refer it to IBI. Currently the report works fine if started from the managed reporting applet. Thank you for you support and advice.
I think you guys are making this too hard. What follows is based on the assumption that if today is Monday, you want data where SESSION_CREATION_DATE is from last Monday through Sunday. I also assume that in the master, SESSION_CREATION_DATE is an H format (date time).
-SET &7DAYS=AYMD(&YYMD,-7,'I8YYMD');
TABLE FILE XXXX
PRINT FLDA FLDB ...
BY ...
WHERE SQL.TRUNC(SESSION_CREATION_DATE) GE '&7DAYS'
AND SQL.TRUNC(SESSION_CREATION_DATE) LT '&YYMD'
END
Another option if you don't have the ability to use the "SQL." prefix for Oracle functions is to do this in the master.