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.

300 DBFORCE= Data Set Option 4 Chapter 11SyntaxDBCREATE_TABLE_OPTS=’DBMS-SQL-clauses’Syntax DescriptionDBMS-SQL-clausesare one or more DBMS-specific clauses that can be appended at the end of an SQLCREATE TABLE statement.DetailsYou can use this option to add DBMS-specific clauses at the end of the SQL CREATETABLE statement. The <strong>SAS</strong>/<strong>ACCESS</strong> engine passes the SQL CREATE TABLEstatement and its clauses to the DBMS. The DBMS then executes the statement andcreates the DBMS table. This option applies only when you are creating a DBMS tableby specifying a libref associated with DBMS data.If you are already using the DBTYPE= data set option within an SQL CREATETABLE statement, you can also use it to include column modifiers.ExampleIn this example, the DB2 table TEMP is created with the value of theDBCREATE_TABLE_OPTS= option appended to the CREATE TABLE statement.libname mydblib db2 user=testuserpwd=testpass dsn=sample;data mydblib.temp (DBCREATE_TABLE_OPTS=’PARTITIONINGKEY (X) USING HASHING’);x=1; output;x=2; output;run;When you use this data set option to create the DB2 table, the <strong>SAS</strong>/<strong>ACCESS</strong>interface to DB2 passes this DB2 SQL statement:CREATE TABLE TEMP (X DOUBLE) PARTITIONINGKEY (X) USING HASHINGSee AlsoTo assign this option to a group of relational DBMS tables or views, see the“DBCREATE_TABLE_OPTS= LIBNAME Option” on page 124.“DBTYPE= Data Set Option” on page 319DBFORCE= Data Set OptionSpecifies whether to <strong>for</strong>ce data truncation during insert processing.Default value: NO

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

Saved successfully!

Ooh no, something went wrong!