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.
It seems that the above format is not supported with new date formats. If I change it to MD/MtrDY then I get the proper output. But, drop off the Y and I either get the 2 digit month. Ie: DEFINE FILE CAR RUN_DATE/YYMD WITH COUNTRY =&YYMD; RDATE/YYMtD=RUN_DATE; DISPDATE/MtrDY = RDATE; MD/MtrDY = RDATE; END TABLE FILE CAR PRINT COUNTRY RUN_DATE MD END This works, remove the "Y" on MD and there is an error. The question is how do I get the date without the year? (I need this removed since I sort across Year)
Steve
Posts: 44 | Location: New York City | Registered: May 23, 2004
Steve, I don't know if this will help you, but it appears that MtrD is the only date format that will not work, so you may be able to use one of the others that work.
Code:
DEFINE FILE CAR TODAY/YYMD WITH BODYTYPE= '&DATEYYMD'; END
TABLE FILE CAR PRINT TODAY TODAY/MtDYY TODAY/MtDY TODAY/DMY TODAY/M TODAY/Mt TODAY/Mtr TODAY/MtrDYY WHERE RECORDLIMIT EQ 1 END
You may also convert the date to the newish date-time format and then extract the month and day from that converted date.
Alas, this is an inventory report showing week ending inventories compared between years, so there is an across sort on year, and I have to leave year out of the displayed date. I guess I have to cobble it together some other way.
Posts: 44 | Location: New York City | Registered: May 23, 2004