For general information, see SAS Names and Support for DBMS Names.
DB2 objects include tables, views, columns, and indexes. They follow these naming conventions.
These objects must have names from 1–8 characters long: authorization ID, referential constraint, database, tablespace, storage group, package, or plan.
A location name can be 1–16 characters long.
CUSTOMER and Customer are
the same. However, if the name of the object is in double quotation
marks, it is case sensitive.The PRESERVE_TAB_NAMES= and PRESERVE_COL_NAMES= options determine how this interface handles case sensitivity, spaces, and special characters. (For information about these options, see LIBNAME Statement for Relational Databases.) Although DB2 is case sensitive, it converts table and column names to uppercase by default. To preserve the case of the table and column names that you send to DB2, enclose them in double quotation marks.
DB2 under z/OS supports the use of table aliases or table synonyms. If you use aliases or synonyms in your database, then you must specify the qualifying value to use when accessing the alias or synonym name, even if the qualifying value is NULL. The AUTHID= and SCHEMA= LIBNAME options specify qualifying values for tables.
To specify a NULL value for the AUTHID= LIBNAME option, submit this code:
libname mylib2 db2 authid=''; /* no space between quotation marks */
To specify a NULL value for the SCHEMA= LIBNAME option, submit this code:
libname mylib db2 schema=''; /* no space between quotation marks */
You can also specify NULL values for the AUTHID= and SCHEMA= data set options.