Archives of the TeradataForum
Message Posted: Tue, 06 Feb 2007 @ 19:57:00 GMT
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.
|