Hi @AbhilashS and welcome to the SAS Support Communities!
You can create the dataset as PaigeMiller suggested or, e.g., like this:
data have;
hours=4+_n_;
input n @@;
cards;
3 8 20 11 6 2
;
Then apply PROC UNIVARIATE to dataset HAVE using the FREQ statement
freq n;
(or freq frequency; if you used this variable name in the INPUT statement) to compute the statistics.
Alternatively, create the dataset with only one variable (hours), but with 50 observations rather than 6, and then omit the FREQ statement in the analysis:
data have;
hours=4+_n_;
input _n_ @@;
do _n_=1 to _n_;
output;
end;
cards;
3 8 20 11 6 2
;