Reputation: 1447
Problem Description: when viewing a sas table in VIEWTABLE, the header for each column is default to show column description, how do I make it show column name instead?
I am using SAS version:9.3
What I did so far: I found the following solution online (This solution was tested on SAS 9.2)
VT SASHELP.VCOLUMN COLHEADING=NAMES
when I run this command I was given the following error
8713 VT SASHELP.VCOLUMN COLHEADING=NAMES
--
180
ERROR 180-322: Statement is not valid or it is used out of proper order.
The point and click version of the solution did not work for me either.
Upvotes: 3
Views: 4676
Reputation: 63424
That is a dm
command, so you need to submit it to DM:
dm 'VT SASHELP.VCOLUMN COLHEADING=NAMES';
You could also assign that command (what you have, in mine just the part within the quotes) in KEYS ('keys' in the command bar). You also can do this on a case by case basis in the VIEW menu once you've opened the dataset.
The way to do this permanently:
VIEWTABLE %8b."%s".DATA COLHEADING=NAMES
after you finish).This will only persist if save settings on exit is enabled in the preferences (tools-options-preferences) and this is not an rsasuser
session (read-only access to user profiles).
Upvotes: 6