Archives of the TeradataForum
Message Posted: Mon, 28 Aug 2000 @ 19:26:37 GMT
Subj: | | Re: MultiLoad Date Fields |
|
From: | | Mary Lou Arundell |
Thanks, Barry and Gloria, for your suggestions. Still no luck. I'm getting this error: 3617: FORMAT 'YYYYMMDD' does not match the
datatype. Here's my revised MLoad:
.BEGIN IMPORT MLOAD TABLES JUNK;
.LAYOUT MYJUNK;
.FIELD IJUNK01 * CHAR (12);
.FIELD IJUNK02 * CHAR (8);
.DML LABEL MYUPSERT
DO INSERT FOR MISSING UPDATE ROWS;
UPDATE JUNK
SET JUNK02 = :IJUNK02 (FORMAT'YYYYMMDD') WHERE JUNK01 = :IJUNK01;
INSERT INTO JUNK
(JUNK01, JUNK02) VALUES
(:IJUNK01, :IJUNK02 (FORMAT'YYYYMMDD') );
I also tried the additional parenthesis and got the same error. An excerpt from the job log:
15:10:36 UTY0817 MultiLoad submitting the following request:
BT;
15:10:36 UTY0817 MultiLoad submitting the following request:
USING IJUNK01(CHAR(12)), IJUNK02(CHAR(8)) UPDATE JUNK
SET JUNK02 = (:IJUNK02 (FORMAT'YYYYMMDD')) WHERE JUNK01 = :IJUNK01;
15:10:36 UTY0805 RDBMS failure, 3617: FORMAT 'YYYYMMDD' does not match
the datatype.
Here's my table definition:
CREATE SET TABLE JUNK ,NO FALLBACK ,
NO BEFORE JOURNAL,
NO AFTER JOURNAL
(
JUNK01 CHAR(12) NOT CASESPECIFIC,
JUNK02 DATE FORMAT 'MMDDYYYY')
PRIMARY INDEX ( JUNK01 );
I've tried creating the table with and without the format parameter with no effect on the MLoad. Other ideas?
Mary Lou
|