Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 12 Jan 2004 @ 19:02:45 GMT


     
  <Prev Next>  
<<First
<Prev
Next> Last>>  


Subj:   System Environment Variable Mload (Infile) ?
 
From:   Mohammed, Barkat

Hello

I want to use system environment variables in my multiload script in

import infile Option.

import infile /export/home/user1/file1.dat


if the location of the file "file1.dat" changes I have to edit and change the path from multiload script, instead I want the script to get the path from the system environment variable.

I tried setting up variable on my unix box ; exported the variable and used in mload script but that doesn't work

DATA_DIR=/export/home/user1; export DATA_DIR

import infile $DATA_DIR/file.dat


this doesn't work

I also tried to use accept command to us Environment variable but doesn't work

.accept FROM ENVIRONMENT VARIABLE '$DATA_DIR' ;

or

.accept FROM ENVIRONMENT VARIABLE $DATA_DIR ;


Thanks

Barkat



     
  <Prev Next>  
<<First
<Prev
Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023