16.20 - Example 1 Using FNC_GetPhaseEx - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
16.20
Release Date
April 2020
Content Type
Programming Reference
Publication ID
B035-1147-162K
Language
English (United States)
FNC_Phase    Phase;

if (FNC_GetPhaseEx(&Phase, TBL_LASTROW) == TBL_MODE_VARY) 
{
   switch(Phase)
   {
      case TBL_PRE_INIT:
      {
         ...
         break;
      }
      case TBL_INIT:
      {
         ...
         break;
      }
      case TBL_BUILD:
      {
         ...
         break;
      }
      case TBL_BUILD_EOF:
      {
         ...
         break;
      }
      ...
   }
}
...