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
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.