09-13-2015 07:29 AM
I am new to SAS.
I would like to view the values of calculation using the variables in my dataset.
I want to view the values of X/Y. What is the easiest to do it in SAS?
09-13-2015 10:31 AM
Input your variables into a SAS table with a data statement and an input statement;
To show the table use proc print; with a run statement after it.
input x y;
proc print; run;
09-14-2015 02:24 PM
You can also display the values in the middle of a datastep
data one; input x y; z = x / y; put x= y= z=; * label each with the name; put x y z; * just the values ; put _all_; * list all variables with names, including system variables; cards; 1 2 5 6 ; proc print; run;