Help using Base SAS procedures

Labelling "n" or "sum" as something else

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 117
Accepted Solution

Labelling "n" or "sum" as something else

Hi all,

I am using this proc print statement:

3904  proc print data=test_data noobs;

3905     var R1  Cat1 P1 N;

3907     where R1="ClientA";

3908  run;

When I get the table from this - I would like the column name "N" to be replaced by the words "Count of Clients"

How would I modify this code to achieve this?

Thanks!


Accepted Solutions
Solution
‎02-19-2013 03:46 PM
PROC Star
Posts: 7,480

Re: Labelling "n" or "sum" as something else

proc print data=test_data label noobs;

    var R1  Cat1 P1 N;

    where R1="ClientA";

    label n="Count of Clients";

run;

View solution in original post


All Replies
Solution
‎02-19-2013 03:46 PM
PROC Star
Posts: 7,480

Re: Labelling "n" or "sum" as something else

proc print data=test_data label noobs;

    var R1  Cat1 P1 N;

    where R1="ClientA";

    label n="Count of Clients";

run;

Frequent Contributor
Posts: 117

Re: Labelling "n" or "sum" as something else

something as simple as that? Thanks art - will try this now!

Super User
Posts: 5,513

Re: Labelling "n" or "sum" as something else

vomer,

Art's answer looks 100% correct.  Most likely, you added the LABEL statement, but forgot to add the word LABEL as part of the PROC statement.


🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 183 views
  • 3 likes
  • 3 in conversation