Archives of the TeradataForum
Message Posted: Wed, 21 Jul 2004 @ 16:46:12 GMT
Subj: | | Re: MLOAD of a file with multiple record types |
|
From: | | Wayne Schachtel |
Create a layout as such. The key is to start each layout at position 1
.LAYOUT COMP_STORE;
.FILLER HDR_TIMESTAMP 1 CHAR(14);
FILLER HDR_RCD_TYPE * CHAR(1);
FILLER HDR_LAYOUT * CHAR(3);
FILLER HDR_SEQUENCE * CHAR(3);
.FILLER HDR_ACTION_CDE * CHAR(1);
.FILLER HDR_FILLER * CHAR(78);
.FILLER DTL_TIMESTAMP 1 CHAR(14);
FILLER DTL_RCD_TYPE * CHAR(1);
FILLER DTL_LAYOUT * CHAR(3);
FILLER DTL_SEQUENCE * CHAR(3);
.FILLER DTL_ACTION_CDE * CHAR(1);
.FIELD LOCATION_ID * CHAR(5);
.FIELD SALES_DATE * CHAR(8);
FIELD COMP_STORE_IND * CHAR(1);
.FILLER DTL_FILLER * CHAR(64);
.FILLER TLR_TIMESTAMP 1 CHAR(14);
FILLER TLR_RCD_TYPE * CHAR(1);
FILLER TLR_LAYOUT * CHAR(3);
FILLER TLR_SEQUENCE * CHAR(3);
.FILLER TLR_ACTION_CDE * CHAR(1);
.FILLER TLR_FILLER * CHAR(78);
Wayne Schachtel
|