I would like to use column header as frq_-1 but it gives error for'-' ,Is there any way to use it on column statement in proc report.
Thanks you.
Hi Paddy
To clarify: your variable is called frq_-1??
You should be able to use it in a column statement by specifying
'frq_-1'n as the reference to that variable in the column statement.
If that's not what you were asking, let me know.
Hi Paddy
To clarify: your variable is called frq_-1??
You should be able to use it in a column statement by specifying
'frq_-1'n as the reference to that variable in the column statement.
If that's not what you were asking, let me know.
Hi:
In addition, no matter what your variables are named, you can always tell PROC REPORT to use some other string as the column header for the report:
proc report data=sashelp.class;
column name age height weight;
define name / display 'frq_-1';
define age / display 'xyz_-2';
run;
cynthia
Thank you
I think if it is a column header (column label) then you should not get any error. Could you please show us how you are applying this in a code
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.