![]() Chapter Contents |
![]() Previous |
![]() Next |
| SAS/ACCESS Software for Relational Databases: Reference |
In Version 8 of the SAS/ACCESS Interface to SYBASE, you can do the following:
If you are using Version 6 of the SAS/ACCESS Interface to SYBASE, you can do the following:
Note: In Version 6, you cannot use
access descriptors created in Version 8, and you cannot use view descriptors
created in Version 8 that are based on Version 8 access descriptors. ![[cautionend]](../common/images/cautend.gif)
| ACCESS Procedure Statements for SYBASE |
Database description statements are required only when you create access descriptors. Because DBMS information is stored in an access descriptor, you do not need to repeat this information when you create view descriptors.
The SAS/ACCESS Interface to SYBASE uses the following procedure statements in interactive line, noninteractive, or batch mode.
PROC ACCESS <accdesc-options|viewdesc-options>;
|
Note: SYBASE is a case-sensitive database.
Any DBMS objects that were created with lowercase names or whose names contain
special characters must be enclosed in quotation marks. See Case Sensitivity in SYBASE for more
information. ![[cautionend]](../common/images/cautend.gif)
If you omit a user name, the default action for your operating system occurs. INTERFACE= is not used in some operating environments. Contact your DBA to see whether this statement applies to your computing environment.
PASSWORD= can also be specified with the PASS= and SYBPW= aliases.
If you omit a server name, the default action for your operating system occurs. On UNIX systems, the value of the environment variable DSQUERY is used if it has been set.
The specified buffer size can be between 1 and 32,767 rows. If you omit this statement, no data is written to the buffer.
SYBBUFSZ= can also be specified with the SYBBUF= aliases.
| ACCESS Procedure Example |
SYBASE is a case-sensitive database. The PROC ACCESS database identification statements and the SYBASE column names in all of the statements except SUBSET are converted to uppercase unless the names are enclosed in quotation marks. The SUBSET statements are passed to SYBASE exactly as you type them, so you must use the correct case for the SYBASE column names.
libname vlib 'sas-data-library';
proc access dbms=sybase;
create work.employee.access;
server='server1';
database='personnel';
user='testuser1';
password='testpass1';
table=EMPLOYEES;
create vlib.emp_acc.view;
select all;
format empid 6.;
subset where DEPT like 'ACC%';
run;
proc access dbms=sybase;
create work.invoice.access;
server='server2';
database='inventory';
user='testuser2';
password='testpass2';
table=INVOICE;
rename invoicenum=invnum;
format invoicenum 6. billedon date9.
paidon date9.;
create vlib.sainv.view;
select all;
subset where COUNTRY in ('Argentina','Brazil');
run;
options linesize=120;
title 'South American Invoices and
Who Submitted Them';
proc sql;
select invnum, country, billedon, paidon,
billedby, lastname, firstnam
from vlib.emp_acc, vlib.sainv
where emp_acc.empid=sainv.billedby;
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.