Mainframeforum
Here you can view your subscribed threads, work with private messages and edit your profile and preferences Registration is free! Calendar Find other members Frequently Asked Questions Search Logout

Mainframeforum Mainframeforum > IBM - OS's and Program Products > Program Products > DB2 > DB2 Local Date Exit
  Last Thread   Next Thread
Author
Thread Post New Thread    Post A Reply
  Tom Longfellow
Member

Registered: Jun 2001
Location: USA
Posts: 3

Question DB2 Local Date Exit

We are facing a major data loading project where the user DATE field data is in the format YYYYMMDD. This format is not recognizable as a
DATE input to a DB2 LOAD.
I am looking at two alternatives.
1) reprocess the input (via ICETOOL) to insert '-' values so that DB2 can read YYYY-MM-DD.
2) Write a DB2 date exit (DSNXVDTX) that will either a) insert the '-'s or b) use LE (CEE) calls to convert YYYYMMDD to Lilian date, then back to ISO date.

Option 2. b) would be the most robust solution because it will actually validate the data, but I am concerned about the restrictions on DB2 exits. Specifically, No SVC calls (is CALL an SVC call). Is there a way to branch-entry into the LE modules?
Option 1 would cause a lot of setup work and ther reprocessing of Gigabytes (literally) of data.
Option 2. a) would be obviously be the quickest to implement, but if I can easily make the LE calls for 2. b) I would spend the extra time now up front.

Anybody been here before??

Report this post to a moderator | IP: Logged

Tom Longfellow is offline Old Post8th Jun 2001  16:12
Click Here to See the Profile for Tom Longfellow Click here to Send Tom Longfellow a Private Message Find more posts by Tom Longfellow Add Tom Longfellow to your buddy list   Edit/Delete Message Reply w/Quote
  Tom Longfellow
Member

Registered: Jun 2001
Location: USA
Posts: 3

Smile

With enough trial and error and reading the manuals I have found a workable solution to the problem.

Basically, we will preprocess the data because the date exit requires a 10 character input and YYYYMMDD is only 8 characaters. As long as we have to stuff characters, we will stuff it to look like YYYY-MM-DD. DB2 understands this format

Report this post to a moderator | IP: Logged

Tom Longfellow is offline Old Post23rd Jun 2001  18:02
Click Here to See the Profile for Tom Longfellow Click here to Send Tom Longfellow a Private Message Find more posts by Tom Longfellow Add Tom Longfellow to your buddy list   Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 15:49. Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 

< Contact Us - mainframeforum - Text Roadmap - >

Powered by: vBulletin  |  Copyright ©2000, 2002, Jelsoft Enterprises Limited.
Copyright �2001, 2002 - SPAGiRiK Limited. Limassol, Cyprus. 

Site Meter