274 IBM Content Manager OnDemand Guide
/*           so that the exit can drop the index (idx_name)           */
/*           using (sql)                                              */ 
/*            *created  -> 0 exit did not drop the index,             */ 
/*                           OnDemand needs to drop the index         */ 
/*                           using (sql), which can be left unchanged */ 
/*                           or modified by the exit                  */ 
/*            *created  -> 1 exit dropped the index                   */ 
/*                                                                    */ 
/*        8) OnDemand will invoke the exit with action == 8           */ 
/*           so that the exit can alter the table (table_name)        */ 
/*           using (sql)                                              */ 
/*            *created  -> 0 exit did not alter the table,            */ 
/*                           OnDemand needs to alter the table        */ 
/*                           using (sql), which can be left unchanged */ 
/*                           or modified by the exit                  */ 
/*            *created  -> 1 exit altered the table                   */ 
/*                                                                    */ 
/* RETURN_CODE:                                                       */ 
/*        0         -> Successful                                     */ 
/*        Otherwise -> Failed                                         */ 
/*                                                                    */  
/**********************************************************************/  
ArcI32                                                                    
ARSCSXIT_EXPORT                                                           
ARSCSXIT_API                                                              
TBLSPCRT( ArcCSXitApplGroup *appl_grp,                                    
          char *tblsp_name,                                               
          char *table_name,                                               
          char *idx_name,                                                 
          char *sql,                                                      
          ArcI32 action,                                                  
          ArcI32 *created,                                                
          char *instance                                                  
        ); 
Y ou can use SQL code to customize the following actions:
/SM590000Creating a table space
/SM590000Creating a table
/SM590000Creating an index
/SM590000Other additional action
If you do not customize the action, Content Manager OnDemand uses the defaults. 
Example 11-14 shows a sample program flow.
Example 11-14   Sample program flow
Action 1
Is there a need to customize the creation of the table space?
If yes
create the tablespace
return( created = 1)
Else
OnDemand create the tablespace
return( created = 0)
Action 2
Is there a need to customize the creation of the table?
 If yes