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.
Hello experts, I have a table that contains a date field and a time field examples: Date/HYYMDs (2003/01/02 00:00:00.000) Time/A5 (13:23)
Is there an easy way to add the two so I woud get a new date field (2003/01/02 13:23:00.000) ?This message has been edited. Last edited by: <Kathryn Henning>,
WebFocus 7.611 WebFocus 7.703 Windows, All Outputs
These are really the basics of WebFOCUS you are asking for and that is not what this forum is meant for.
Please look into 'Concatenating Character Strings' (found in Help function Developer Studio for example). Also, see if you are able to follow an Information Builders course to get you started with the product.
WebFOCUS 8105m Windows 7, All Outputs
Member of the Benelux Usergroup
Posts: 198 | Location: Amsterdam | Registered: August 24, 2011
There are several ways to do this - here's one of them: convert the 'time' field to numeric number of minutes, then add it to the 'date' field:
DEFINE FILE CAR
DATE1/HYYMDs WITH COUNTRY = HINPUT(8, '20030102', 8, 'HYYMDs');
TIME1/A5 = '13:23';
END
TABLE FILE CAR
PRINT
DATE1
TIME1
COMPUTE TIME1_HM/I6 = ( EDIT( EDIT(TIME1,'99$$$') ) * 60 ) + EDIT( EDIT(TIME1,'$$$99') ); NOPRINT
COMPUTE DATE2/HYYMDs = HADD(DATE1, 'MINUTE', TIME1_HM, 8, 'HYYMDs');
WHERE RECORDLIMIT EQ 1
END
Line 11: Use EDIT to extract the Hours, convert it to numeric using another EDIT, then multiply it by 60 minutes, then use EDIT to extract the Minutes, convert it to numeric using another EDIT, then add it to the converted Hours.
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