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
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.