Search code examples
sassas-macroenterprise-guide

After creating a prompt in Enterprise Guide, how can I see the macro variables the prompt creates?


It would be nice to know how to reference the macro variables in other tasks/code nodes.


Solution

  • You could take a snapshot of SASHELP.VMACRO (macro variable dictionary table):

    data macs;
      set sashelp.vmacro;
    run;
    

    This can be handy if, for example, you want to compare the macro variables present at one point in a process versus those present at another point:

    data macs_before;
      set sashelp.vmacro;
    run;
    
    ...
    ... /* Other stuff here... */
    ...
    
    data macs_after;
      set sashelp.vmacro;
    run;