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'd like to format a date field to show 9/12, no year, but all the options in report painter include a year. I tried START_DATE/MD AS 'Start,Date' and gives an error, but START_DATE/YMD AS 'Start,Date' works just fine, I just don't want the year to show.
Any ideas?This message has been edited. Last edited by: Kerry,
Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
Almost. Casting (reformatting at report time) a /yymd date as... ... /m takes the integer offset (in months) from january, in isolation from the original full date, and formats that for output.
... /d takes the integer offset (in days) from the first of the month
... /md would have to take the integer offset (in days) from Jan 1 -- and how to format that would be dependent on the year (i.e., on whether the year is or is not a Leap Year).
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
If the date is a smart date, the year is there and the format is irrelevant and one should be able to print the date using any combination of valid components. I would consider MD or DM to be valid combinations.
In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006
Another option is to convert the date to a date-time field. Date-time fields have a few more formatting options available than SmartDates. The lower case "d" in the output format specification drops leading zeroes in the day component of the output, but I can't find a corresponding format option for the month component (another oversight?).
TABLE FILE CAR
PRINT
COUNTRY
COMPUTE START_DATE/HYYMD = DT(&YYMD); NOPRINT
START_DATE/HMd
END
WebFOCUS 7.7.05
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007