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
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
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.