|
|
Archives of the TeradataForum
Message Posted: Fri, 23 Jul 2004 @ 14:10:01 GMT
Subj: | | Re: MLOAD of a file with multiple record types |
|
From: | | viswanathan.karthikeyan |
hi,
Below can work for fields redefination. if we add control field , that ll avoid error table loading.
.LOGON DEMOTDAT/dbc,dbc;
.LOGTABLE LIC.LOG_TST5;
.BEGIN IMPORT mload TABLES
LIC.b,
LIC.C
;
.layout A;
.FIELD a 1 char(1);
.FIELD b 2 char(1);
.FIELD b1 3 char(1);
.FIELD C 2 CHAR(2);
.DML LABEL PRP1;
INSERT INTO LIC.B
(
a
,b
)
VALUES
(
:b
,:b1
);
.DML LABEL PRP2;
INSERT INTO LIC.C
(
a
)
VALUES
(
:c
);
.IMPORT INFILE C:\TEST.TXT
LAYOUT A
Format text
APPLY PRP1 WHERE a = 'y'
APPLY PRP2 WHERE a = 'z';
.END MLOAD;
DATA:
y2v
z4d
regards,
kathi
| |