Defining Teradata Macros

he following properties are applicable to a Teradata Macro object.

Tab

Property

Description

Additional Information

  Name Specifies the name of the macro  
  Database Specifies the schema of the database to which the macro belongs  
  Type Specifies the type of the macro

Model Level: Indicates that the object is applied for database models.

Table Level: Indicates that the object is applied for database tables.

  Enabled Specifies whether the object is enabled

True: Indicates that the macro is enabled.

False: Indicates that the macro is disabled.

  Attach to New Specifies if the macro must be attached to a new table upon creation  
  Use Replace Syntax Specifies whether the REPLACE syntax is used Selecting this option replaces the syntax with the new DDL that is generated during Forward Engineering
  Generate Specifies whether a DDL statement is generated for the object during forward engineering  
  Generate As Pre-Script Specifies the location of the macro with respect to the table definition in the DDL statement

Pre-Creation: Indicates that in the DDL, the macro code is inserted before the object creation statements.

Post-Creation: Indicates that in the DDL, the macro code is inserted after the object creation statements.

Parameters Parameters Specifies the names of the parameters that are associated with the selected method  
Character Case Specifies the type of character set used  
Default Specifies the default value used when a null value is inserted  
Format Specifies the format in which the data is displayed in Teradata applications  
Title Specifies a name to identify the column values in Teradata applications  
Upper Case Specifies whether the values are stored exactly as entered or automatically converted to uppercase characters  

Null Option

Specifies the usage of the NULL clause for the selected column Null: Indicates that null values are allowed

Not Null: Indicates that null values are not allowed

Code   Specifies the template code of the trigger that can include SQL statements and macros  
Expanded Code Expanded Code (Read Only) Specifies the expanded code of the macro  
Context Specifies the table or view for which the expanded code must be generated  
Comment   Specifies comments about the trigger object