title: Transferring syntax to SAS EG and integrating prompts
body: <p>I've used this forum to gather information on creating and using prompts in SAS EG tasks and queries. However, I can't seem to transfer my own syntax from Base SAS, incorporate/reference prompts/macros I've created, and get it to work.</p>
  
  <p>Currently, everytime I reference a prompt in my own program (rather than one generated by point-click selections in SAS EG) the log tells me SAS can't resolve the macro reference.</p>
  
  <p>How can I transfer my own program into SAS EG and then integrate the prompts?</p>
  
  <p>Example code I used to develop test data set: </p>
  
  <pre><code>data work.testscores;
      input Gender $ 1-6 SATScore 8-11 IDNumber 13-20;
      datalines;
  Male   1170 61469897
  Female 1090 33081197
  Male   1240 68137597
  Female 1490  9589297
  Male   1200 93891897
  Female 1080 26212897
  Male   1050  8945097
  Female 1200 51799397
  Male   1600 39196697
  ;
  run;
  </code></pre>
  
  <p>/<em>created Genders prompt in the prompt manager using gender variable</em>/</p>
  
  <pre><code>PROC SQL;
      CREATE table WORK.testscores2 as
          SELECT &amp;Genders, SATScore
      FROM WORK.TESTSCORES
  ;
  QUIT;
  </code></pre>
  
  <p>Log:</p>
  
  <pre><code>102        PROC SQL;
  103           CREATE TABLE WORK.TESTSCORES2 AS
  104           SELECT &amp;Genders
  WARNING: Apparent symbolic reference GENDERS not resolved.
  104           SELECT &amp;Genders
                       _
                       22
  ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, 
                a numeric constant, a datetime constant, a missing value, BTRIM, INPUT, PUT, 
                SUBSTRING, USER.  
  
  105              FROM WORK.TESTSCORES;
  NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.
  106        QUIT;
  NOTE: The SAS System stopped processing this step because of errors.
  NOTE: PROCEDURE SQL used (Total process time):
        real time           0.00 seconds
        cpu time            0.00 seconds
  </code></pre>
  
  <p>Thanks,A</p>