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 know that when I get a date of 19001231 that it usually means an invalid date was passed. However I am passing the same value in another DATEADD function (&LASTMONTH) and it works correctly. The formula is almost identical to &LASTMONTH except for the day arithmatic instead of month.
Now, I also found out if I remove the &MINDATE line, &MAXDATE mysteriously starts displaying correctly.
I know this is Halloween and I should expect mysterious and strange things, but I could use some help figuring this one out.
hammo1j, thanks for the fast response. I'll try it with a return arg and let you know how it goes.
I also found this out just now. If I change the &MINDATE formula, &MAXDATE displays correctly.
What I did was take the DATEADD part of the &LASTMONTH formula and put in the place of the &LASTMONTH parm in the &MINDATE formula (basically just combined a 2 step process into 1 step). Here is the code: -SET &TODAY = &YYMD; -***** -SET &MINDATE = DATECVT((DATEMOV((DATEADD((DATECVT(&TODAY,'I8YYMD','YYMD')),M,-1)),'BOM')),'YYMD','I8YYMD'); -SET &MAXDATE = DATECVT((DATEADD((DATECVT(&TODAY,'I8YYMD','YYMD')),D,-1)),'YYMD','I8YYMD'); -***** -TYPE &YYMD &TODAY &MINDATE &MAXDATE -EXIT
DISPLAY: 20071031 20071031 20070901 20071030
Strange, huh?!?
I would like to have it separated back out, for the readability of the code, but if I can't at least this is working.
Stating the obvious, but if you want it "separated back out, for the readability of the code' then just rearrange the code.
I am on 7.6.2 also and get the same results as you, but having the following code works just fine - don't ask me why and just put it down to one of the oddities that we see occasionally from WebFOCUS