Help...Help....please organize the code and ExecDOS syntax
Posted: Mon Mar 21, 2005 1:51 pm
Can someone please look at the following code and correct it..I wrote all differtent
pieces..and need syntax to call ExecDOS routine....
my problem here is to drop indexes before loading data into a teradat table using
Multiload Plugin..
--------Teradata Drop Index Macro-----------
REPLACE MACRO si_di_buyers AS (
DROP UNIQUE INDEX CI_BUYERS_U01 (
CLM_NBR
, SOURCE_ID
)
, INDEX CI_buyers_I01 (
CLM_NBR
)
ON EDW_Tables.buyers ;
--------------DropIndex.txt------------------
.logon Servername/username,password;
database EDW_Tables;
EXEC si_di_buyers;
.logoff
---------------------------------------------
--before/After subroutine------Input Values--
ExecDOS : buyers.bat ???????????
---------------------------------------------
buyers.bat
----------------------------not sure this-----
C:\PROGRA~1\NCR\TERADA~1\bin\BTEQ.exe < c:\DS7.5\DropIndex.txt
pieces..and need syntax to call ExecDOS routine....
my problem here is to drop indexes before loading data into a teradat table using
Multiload Plugin..
--------Teradata Drop Index Macro-----------
REPLACE MACRO si_di_buyers AS (
DROP UNIQUE INDEX CI_BUYERS_U01 (
CLM_NBR
, SOURCE_ID
)
, INDEX CI_buyers_I01 (
CLM_NBR
)
ON EDW_Tables.buyers ;
--------------DropIndex.txt------------------
.logon Servername/username,password;
database EDW_Tables;
EXEC si_di_buyers;
.logoff
---------------------------------------------
--before/After subroutine------Input Values--
ExecDOS : buyers.bat ???????????
---------------------------------------------
buyers.bat
----------------------------not sure this-----
C:\PROGRA~1\NCR\TERADA~1\bin\BTEQ.exe < c:\DS7.5\DropIndex.txt