LOCKTABLE=SHARED
and PATH_BIND=ACCESS
connection
options.
.sas7bdat
.
Option
|
Description
|
---|---|
DRIVER
|
DRIVER=BASE; Specifies the BASE data
service to establish connection to a SAS data set. DRIVER is a required
option.
|
CATALOG
|
CATALOG=catalog-name; Specifies an arbitrary identifier for an SQL catalog, which groups logically related schemas. A catalog name can be up to 32 characters
long. You must specify a catalog.
Note: SAS Federation Server automatically
quotes SQL identifiers that do not meet the regular naming convention
as defined in the SAS FedSQL Reference Guide.
|
(SCHEMA) NAME
|
NAME=schema-name; Specifies an arbitrary identifier for an SQL schema. The schema identifier is an alias
for the physical location of the SAS library,
which is much like the Base SAS libref. A schema name must be a valid SAS name and
can be up to 32 characters long. You must specify a schema.
|
PRIMARY PATH
|
PRIMARYPATH=physical-location; Required. Specifies
the physical location for the SAS library, which is a collection of
one or more SAS files. For example, in directory-based operating environments,
a SAS library is a group of SAS files that are stored in the same
directory.
|
SCHEMA ATTRIBUTES
|
SCHEMA=(attributes); Specifies schema attributes
that are specific to a SAS data set. A schema is a data container
object that groups tables. The schema contains a name, which is unique
within the catalog that qualifies table names. For a SAS data set,
a schema is similar to a SAS library, which is a collection of tables
with assigned attributes.
|
Option
|
Description
|
||||||
---|---|---|---|---|---|---|---|
ACCESS
|
ACCESS=READONLY
| TEMP;
READONLY
Assigns a read-only
attribute to the schema. You cannot open a SAS data set to update
or write new information.
TEMP
Specifies that the
SAS data sets be treated as scratch files. That is, the system will
not consume CPU cycles to ensure that the files do not become corrupted.
Use
ACCESS=TEMP to save resources only when
the data is recoverable. If TEMP is specified,
data in memory might not be written to disk on a regular basis. This
saves I/O, but could cause data loss if there is a crash.
|
||||||
CT_PRESERVE
|
CT_PRESERVE = STRICT | SAFE | FORCE | FORCE_COL_SIZE Allows users to control how data types are mapped. Note that data type mapping is disabled when CT_PRESERVE is set to STRICT. If the requested type does not exist on the target database, an error is returned. The options are as follows:
|
||||||
COMPRESS
|
COMPRESS=NO
| YES|CHAR | BINARY; Controls the compression
of rows in created SAS data sets.
NO
Specifies that the
rows in a newly created SAS data set are uncompressed (fixed-length
records). NO is the default.
YES | CHAR
Specifies that the
rows in a newly created SAS data set are compressed (variable-length
records) by using RLE (Run Length Encoding). RLE compresses rows by
reducing repeated consecutive characters (including blanks) to two-
or three-byte representations. Use this compression algorithm for
character data.
BINARY
Specifies that the
rows in a newly created SAS data set are compressed (variable-length
records) by using RDC (Ross Data Compression). RDC combines run-length
encoding and sliding-window compression to compress the file. This
method is highly effective for compressing medium to large (several
hundred bytes or larger) blocks of binary data (numeric columns).
Because the compression function operates on a single record at a
time, the record length must be several hundred bytes or larger for
effective compression.
|
||||||
DEFAULT_ATTR
|
DEFAULT_ATTR=(attr=value;...) Used to specify connection handle
or statement handle attributes supported for initial connect-time
configuration, where
attr=value corresponds
to any of the following options:
|
||||||
ENCODING
|
ENCODING=encoding-value; Overrides and transcodes
the encoding for input or output processing of SAS data sets.
Note: The default value is the
current operating system setting.
|
||||||
LOCKTABLE
|
LOCKTABLE=SHARED|EXCLUSIVE Places exclusive or
shared locks on SAS data sets. You can lock tables only if you are
the owner or have been granted the necessary privilege. The default
value is SHARED.
SHARED
Locks tables in shared
mode, allowing other users or processes to read data from the tables,
but preventing other users from updating.
EXCLUSIVE
Locks tables exclusively,
preventing other users from accessing any table that you open.
|
||||||
PATH_BIND
|
PATH_BIND=CONNECT|ACCESS Specifies when and how schemas are validated during connection. CONNECT validates
the entire connection string at the time of connection and returns an error if one
or more schemas is invalid.
ACCESS validates schemas when they are accessed so that processing continues regardless
of errors in the schema portion of the connection string. ACCESS is the default for
SAS Federation Server.
|
||||||
TIME_TYPE
|
TIME_TYPE=YES|NO Specifies the format used for date types. YES is the default behavior which returns
the date type as DATES. When NO is specified, date types are formatted as DOUBLES.
|