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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

12 <strong>SAS</strong> Naming Conventions 4 Chapter 2<strong>SAS</strong> Naming ConventionsLength of Name<strong>SAS</strong> naming conventions allow long names <strong>for</strong> <strong>SAS</strong> data sets and <strong>SAS</strong> variables. Forexample, MYDB.TEMP_EMPLOYEES_QTR4_2000 is a valid two-level <strong>SAS</strong> name <strong>for</strong> adata set.The names of the following <strong>SAS</strong> language elements can be up to 32 characters inlength:3 members of <strong>SAS</strong> libraries, including <strong>SAS</strong> data sets, data views, catalogs, catalogentries, and indexes3 variables in a <strong>SAS</strong> data set3 macros and macro variablesThe following <strong>SAS</strong> language elements have a maximum length of eight characters:3 librefs and filerefs3 <strong>SAS</strong> engine names3 names of <strong>SAS</strong>/<strong>ACCESS</strong> access descriptors and view descriptors3 variable names in <strong>SAS</strong>/<strong>ACCESS</strong> access descriptors and view descriptorsFor a complete description of <strong>SAS</strong> naming conventions, see the <strong>SAS</strong> Language<strong>Reference</strong>: Dictionary.Case SensitivityWhen <strong>SAS</strong> encounters mixed-case or case-sensitive names in <strong>SAS</strong> code, <strong>SAS</strong> storesand displays the names as they are specified. If the <strong>SAS</strong> variables, Flight and dates,are defined in mixed case—<strong>for</strong> example,input Flight $3. +3 dates date9.;then <strong>SAS</strong> displays the variable names as defined. Note how the column headingsappear as defined:Output 2.1Mixed-Case Names Displayed in Output<strong>SAS</strong> SystemObs Flight dates1 114 01MAR20002 202 01MAR20003 204 01MAR2000Although <strong>SAS</strong> stores variable names as they are defined, it recognizes variables <strong>for</strong>processing without regard to case. For example, <strong>SAS</strong> processes these variables asFLIGHT and DATES. Likewise, renaming the Flight variable to "flight" or "FLIGHT"would result in the same processing.

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

Saved successfully!

Ooh no, something went wrong!