When you specify CONNECTION=GLOBAL,
you can reference a temporary table throughout a SAS session, in both
DATA steps and procedures. Due to a Teradata limitation, FastLoad
and FastExport do
not support
use of temporary tables at this time.
Teradata supports two
types of temporary tables, global and volatile. With the use of global
temporary tables, the rows are deleted after the connection is closed
but the table definition itself remains. With volatile temporary
tables, the table (and all rows) are dropped when the connection
is closed.
When accessing a volatile
table with a LIBNAME statement, it is recommended that you do
not use
these options:
-
DATABASE= (as a LIBNAME option)
-
SCHEMA= (as a data set or LIBNAME
option)
If you use DATABASE=
or SCHEMA=, you
must specify
DBMSTEMP=YES in the LIBNAME statement. This denotes that all tables
accessed through it and all tables that it creates are volatile tables.
DBMSTEMP= also causes
all table names to be not fully qualified for either SCHEMA= or DATABASE=.
In this case, you should use the LIBNAME statement only to access
tables—either permanent or volatile—within your default
database or schema.