Data visualization with SAS programming

Error Message - Graphs

Reply
New User
Posts: 1

Error Message - Graphs

What am I entering wrong in the following?  I am trying to make a graph of factor 2 vs factor 1 and factor 3 vs factor 1

 

 

386 proc plot;

387 plot factor2*factor1=brand factor3*factor1=brand;

ERROR: Variable FACTOR2 not found.

ERROR: Variable FACTOR1 not found.

ERROR: Variable BRAND not found.

ERROR: Variable FACTOR3 not found.

ERROR: Variable FACTOR1 not found.

ERROR: Variable BRAND not found.

 

 

Trusted Advisor
Posts: 1,825

Re: Error Message - Graphs

Posted in reply to allison93

You missed to write the dataset to be used.

Without data the variables are unknown.

 

The syntax should be like:

proc plot data=<my_data> <more options> ;

 

Super User
Posts: 22,823

Re: Error Message - Graphs

Posted in reply to allison93
PROC PLOT is still supported? I would suggest trying PROC SGPLOT instead, but the syntax is different.
Ask a Question
Discussion stats
  • 2 replies
  • 120 views
  • 0 likes
  • 3 in conversation