insert a date field with ODBC Enterprise stage

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I'm lost on how using a varchar doesn't get you the "real time" it takes to load the data.

And you don't change the NLS_DATE format, you match it and use a varchar. That's the only mechanism for loading a date that does not require the use of the TO_DATE function.
-craig

"You can never have too many knives" -- Logan Nine Fingers
bolingo
Premium Member
Premium Member
Posts: 22
Joined: Fri Nov 24, 2006 5:19 am

Post by bolingo »

The issue is solve by using User insert command like:
INSERT
INTO
TBble
(T_ID, T_DATE)
VALUES
(ORCHESTRATE.T_ID, to_date(ORCHESTRATE.T_DATE, 'yyyy/mm/dd'))


In the ODBC enterprise stage, I declare t_date varchar;

in open command property I use this query : TRUNCATE TABLE TBble;

Thanks all of you for helping me;
bolingo
Premium Member
Premium Member
Posts: 22
Joined: Fri Nov 24, 2006 5:19 am

Post by bolingo »

The issue is solve by using User insert command like:
INSERT
INTO
TBble
(T_ID, T_DATE)
VALUES
(ORCHESTRATE.T_ID, to_date(ORCHESTRATE.T_DATE, 'yyyy/mm/dd'))


In the ODBC enterprise stage, I declare t_date varchar;

in open command property I use this query : TRUNCATE TABLE TBble;

Thanks all of you for helping me;
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Interesting... you've said all along the date was in YYYY-MM-DD format and yet a mask of YYYY/MM/DD works for you? Ok.

Anyway, glad it is sorted out regardless.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply