Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. . /appl/ibm/db2data/db2inst1/.profile
  2.  
  3. for i in cat scripts.txt do LOG="reorgoutputdate +%d%b%y.log"
  4.  
  5. db2 connect to con date > script${i}_$LOG; db2 -tvf cdm_REORG_Batch${i}.txt >> script${i}$LOG;date >> script${i}$LOG &
  6.  
  7. scripts.txt content
  8.  
  9. 1 2
  10.  
  11. 3 4
  12.  
  13. 5 6 7 8 9 10 NO spaces
  14.  
  15. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement