On the surface, this looks like a possible licensing issue with the SAS/Graph product. I would follow up with Technical Support to be sure.
I agree with @DanH_sas . Check your product license/install with:
proc product_status; run;
And see if SAS/GRAPH is detected.
You can create histograms with PROC UNIVARIATE and other SAS procedures using ODS GRAPHICS, and that does not require SAS/GRAPH.
ods graphics on;
Proc univariate data = test;
Var variable1;
Histogram;
run;
Here is the correct syntax for your program:
Proc univariate data = test;
Var variable1;
Histogram;
run;
Note you don't use equals signs in the VAR statement. Now run this program and check your SAS log. Is it error-free? Check for any output. If you are getting text output but not graphic output it is possible that your ODS settings are not correct. Try adding this to your program:
ods HTML;
Proc univariate data = test;
Var variable1;
Histogram;
run;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.