<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SYSLAST macro in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SYSLAST-macro/m-p/537492#M33101</link>
    <description>Hi, 
         
               
What is really happening is that the value EG was setting to SYSLAST when I explicitly link a data set to a program in a process flow. 
EG in setting the SYSLAST macro to the linked data set.  Because of this I am getting the following error. 
ERROR: Invalid option value IDATASET.'TABLE'n for SAS option _LAST_.           
             
If I don't link the dataset to the program in a process flow, the program runs without any errors.                

This is the error I am getting. 
ERROR: Invalid option value LIBRARY.'DATASET'n for SAS option _LAST_.</description>
    <pubDate>Thu, 21 Feb 2019 18:50:50 GMT</pubDate>
    <dc:creator>ismahero2</dc:creator>
    <dc:date>2019-02-21T18:50:50Z</dc:date>
    <item>
      <title>SYSLAST macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SYSLAST-macro/m-p/537492#M33101</link>
      <description>Hi, 
         
               
What is really happening is that the value EG was setting to SYSLAST when I explicitly link a data set to a program in a process flow. 
EG in setting the SYSLAST macro to the linked data set.  Because of this I am getting the following error. 
ERROR: Invalid option value IDATASET.'TABLE'n for SAS option _LAST_.           
             
If I don't link the dataset to the program in a process flow, the program runs without any errors.                

This is the error I am getting. 
ERROR: Invalid option value LIBRARY.'DATASET'n for SAS option _LAST_.</description>
      <pubDate>Thu, 21 Feb 2019 18:50:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SYSLAST-macro/m-p/537492#M33101</guid>
      <dc:creator>ismahero2</dc:creator>
      <dc:date>2019-02-21T18:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: SYSLAST macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SYSLAST-macro/m-p/537507#M33102</link>
      <description>&lt;P&gt;You don't show enough of the code/log to know exactly but I bet it is related to quoting and can be fixed with %UNQUOTE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27336i1ACFA071E309F948/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 19:44:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SYSLAST-macro/m-p/537507#M33102</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2019-02-21T19:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: SYSLAST macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SYSLAST-macro/m-p/537949#M33128</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/3008"&gt;@ismahero2&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you noted, EG sets the SYSLAST macro variable when you draw an explicit link to a program.&amp;nbsp; You can see this by inspecting your log.&amp;nbsp; You'll see a line similar to this near the top of your program log:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3 %LET SYSLAST=WORK.MYCLASS;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This provides a convenient alternative to hard-coding input data in your program.&amp;nbsp; Rather than hard-coding your input table, you can use &amp;amp;SYSLAST macro variable references in your code and then whatever data node you link to the program in the process flow will be used as input to your program.&amp;nbsp; This also makes it easy to change the input data to your program without having to change the code...&amp;nbsp; just link a different data set node to the program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have not been able to reproduce any problems that resemble what you describe.&amp;nbsp; Please provide steps to reproduce, what version of EG you are using (in EG's Help-&amp;gt;About), and the SAS server version you are running against (the %put &amp;amp;sysvlong; output in your SAS log).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is what I tried (using EG 7.15 HF7 against a SAS 9.4M3 server):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;First I submitted the following code to created two data sets in my project, one with a standard name and one with an extended name:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data myclass;
set sashelp.class;
run;

data 'my class'n;
set sashelp.class;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;Then, I created two additional program nodes with this code:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put &amp;amp;sysvlong;
%put &amp;amp;syslast;

proc options option=_last_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;Then, in the process flow I explicitly linked the MYCLASS data node to one of the programs and the "My CLASS" data node to the other program.&amp;nbsp; (Note: You can explicitly link nodes in the process flow by hovering near the right of the source node icon until the cursor turns into crosshairs, then drag the line to the node you wish to link to, or you can right-click the source node, select the "Link to..." context menu, and choose the node you wish to link to.)&lt;/LI&gt;
&lt;LI&gt;Finally, I ran the two programs that I linked the data nodes to and inspected their logs.&amp;nbsp; The output for both (below) was as expected, with no errors:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;32         %put &amp;amp;sysvlong;
9.04.01M3P062415
33         %put &amp;amp;syslast;
WORK.MYCLASS
34         
35         proc options option=_last_;
36         run;

    SAS (r) Proprietary Software Release 9.4  TS1M3

 _LAST_=WORK.MYCLASS
                   Specifies the most recently created data set.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;32         %put &amp;amp;sysvlong;
9.04.01M3P062415
33         %put &amp;amp;syslast;
WORK.'MY CLASS'n
34         
35         proc options option=_last_;
36         run;

    SAS (r) Proprietary Software Release 9.4  TS1M3

 _LAST_=WORK.MY CLASS
                   Specifies the most recently created data set.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;If you provide additional information (simple steps to reproduce and EG and SAS version information), I'll be happy to take a look.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Casey&lt;/P&gt;</description>
      <pubDate>Sat, 23 Feb 2019 09:49:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SYSLAST-macro/m-p/537949#M33128</guid>
      <dc:creator>CaseySmith</dc:creator>
      <dc:date>2019-02-23T09:49:27Z</dc:date>
    </item>
  </channel>
</rss>

