Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Thu, 02 Dec 2004 @ 15:05:34 GMT

  <Prev Next>  
Next> Last>>  

Subj:   Running multiple teradata scripts
From:   svijayko


i am a newbie to teradata and korn shell scripting.

I am trying to kick off multiple teradata scripts at the same time instead of one after the other by using a korn shell script

This is my korn shell script:


     for x in usm_pay sp_pay oas69_pay oas89_pay csm_epay vru_epay prem_pay
        ksh $x.bteq $x $a > logs/$x.log &

I have another job that is to run only after all the teradata jobs in the above korn shell script have completed. this job however starts immediately after the first teradata script finishes executing. I want this dependent job to only run after all the teradata scripts have finished executing.

Any suggestion on what changes I could make to my korn shell script?



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