Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 06 Feb 2007 @ 19:57:00 GMT


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


Subj:   Re: Arcmain heredoc
 
From:   Anomy Anom

<-- Anonymously Posted: Tuesday, February 06, 2007 13:35 -->

  Does anyone have an example of using Arcmain with a heredoc.  


Keep in mind this only works in UNIX version of platform:

     #!/usr/bin/ksh

     arcmain sessions=24 << ! > test.log
     LOGON ,;
     ARCHIVE DATA TABLES
     (.),
     RELEASE LOCK,
     FILE=TESTFILE;
     LOGOFF;
     !
     if (($? < 8)) then
     rm ./ARCLOG*.rlg
     Fi

You would put everything between the ! S in a file if you are in NT/window platform.


Hope this helps.



     
  <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