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.

The LIBNAME Statement <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong> 4 MODE= LIBNAME Option 159DetailsIf you omit MAX_CONNECTS=, the default <strong>for</strong> the maximum number of connections is25. Note that increasing the number of connections has a direct impact on memory.MODE= LIBNAME OptionSpecifies whether the connection to Teradata uses the ANSI mode or the Teradata mode.Default value: ANSIValid in: <strong>SAS</strong>/<strong>ACCESS</strong> LIBNAME statementDBMS support: TeradataSyntaxMODE=TERADATA | ANSISyntax DescriptionTERADATAspecifies that <strong>SAS</strong>/<strong>ACCESS</strong> opens Teradata connections in Teradata mode.ANSIspecifies that <strong>SAS</strong>/<strong>ACCESS</strong> opens Teradata connections in ANSI mode.DetailsThis option allows opening of Teradata connections in the specified mode. Connectionsthat are opened with MODE=TERADATA use Teradata mode rules <strong>for</strong> all SQL requeststhat are passed to the Teradata DBMS. This impacts transaction behavior and cancause case insensitivity when processing data.During data insertion, not only is each inserted row committed implicitly, butrollback is not possible when the error limit is reached if you also specify ERRLIMIT=.Any update or delete that involves a cursor does not work.ANSI mode is recommended <strong>for</strong> all features that <strong>SAS</strong>/<strong>ACCESS</strong> supports, whileTeradata mode is recommended only <strong>for</strong> reading data from Teradata.ExamplesThis example does not work because it requires the use of a cursor.libname x teradata user=prboni pw=XXXX mode=teradata;/* Fails with "ERROR: Cursor processing is not allowed in Teradata mode." */proc sql;update x.testset i=2;quit;This next example works because the DBIDIRECTEXEC= system option sends thedelete SQL directly to the database without using a cursor.

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

Saved successfully!

Ooh no, something went wrong!