Archives of the TeradataForum
Message Posted: Tue, 03 Apr 2001 @ 09:49:52 GMT
Subj: | | Re: ClearPeakDisk and PeakSpoolSpace |
|
From: | | Howard Bradley |
Thanks to John Hall for the explanation as to why I couldn't do what I was trying to do which has broadened further my limited knowledge
on such things and thanks to Arthur Brown for his solution which I have blatantly ripped off to develop my own working solution :-)
My macro now looks as follows
CREATE MACRO production_macro.ClearDBPeakDisk (DatabaseID BYTE(4))
AS ( UPDATE DataBaseSpace
SET PeakPermSpace = 0, PeakSpoolSpace = 0
where dbc.databasespace.databaseId = :DatabaseID;);
executed by running
exec production_macro.ClearDBPeakDisk(databaseid='00000504'XB) .
The databaseid isnt easily recognisable unlike the databasename (potentially) but this macro does what I need it to do so thanks again
to all who responded .
Howard .
|