Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Change YYMD to HYYMDS in synonym and focus database

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Change YYMD to HYYMDS in synonym and focus database
 Login/Join
 
Master
posted
I have a requirement wherein a date in a Focus database has till now just been YYMD, but the new requirement is to record the time also.

These are smartdates so I'm guessing that all I have to do is change the display characteristics in the MAS file to HYYMDS, but I thought I'd get an opinion here before messing things up ....

This message has been edited. Last edited by: George Patton,


WebFOCUS 7.7.05 Windows, Linux, DB2, IBM Lotus Notes, Firebird, Lotus Symphony/OpenOffice. Outputs PDF, Excel 2007 (for OpenOffice integration), WP
 
Posts: 674 | Location: Guelph, Ontario, Canada ... In Focus since 1985 | Registered: September 28, 2010Report This Post
Master
posted Hide Post
George,

I would treat it like any other database. Create a new field for your Time/Date field. You will need to update whatever processes update that field to now provide the date/time to the new field. Then migrate the old data from the one field into the other.

Remember that whatever is populating that field is doing so with a smart date as well. So just changing the data type in the FOCUS table won't be enough. You will most likely receive errors for trying to put a smart date into a HYYMDS field.


Eric Woerle
8.1.05M Gen 913- Reporting Server Unix
8.1.05 Client Unix
Oracle 11.2.0.2
 
Posts: 750 | Location: Warrenville, IL | Registered: January 08, 2013Report This Post
Virtuoso
posted Hide Post
Smart dates are internally 4-byte binary signed integers. I believe H (date-time) formats are a different size and internal layout.

You can use rebuild dump + rebuild load for most of the heavy lifting, but you'll need to run a Modify to set the timestamp in the converted record instances (HOLD record keys and date field(s) before the format conversion, and run a Modify from Hold after).


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Master
posted Hide Post
Eric / Jack:

Thank you both for your comments. Receiving advice from the past masters of the art is a pleasure. Having it confirmed that it isn't a super-simple exercise is a bit of a pain, but that's OK.

George


WebFOCUS 7.7.05 Windows, Linux, DB2, IBM Lotus Notes, Firebird, Lotus Symphony/OpenOffice. Outputs PDF, Excel 2007 (for OpenOffice integration), WP
 
Posts: 674 | Location: Guelph, Ontario, Canada ... In Focus since 1985 | Registered: September 28, 2010Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Change YYMD to HYYMDS in synonym and focus database

Copyright © 1996-2020 Information Builders