Quantcast
Channel: Teradata Downloads - Tools
Viewing all articles
Browse latest Browse all 870

Mload - execute a file in batch mode, invalid statement was found

$
0
0

Greetings Experts,
I am using windows 7, TD 13.0 express demo version on my laptop.  I have created the sample Mload file in C:\mload_in.txt which is below.

.LOGTABLE SAMPLES.ML_ITEMPPI;
.logon localtd/tduser,tduser;

.begin import mload tables samples.itemppi;
--errortables samples.ET_ITEMPPI SAMPLES.UV_ITEMPPI SAMPLES.WT_ITEMPPI;

.LAYOUT DATA_LAYOUT;
.field L_ORDERKEY * INTEGER;
.field L_PARTKEY * INTEGER; 
.field L_QUANTITY * DECIMAL (15,2); 
.field L_LINESTATUS * CHAR(1); 
.field L_SHIPDATE * DATE;

.dml label insert_itemppi;
insert into samples.itemppi.*;
-- values (:L_ORDERKEY, :L_PARTKEY, :L_QUANTITY, :L_LINESTATUS, :L_SHIPDATE);

.import infile "C:\itemppi_data.txt"
format fastload
layout data_layout
apply insert_itemppi;
.end mload;

.logoff;

 
When I click on Mload utility and type
mload < C:\mload_in.txt
it is showing the error message as 

"**** 12:59:28 UTY2403 An invalid statement was found before the .LOGTABLE statement.

**** 12:59:28 UTY2400 Error received in interactive mode will be ignored."

 

Also tried to use the following command, resulting in the same error

mload -r '.RUN FILE C:\mload_in.txt;'

 

how to execute the above file in batch mode?

 

I also tried to execute the same mload statements in bteqwin with no luck.  Error message is

"*** Failure 3707 Syntax error, expected something like a name or a Unicode 

 delimited identifier between the 'mload' keyword and '<'."

 

Forums: 

Viewing all articles
Browse latest Browse all 870

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>