title: SAS - results of %let and libname combinations
body: <p>I'm currently learning SAS and I got a code to be adapted and reused but first I have to understand it. My question is about just a small part of it (top of the code). Here it is:</p>
  
  <pre><code>%let dir=/home/user/PROJECT/CODES/;
  %let dir_project=/home/user/PROJECT/;
  
  libname inp "&amp;dir_project" compress=yes;
  libname out "&amp;dir.out" compress=yes;
  
  %let tg=out.vip;
  </code></pre>
  
  <p>My questions are:</p>
  
  <ol>
  <li>What does &amp;dir.out mean? What is it referring to? I suppose it's something called "out". Is it looking for a database OUT? If yes and all my databases are usually temporary ones in WORK should I change it to WORK.OUT?</li>
  <li>What is the resulting path of "tg"? I doubt that it is: "/home/user/PROJECT/CODES/out.vip".</li>
  </ol>
  
  <p>Originally the code was referring to some locations on C: drive but I work entirely in SAS Studio so I have to adapt it.</p>
  
  <p>Thank you in advance </p>