To see how each DICTIONARY table is defined, submit
a DESCRIBE TABLE statement. This example shows the definition of DICTIONARY.TABLES:
proc sql;
describe table dictionary.tables;
The results are written
to the SAS log.
Definition of DICTIONARY.TABLES
NOTE: SQL table DICTIONARY.TABLES was created like:
create table DICTIONARY.TABLES
(
libname char(8) label='Library Name',
memname char(32) label='Member Name',
memtype char(8) label='Member Type',
dbms_memtype char(32) label='DBMS Member Type',
memlabel char(256) label='Data Set Label',
typemem char(8) label='Data Set Type',
crdate num format=DATETIME informat=DATETIME label='Date Created',
modate num format=DATETIME informat=DATETIME label='Date Modified',
nobs num label='Number of Physical Observations',
obslen num label='Observation Length',
nvar num label='Number of Variables',
protect char(3) label='Type of Password Protection',
compress char(8) label='Compression Routine',
encrypt char(8) label='Encryption',
npage num label='Number of Pages',
filesize num label='Size of File',
pcompress num label='Percent Compression',
reuse char(3) label='Reuse Space',
bufsize num label='Bufsize',
delobs num label='Number of Deleted Observations',
nlobs num label='Number of Logical Observations',
maxvar num label='Longest variable name',
maxlabel num label='Longest label',
maxgen num label='Maximum number of generations',
gen num label='Generation number',
attr char(3) label='Data Set Attributes',
indxtype char(9) label='Type of Indexes',
datarep char(32) label='Data Representation',
sortname char(8) label='Name of Collating Sequence',
sorttype char(4) label='Sorting Type',
sortchar char(8) label='Charset Sorted By',
reqvector char(24) format=$HEX48 informat=$HEX48 label='Requirements Vector',
datarepname char(170) label='Data Representation Name',
encoding char(256) label='Data Encoding',
audit char(8) label='Audit Trail Active?',
audit_before char(8) label='Audit Before Image?',
audit_admin char(8) label='Audit Admin Image?',
audit_error char(8) label='Audit Error Image?',
audit_data char(8) label='Audit Data Image?',
num_character num label='Number of Character Variables',
num_numeric num label='Number of Numeric Variables'
);
Similarly, you can use the DESCRIBE VIEW statement in PROC SQL to
determine how a SASHELP view is defined. Here is an example:
proc sql;
describe view sashelp.vtable;
Description of SASHELP.VTABLE
NOTE: SQL view SASHELP.VSTABVW is defined as:
select libname, memname, memtype
from DICTIONARY.MEMBERS
where (memtype='VIEW') or (memtype='DATA')
order by libname asc, memname asc;