Home Page for the TeradataForum
 
 

 

Archives of the TeradataForum





Message Posted: Fri, 03 Dec 2004 @ 13:22:13 GMT





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




Subj:   Re: Running multiple teradata scripts
 
From:   Rodrigo Cifuentes



You will need to collect all PIDs and then wait for them to finish:

     i=0
     for x in usm_pay sp_pay oas69_pay oas89_pay csm_epay vru_epay prem_pay
     do
        ksh $x.bteq $x $a > logs/$x.log &
        a[i]=$!
        let i=i+1
     done
     wait a[0] a[1] ...

Didn't test this code, so it can have some problems with array syntax, but this is the idea


Rodrigo Cifuentes





     
  <Prev Next>   <<First <Prev
Next>
Last>>
 
 
 
 
 
 
 
 
 
  
 
  Top Home Join Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky 
Last Modified: 30 Jun 2008