Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Placing a WHERE clause in Teradata OLE DB MultiLoad

Status
Not open for further replies.

stephanie2e

Technical User
Nov 8, 2006
2
0
0
US
I am frequently moving large amounts of data and have found that using Teradata OLE DB Access Module 2.2.1, MultiLoad is very helpful. However, I have yet to find someone who can tell me how to modify the sql to include a WHERE clause.

How would I place: WHERE ICA_ID = 101
in the following example

/* Launch the MultiLoad utility with the -c <character_set_name>
option set to ASCII. (i.e. "mload -c ASCII") */
.LOGTABLE database."samplefile.txt_Log" ;
.LOGON DEV/USER,pswd ;
DATABASE database ;
CREATE TABLE "samplefile.txt" ( ICA_ID INTEGER,
ADDR1 VARCHAR(50) CHARACTER SET LATIN,
MONTHY_FEE FLOAT ) ;
.BEGIN IMPORT MLOAD TABLES "samplefile.txt" ;
.LAYOUT Layout1 INDICATORS ;
.FIELD ICA_ID * INTEGER ;
.FIELD ADDR1 * VARCHAR(50) ;
.FIELD MONTHY_FEE * FLOAT ;
.DML LABEL LabelA ;
INSERT INTO "samplefile.txt" ( ICA_ID, ADDR1, MONTHY_FEE )
VALUES ( :ICA_ID, :ADDR1, :MONTHY_FEE ) ;
.IMPORT INFILE Untitled
AXSMOD Oledb_Axsmod 'noprompt'
LAYOUT Layout1
APPLY LabelA ;
.END MLOAD ;
.LOGOFF ;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top