Chapter Contents |
Previous |
Next |
CONTENTS |
Category: | Catalog and SAS Table |
Syntax | |
Details | |
Example |
Syntax |
rc=CONTENTS(SAS-table<,mode>); |
0 | The attributes of the specified table were displayed. |
0 | An error or warning condition occurred during the operation. |
Type: Numeric
rc=contents('work.one#003');
Type: Character
'B' |
displays the Properties window for browsing only. |
'E' |
allows information in
the Properties window to be modified. (This is the default.) If member-level
locking is not available, then the Properties window is displayed in BROWSE
mode instead.
Note: Any value that begins with a character
other than Type: Character |
Details |
The CONTENTS function
opens the Properties window, which enables an application
user to browse or modify column names, formats, informats, and labels of a
SAS table. By default, the Properties window is
opened in edit mode. However, if the specified table is currently open, then
you must specify B
for mode.
Initially, General Properties (that is, attributes, but not column names) are listed in the Properties window. To change the value of an attribute, do the following:
To change a column name, do the following:
Example |
Display the attributes for the table MYLIB.HOUSES:
if (contents('mylib.houses')) then do; _msg_=sysmsg(); ...SCL statements to handle case where contents cannot be displayed... end;
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.