/* Sort the Products dataset by review_count in descending order */
proc sort data=Qed.Products;
by descending review_count;
run;
/* Print the top-most record (most reviewed product) */
data MostReviewedProduct;
set Qed.Products;
if _N_ = 1;
run;
/* Print the most reviewed product */
PROC PRINT DATA=MostReviewedProduct;
TITLE "Most Reviewed Product";
RUN;
/* Sort the Products dataset by review_count in ascending order */
proc sort data=Qed.Products;
by review_count;
run;
/* Print the top-most record (least reviewed product) */
data LeastReviewedProduct;
set Qed.Products;
if _N_ = 1;
run;
/* Print the least reviewed product */
PROC PRINT DATA=LeastReviewedProduct;
TITLE "Least Reviewed Product";
RUN;
/* Compare the most reviewed and least reviewed products */
data ProductComparison;
merge MostReviewedProduct (in=a) LeastReviewedProduct (in=b);
by _all_;
if a and b then do;
if review_count_1 < review_count_2 then do;
message = "Most reviewed product has fewer reviews than the least reviewed product.";
end;
else if review_count_1 > review_count_2 then do;
message = "Most reviewed product has more reviews than the least reviewed product.";
end;
else do;
message = "Most reviewed product has the same number of reviews as the least reviewed product.";
end;
end;
run;
/* Print the comparison result */
PROC PRINT DATA=ProductComparison;
var review_count_1 review_count_2 message;
title "Comparison Between Most Reviewed and Least Reviewed Products";
RUN;
HI THIS IS MY CODE AND THE COMPARISON TABLE IS EMPTY