BookmarkSubscribeRSS Feed
Matim
Obsidian | Level 7

Hello,

 

I'm working on a demo activity in SAS Studio and I read the instructions and explanations. After reading the instructions and explanations about each block of code in each statement, I ran the program and then I get one warning stating "Output 'control plot' was not created. Make sure that the output object name, label, or path is spelled correctly. Also, verify that the appropriate procedure options are used to produce the requested output object. For example, verify that the NOPRINT option is not used." and one error stating "Cannot find control level for effect Heating_QC." My code resembles the code viewed in the demo, but I got a warning and an error after running the program.  How can I resolve these issues? Any help will be greatly appreciated. Here is the code below for reference.

 

/*st102d03.sas*/
ods graphics;

ods select lsmeans diff diffplot controlplot;
proc glm data=STAT1.ameshousing3
               plots(only)=(diffplot(center) controlplot);
      class Heating_QC;
      model SalePrice=Heating_QC;
      lsmeans Heating_QC / pdiff=all
                                           adjust=tukey;
      lsmeans Heating_QC / pdiff=control('Average/Typical')
                                           adjust=dunnett;
      format Heating_QC $Heating_QC.;
      title "Post-Hoc Analysis of ANOVA - Heating Quality as Predictor";
run;
quit;

title;

 

 

1 REPLY 1
dhliakau
Calcite | Level 5

Hey, they failed to inform us that the values in the Heating_QC were formated, if you look at the dataset, there are no Average/Typical values present, if you use lsmeans Heating_QC / pdiff=control('TA')  the script is working properly.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

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!

Register now

Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1435 views
  • 0 likes
  • 2 in conversation