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.

<strong>SAS</strong>/<strong>ACCESS</strong> Interface to Greenplum 4 Naming Conventions <strong>for</strong> Greenplum 5473 BL_REJECT_LIMIT=3 BL_REJECT_TYPE=3 BL_USE_PIPE=3 BULKLOAD=ExamplesThis first example shows how you can use a <strong>SAS</strong> data set, <strong>SAS</strong>FLT.FLT98, to createand load a large Greenplum table, FLIGHTS98.libname sasflt ’<strong>SAS</strong>-data-library’;libname mydblib greenplm host=iqsvr1 server=iqsrv1_usersdb=users user=iqusr1 password=iqpwd1;proc sql;create table net_air.flights98(bulkload=YES )as select * from sasflt.flt98;quit;This next example shows how you can append the <strong>SAS</strong> data set, <strong>SAS</strong>FLT.FLT98, tothe existing Greenplum table ALLFLIGHTS. The BL_USE_PIPE=NO option <strong>for</strong>ces<strong>SAS</strong>/<strong>ACCESS</strong> Interface to Greenplum to write data to a flat file, as specified in theBL_DATAFILE= option. Rather than deleting the data file,BL_DELETE_DATAFILE=NO causes the engine to leave it after the load has completed.proc append base=new_air.flights98(BULKLOAD=YESBL_DATAFILE=’/tmp/fltdata.dat’BL_USE_PIPE=NOBL_DELETE_DATAFILE=NO)data=sasflt.flt98;run;Naming Conventions <strong>for</strong> GreenplumFor 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.Since <strong>SAS</strong> 7, most <strong>SAS</strong> names can be up to 32 characters long. <strong>SAS</strong>/<strong>ACCESS</strong>Interface to Greenplum supports table names and column names that contain up to 32characters. If DBMS column names are longer than 32 characters, they are truncatedto 32 characters. If truncating a column name results in identical names, <strong>SAS</strong>generates a unique name by replacing the last character with a number. DBMS tablenames must be 32 characters or less because <strong>SAS</strong> does not truncate a longer name. Ifyou already have a table name that is greater than 32 characters, it is recommendedthat you create a table view.The PRESERVE_COL_NAMES= and PRESERVE_TAB_NAMES= options determinehow <strong>SAS</strong>/<strong>ACCESS</strong> Interface to Greenplum handles case sensitivity. (For in<strong>for</strong>mationabout these options, see “Overview of the LIBNAME Statement <strong>for</strong> <strong>Relational</strong><strong>Databases</strong>” on page 87.) Greenplum is not case sensitive, so all names default tolowercase.Greenplum objects include tables, views, and columns. They follow these namingconventions.

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

Saved successfully!

Ooh no, something went wrong!