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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MLOAD Commad line options

Status
Not open for further replies.

mvnrk

Programmer
Jun 14, 2001
15
US
Can we pass IMPORT INFILE file name with path as command line parameter while loading data using mload under Unix environment?


Thanks in Advance
 
AFAIK no, but you can read it from a flat file or an environment variable using ACCEPT:

.ACCEPT tablename FROM FILE ...;
...
.IMPORT INFILE &tablename ...

Dieter
 
Hi

Thanks for your reply. I have used
.ACCEPT var1 FROM FILE /data/sam_030811.txt ;
.IMPORT INFILE &var1

It is giving error
0025 .ACCEPT var1 FROM FILE /data/sam_030811.txt ;
**** 11:33:16 UTY4811 # of Variables is less than # of data provided.
0026 .IMPORT INFILE &var1


Any clue on this.
 
Check the "Teradata RDBMS Messages" manual:

"Explanation: All variables in .ACCEPT command
have been satisfied and there is more data expecting
assignment to (a) variable(s)."

There is more than one tablename in sam_030811.txt.
It should be just a single line of ASCII text with a string in single quotes, e.g. 'mytablename'

Dieter


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top