title: SAS, create filename from dataset column
body: <p>is it possible to create a filename from a value stored in a dataset column? What i'm after is something like:</p>
  
  <pre><code>/* 
     other code here, assume work.users looks like 
     user_id
     ImageData
   */
  
  data _null_;
     set work.users;
  
     file_name=cat('/home/me/', trim(user_id), '.jpg');
  
     file file_name NOPRINT;
  
     put ImageData;
  run;
  </code></pre>
  
  <p>at the moment i'm trying to do it with macros but i'm not having any luck.</p>