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  iWay Software Product Forum on Focal Point    Date Migrator Date Issue

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Date Migrator Date Issue
 Login/Join
 
Gold member
posted
I have a table (T1) in SQL server to which I populated through DMC and it has a date field in format YYMD. I am trying to append data to this table but from a different source (DB2 table - T2). I am able to get the date field in T2 in either alphanumeric format (YYYY/MM/DD) or decimal (99999999) but when I try to append it to T1, I get a format error on the date field. Can anyone suggest how to fix this? Thanks.


WebFOCUS 7.6.10
Windows
all output (Excel, HTML, PDF)
 
Posts: 69 | Registered: March 11, 2010Report This Post
Virtuoso
posted Hide Post
For the decimal value (assuming that it is yyyymmdd format), change the USAGE attribute in the metadata to I8YYMD. This tells DMC that this is actually a date and to treat it accordingly.

For the string, if the slashes are not part of the value, then you can change the USAGE attribute in the metadata to A8YYMD. Like the above decimal, DMC will treat this as a date. If the slashes are part of the value, then you will have to create a source transformation to remove them and redefine the result as a date. Example:

D_NEW_DATE/A8YYMD = EDIT(OLD_DATE,'9999') || EDIT(OLD_DATE,'$$$$$99') || EDIT(OLD_DATE,'$$$$$$$$99')


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Gold member
posted Hide Post
It worked. Thanks.


WebFOCUS 7.6.10
Windows
all output (Excel, HTML, PDF)
 
Posts: 69 | Registered: March 11, 2010Report This Post
Guru
posted Hide Post
Or even simpler:

D_NEW_DATE/A8YYMD = EDIT(OLD_DATE,'9999$99$99')


N/A
 
Posts: 397 | Location: New York City | Registered: May 03, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    Date Migrator Date Issue

Copyright © 1996-2020 Information Builders