title: I'm getting an error that says my random_number variable doesn't exist. Any advice on what I should do to create it?
body: <p>I'm working on homework and I need to take random observations from a data set. I am trying to create the random data set based on my teacher's coding instructions but I keep getting an error saying my random_number variable does not exist. I have posted an image of my code. Do I need to create the variable or make a proc sort for it?
  <a href="https://i.stack.imgur.com/Z5lSn.png" rel="nofollow noreferrer">Code</a></p>
  <p>Here are the error logs:</p>
  <p>434  proc print data= random_sample (obs=100);
  435      var id country year random_number pr cl;
  ERROR: Variable RANDOM_NUMBER not found.
  436  run;</p>
  <p>NOTE: The SAS System stopped processing this step because of errors.
  NOTE: PROCEDURE PRINT used (Total process time):
  real time           0.00 seconds
  cpu time            0.00 seconds</p>