BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
hjjijkkl
Pyrite | Level 9

How to I change "week" to capital letter "Week" in 

proc freq data=alld;
table Week / NOCUM plots=freqplot;
run;

week

Frequency

Percent

1

4

2

2

1

2

3

1

5

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26
proc freq data=alld;
table week / NOCUM plots=freqplot;
label week='Week';
run;
--
Paige Miller

View solution in original post

5 REPLIES 5
PaigeMiller
Diamond | Level 26
proc freq data=alld;
table week / NOCUM plots=freqplot;
label week='Week';
run;
--
Paige Miller
hjjijkkl
Pyrite | Level 9
That didn't change it. this is the output from the code above. it only changed the label for freq count to Weeks.

Weeks
week Frequency Percent
12 49 1
24 91 2
Norman21
Lapis Lazuli | Level 10

Like this?

 

data alld ;
input Week ;
datalines;
1
1
1
1
2
3
run;

proc freq data=alld;
tables Week / NOCUM plots=freqplot;
run;
Norman.
SAS 9.4 (TS1M6) X64_10PRO WIN 10.0.17763 Workstation

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 5 replies
  • 1392 views
  • 0 likes
  • 4 in conversation