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    VSAM to SQL Date Conversion using DataMigrator

Read-Only Read-Only Topic
Go
Search
Notify
Tools
VSAM to SQL Date Conversion using DataMigrator
 Login/Join
 
Member
posted
Is there a function used to convert VSAM dates (CCYYMMDD) to SQL date format within DataMigrator, or will it convert automatically? Thank you!
 
Posts: 7 | Registered: April 01, 2008Report This Post
Master
posted Hide Post
VSAM is not a format of it's own, it should be either an A8YYMD or an I8YYMD or just YYMD (in the FOCUS master). It should convert as such on it's own.


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
 
Posts: 755 | Location: TX | Registered: September 25, 2007Report This Post
Platinum Member
posted Hide Post
Mike, although there isn't a function specific to converting VSAM dates to SQL dates, there are LOTS of date functions so I'm sure there is something that will fit your needs. First off, how are the VSAM and SQL dates defined in their corresponding synonyms?


Data Migrator 5.3, 7.1, 7.6
WebFOCUS 7.1, 7.6, 7.7
SQL Server, Oracle, DB2
Windows
 
Posts: 126 | Registered: January 18, 2007Report This Post
Member
posted Hide Post
Thanks for the reply.

VSAM is PIC X(8) format CCYYMMDD
Default format is dd/mm/yyyy for SQL Server.
 
Posts: 7 | Registered: April 01, 2008Report This Post
Platinum Member
posted Hide Post
I'm sorry Mike. I guess I wasn't specific enough. How is each field defined in its associated Data Migrator synonym?


Data Migrator 5.3, 7.1, 7.6
WebFOCUS 7.1, 7.6, 7.7
SQL Server, Oracle, DB2
Windows
 
Posts: 126 | Registered: January 18, 2007Report This Post
Master
posted Hide Post
A PIC X(8) in COBOL is an A8 in FOCUS. Has a FOCUS/WEBFOCUS master ever been created for this file?


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
 
Posts: 755 | Location: TX | Registered: September 25, 2007Report This Post
Member
posted Hide Post
A co worker has gotten a solution from IBI for DB2, they are switching from DB2 to SQL, but the SQL tables are not yet created, this works for DB2.
HDATE( HINPUT(8, EDIT(BYB_BH, '$99999999'), 8, 'HYYMD'), 'YYMD')
 
Posts: 7 | Registered: April 01, 2008Report 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    VSAM to SQL Date Conversion using DataMigrator

Copyright © 1996-2020 Information Builders