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 searched the forum and found numerous discussions but not one the gets me exactly what I need. I also have an online functions manual but I am still unable to get something to work. I have a view with a date of type MDYY. I need the day number from that field. Ex: July 13 , 2013 would yeild: 13.
I tried using EDIT and wrapping that in a SUBSTR function but got an incompatible type error.
Is there something simple?This message has been edited. Last edited by: <Kathryn Henning>,
Is your feild a date/numeric field or a text string?
If its a text string, you would first need to make sure that it is always the same format, i.e the month should always be three characters for consistency and the day should always be two chars, and then a simple edit with a mask should get you the day component.
If its a date/numeric field, try using the built in date functions (i.e HEXTR)
Lloyd Prendergast Michael Kors (USA), Inc. Phone: 201-453-5076 Fax: 646-354-4776 Lloyd.Prendergast@Michaelkors.com
Robert, A Date type of MDYY often indicates a "SmartDate" datatype field. You may extract individual components in this manner (SD_MDY2 is an MDY SmartDate field):
a) YR1 /YY = SD_MDY2;
b) MO1 /MONTH = SD_MDY2;
c) DA1 /DAY = SD_MDY2;
d) QT1 /Q = SD_MDY2;
e) WK1 /W = SD_MDY2;
DEFINE FILE CAR
TEST_DATE/MDYY = '03232011';
END
TABLE FILE CAR
PRINT
TEST_DATE
COMPUTE TEST_MONTH_I/I2 = DPART(TEST_DATE,'MM', 'I2');
COMPUTE TEST_MONTH_A/A02 = EDIT(FPRINT(TEST_DATE,'MDYY','A10'),'99$');
BY COUNTRY
END
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
all of my users like dates displayed in mm/dd/yyyy format
Store them as smart dates with usage format = mm/dd/yyyy. BTW: I like that format for display, not for storage or sorting. Fortunately, WebFOCUS has those two options in its Can O Worms.
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005