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

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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
  • 922 views
  • 0 likes
  • 4 in conversation