title: SAS macro variable invalid option name
body: <p>I created a macro variable &amp;dirLSB,
  and I set up its path with the code below:</p>
  
  <pre><code>%let dirLSB = "/folders/myfolders/LSB/"; 
  
  libname FLOWER &amp;dirLSB; *Worked!;
  
  data FLOWER.magnolia; 
  
  infile "&amp;dirLSB.Mag.dat";
  
  input ScientificName $ 1-14 CommonName $ 16-32 MaximumHeight AgeBloom 
  
  Type $ Color $; run; 
  
  proc print data=FLOWER.magnolia; title "Magnolias"; run;
  </code></pre>
  
  <p>It looked like a simple reading -in the data set,
  however, I encountered the error such as below:</p>
  
  <pre><code>    1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
   72         
   73         data FLOWER.magnolia;
   74         infile "&amp;dirLSB.Mag.dat";
   NOTE: Line generated by the macro variable "DIRLSB".
   74          ""/folders/myfolders/LSB/"Mag.dat
                 _
                 23
   ERROR 23-2: Invalid option name /.
  
   74       !  ""/folders/myfolders/LSB/"Mag.dat
                  _______
                  23
   ERROR 23-2: Invalid option name FOLDERS.
  
   74       !  ""/folders/myfolders/LSB/"Mag.dat
                          _________
                          23
   ERROR 23-2: Invalid option name MYFOLDERS.
  
   74       !  ""/folders/myfolders/LSB/"Mag.dat
                                    ___
                                    23
   ERROR 23-2: Invalid option name LSB.
  
   75         input ScientificName $ 1-14 CommonName $ 16-32 MaximumHeight
   76               AgeBloom Type $ Color $;
   77         run;
  
   NOTE: The SAS System stopped processing this step because of errors.
   WARNING: The data set FLOWER.MAGNOLIA may be incomplete.  When this step was stopped there were 0 observations and 6 variables.
   WARNING: Data set FLOWER.MAGNOLIA was not replaced because this step was stopped.
   NOTE: DATA statement used (Total process time):
         real time           0.03 seconds
         cpu time            0.02 seconds
  
  
   78         
   79         proc print data=FLOWER.magnolia;
   80             title "Magnolias";
   81             run;
  
   NOTE: No observations in data set FLOWER.MAGNOLIA.
   NOTE: PROCEDURE PRINT used (Total process time):
         real time           0.01 seconds
         cpu time            0.00 seconds
  
  
   82         
   83         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
   96         
  </code></pre>
  
  <p>I set up "LSB" in the "folder shortcuts" first,
  and then I checked its property and realized its path
  as "/folders/myfolders/LSB/" and then I changed the code.
  It was successful I created a library named "FLOWER",
  hence, I did not manage to understand what I had gone wrong.</p>
  
  <p>Thank you very much!!!</p>