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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>SAS</strong>/<strong>ACCESS</strong> Interface to Sybase 4 Example 747DECIMALFLOATBITExamplesThe following are examples of generated SELECT statements involving variouscolumn data types:COL1 is numeric, decimal, or float. This example uses three threads (the default)and COL1 is NOT NULL.select * from DBTAB where (abs(convert(INTEGER, COL1)))%3=0select * from DBTAB where (abs(convert(INTEGER, COL1)))%3=1select * from DBTAB where (abs(convert(INTEGER, COL1)))%3=2COL1 is bit, integer, smallint, or tinyint. This example uses two threads (the default)and COL1 is NOT NULL.select * from DBTAB where (abs(COL1))%3=0select * from DBTAB where (abs(COL1))%3=1COL1 is and integer and is nullable.select * from DBTAB where (abs(COL1))%3=0 OR COL1 IS NULLselect * from DBTAB where (abs(COL1))%3=1Temporary Table Support <strong>for</strong> SybaseOverviewFor general in<strong>for</strong>mation about this feature, see “Temporary Table Support <strong>for</strong> <strong>SAS</strong>/<strong>ACCESS</strong>” on page 38.Establishing a Temporary TableWhen you specify CONNECTION=GLOBAL, you can reference a temporary tablethroughout a <strong>SAS</strong> session, in both DATA steps and procedures. The name of the tableMUST start with the character ’#’. To reference it, use the <strong>SAS</strong> convention of an nliteral, as in mylib.’#foo’n.Terminating a Temporary TableYou can drop a temporary table at any time, or allow it to be implicitly dropped whenthe connection is terminated. Temporary tables do not persist beyond the scope of asinge connection.ExampleThe following example demonstrates how to use temporary tables:

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

Saved successfully!

Ooh no, something went wrong!