13.07.2015 Views

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>SAS</strong>/<strong>ACCESS</strong> Interface to DB2 Under z/OS 4 Overview 521Naming Conventions <strong>for</strong> DB2 Under z/OSFor general in<strong>for</strong>mation about this feature, see Chapter 2, “<strong>SAS</strong> Names and Support<strong>for</strong> DBMS Names,” on page 11.The PRESERVE_COL_NAMES= and PRESERVE_TAB_NAMES= LIBNAME optionsdetermine how <strong>SAS</strong>/<strong>ACCESS</strong> Interface to DB2 under z/OS handles case sensitivity,spaces, and special characters. The default <strong>for</strong> both of these options is NO. AlthoughDB2 is case-sensitive, it converts table and column names to uppercase by default. Topreserve the case of the table and column names that you send to DB2, enclose them inquotation marks. For in<strong>for</strong>mation about these options, see “Overview of the LIBNAMEStatement <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong>” on page 87.DB2 objects include tables, views, columns, and indexes. They follow these namingconventions.3 These objects must have names of the following length in characters: column(1–30), index (1–18), table (1–18), view (1–18), alias (1–18), synonym (1–18), orcorrelation (1–128). However, <strong>SAS</strong> limits table names to 32 bytes. This limitationprevents database table objects that are defined through a DATA step—<strong>for</strong>example, to have names that are longer than 32.These objects must have names from 1–8 characters long: authorization ID,referential constraint, database, table space, storage group, package, or plan.A location name can be 1–16 characters long.3 A name must begin with a letter. If the name is in quotation marks, it can startwith and contain any character. Depending on how your string delimiter is set,quoted strings can contain quotation marks such as “O’Malley”.3 A name can contain the letters A–Z, numbers from 0–9, number or pound sign (#),dollar sign ($), or at symbol (@).3 Names are not case sensitive. For example, CUSTOMER and Customer are the same.However, if the name of the object is in quotation marks, it is case sensitive.3 A name cannot be a DB2-reserved word.3 A name cannot be the same as another DB2 object. For example, each columnname within the same table must be unique.Data Types <strong>for</strong> DB2 Under z/OSOverviewEvery column in a table has a name and a data type. The data type tells DB2 howmuch physical storage to set aside <strong>for</strong> the column and the <strong>for</strong>m in which the data isstored. This section includes in<strong>for</strong>mation about DB2 data types, NULL and defaultvalues, and data conversions.For more in<strong>for</strong>mation about DB2 data types, see your DB2 SQL referencedocumentation.<strong>SAS</strong>/<strong>ACCESS</strong> Interface to DB2 under z/OS supports all DB2 data types.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!