Article View: comp.sys.ibm.as400.misc
Article #144Re: Interesting Problem with Dates
From: gdt
Date: Sat, 17 Feb 2001 05:13
Date: Sat, 17 Feb 2001 05:13
53 lines
2754 bytes
2754 bytes
Ricko,
I am assuming that your using Microsoft Sequal DB when you say "Sequel
Database". If I'm correct and you are using the built in DTS data pump then
you can replace the generic "copy field" functionality with your own
VBScript or JScript routine.
Go to the transformation tab of the connector between the ODBC and the
Sequal DB's, find the field in question in the Left and Right panes. After
you click on the matching fields, delete the entry and click "New". That
should popup a window with a script outline that you can add your own
conversion code to.
Hope this helps
Gary Tummond
"ricko" <ricko@softlad.co.uk> wrote in message
news:3a87c97a$1@d2o313.teliauk.com...
> Hi
>
> I am trying to populate a Sequel Database with Data from an AS400 File
> (ODBC). The AS400 file
> contains several DATE Fields that have the field date property assigned.
> (L).
>
> I do not always need the dates to contain a date i.e. I need them to be
> Null. However, When I run
> my RPG Program to populate the AS400 file, the Date fields default to
> 1940/01/01 (*ISO Default).
>
> This is causing a problem because the Application that uses the Sequel
> database displays these dates
> to the users and I need them to be Blank.
>
> The ALWNULL and DFT Keywords do nothing to help. I have changed the DDS to
> be a 6 char numeric
> field but then Sequel detects that its not a date field and rejects my
file
> transfer.
>
> I am trying to automate the entire process without and 'manual'
> intervention.
>
> Is there a solution??
>
> Thanks in Advance!
>
> Paul Cullen
>
>
>
>
Technical Details
Message-ID:
<qNnj6.2641$466.159345@news1.atl>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-out.usenetserver.com!news-out.usenetserver.com!news3.bellglobal.com!sunqbc.risq.qc.ca!newsfeed.atl!news1.atl.POSTED!not-for-mailReferences:
<3a87c97a$1@d2o313.teliauk.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10e4c1,ba345bdd3e2c6d4 X-Google-Attributes: gid10e4c1,public X-Google-Thread: 1077ec,ba345bdd3e2c6d4 X-Google-Attributes: gid1077ec,public X-Google-Thread: 104581,ba345bdd3e2c6d4 X-Google-Attributes: gid104581,public X-Google-ArrivalTime: 2001-02-16 21:16:09 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-out.usenetserver.com!news-out.usenetserver.com!news3.bellglobal.com!sunqbc.risq.qc.ca!newsfeed.atl!news1.atl.POSTED!not-for-mail From: "gdt" <tummondg@yahoo.com> Newsgroups: comp.sys.ibm.as400.misc,es.comp.os.as400,it.comp.as400 References: <3a87c97a$1@d2o313.teliauk.com> Subject: Re: Interesting Problem with Dates Lines: 55 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: <qNnj6.2641$466.159345@news1.atl> Date: Sat, 17 Feb 2001 00:13:09 -0500 NNTP-Posting-Host: 216.77.205.174 X-Trace: news1.atl 982386902 216.77.205.174 (Sat, 17 Feb 2001 00:15:02 EST) NNTP-Posting-Date: Sat, 17 Feb 2001 00:15:02 EST