Preserves spaces, special characters, and case sensitivity in column names when you create tables.
Valid in: | DATA and PROC steps |
Default: | LIBNAME statement setting |
Supports: | All |
specifies that column names that are used in table creation are derived from SAS column names by using the SAS column name normalization rules. (For more information, see VALIDVARNAME= System Option.) However, the data source applies its specific normalization rules to the SAS column names when it creates the column names.
specifies that column names that are used in table creation are passed to the data source with special characters and the exact, case-sensitive spelling of the name preserved.
proc sql dquote=ansi; select "Total$Cost" from mydblib.mytable;
proc print data=mydblib.mytable; format 'Total$Cost'n 22.2;
libname mydblib fedsvr server="d1234.us.company.com" port=2171 user=user1 pwd=pass1 dsn=oradsn dsnuser=orauser dsnpwd=orapwd; proc sql dquote=ansi; create table mydblib.mytable (preserve_col_names=yes) ("my$column" int);