Delete Global Variable is the service function that deletes a global variable that had been created for the operator.
#include <pxoper.h> PXSTC_Code PX_DeleteGlobalVar(PX_OperatorHandle operator, PX_Name varName);
where the following is true:
|operator||input||Instance of the operator handle for which the global variable is being deleted.|
|varName||input||Name of the global variable.|
The following Delete Global Variable function status codes are defined by the Teradata PT operator interface.
|PXSTC_InvalidArgument||One or more bad input arguments.|
|PXSTC_BadHandle||An undefined object handle.|
|PXSTC_Success||Successful deletion of the global variable.|
Consider the following when using the Delete Global Variable function.
|Status||If the function status is PXSTC_Success, all items of the global variable were deleted successfully. See also the Create Global Variable function.|