SAS Component Language Dictionary |
Category: | Variable |
Syntax | |
Details | |
Example | |
See Also |
Syntax |
sysrc=MODVAR(table-id,var-name,new-name<,label <,format<,informat>>>); |
contains the return code for the operation:
0 | |
0 |
is the identifier that was assigned when the table was opened. If table-id is invalid, the program halts.
is the column whose attribute or attributes you want to change. The column must already exist in the SAS table.
is the new name to assign to the column. The value must be a valid SAS name and cannot already exist in the SAS table.
Details |
The table must be opened in UTILITY (V) mode, or the function halts.
If you do not want to change an argument, insert a null string ('' ) as a placeholder.
Example |
Change only the label for the column PHONENUM in the SAS table CUSTOMR:
dsid=open('customr','v'); if dsid then do; rc=modvar(dsid,'phonenum','','Office Phone'); rc=close(dsid); end;
See Also |
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.