Sybase
IQ has a special value called NULL. A Sybase IQ NULL value means an
absence of information and is analogous to a SAS missing value. When
SAS/ACCESS reads a Sybase IQ NULL value, it interprets it as a SAS
missing value.
You can define a column
in a Sybase IQ table so that it requires data. To do this in SQL,
you specify a column as NOT NULL. This tells SQL to allow only a
row to be added to a table if a value exists for the field. For example,
NOT NULL assigned to the CUSTOMER field in the SASDEMO.CUSTOMER table
does not allow a row to be added unless there is a value for CUSTOMER.
When creating a table with
SAS/ACCESS, you can use the DBNULL= data
set option to indicate whether NULL is a valid value for specified
columns.
You can also define
Sybase IQ columns as NOT NULL DEFAULT. For more information about
using the NOT NULL DEFAULT value, see your
Sybase IQ Reference
Manual.
Once you know whether
a Sybase IQ column enables NULLs or the host system supplies a default
value for a column that is defined as NOT NULL WITH DEFAULT, you can
write selection criteria and enter values to update a table. Unless
a column is defined as NOT NULL or NOT NULL DEFAULT, it allows NULL
values.
To
control how SAS missing character values are handled, use the NULLCHAR= and NULLCHARVAL= data set options.