Let's say, I have 3 variables that get their value through an if-else statement. For example - a=1,b=2,c=3........these values would vary based upon if-else condition creating a data set for these 3 variables should give an output like this - a b c 1 2 3 Now what I want to do is, run a loop where in each loop am hardcoding the value of one variable, and the table should look something like this a b c 1 ( as it is from if-else condition ) 2 ( as it is from if-else condition ) 3 ( as it is from if-else condition ) 99 ( hardcoded ) 2 ( as it is from if-else condition ) 3 ( as it is from if-else condition ) 1 ( as it is from if-else condition ) 85 (hardcoded) 3 ( as it is from if-else condition ) 1 ( as it is from if-else condition ) 2 ( as it is from if-else condition ) 33 (hardcoded) Now, if you look back at my original post, am trying to achieve something like this - Data Test; input a b c;
datalines;
a b c
99 b c a 85 c a b 33 proc print data = test; run; But datalines is not supporting variable values
... View more