<?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 Re: need to finish this by am, can't make it work in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/need-to-finish-this-by-am-can-t-make-it-work/m-p/56725#M12142</link>
    <description>Replace symgetn('es') with &amp;amp;es. if the macro variable can be resolved at compile time.</description>
    <pubDate>Tue, 26 Apr 2011 02:44:58 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2011-04-26T02:44:58Z</dc:date>
    <item>
      <title>need to finish this by am, can't make it work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/need-to-finish-this-by-am-can-t-make-it-work/m-p/56724#M12141</link>
      <description>This is part of my code, end_session is numeric&lt;BR /&gt;
&lt;BR /&gt;
I receive an error &lt;BR /&gt;
"Invalid number conversion on SYMGETN.", &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
%macro ADJUST;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
  data _null_; &lt;BR /&gt;
  set list1 ; &lt;BR /&gt;
  if id=1 then call symput('es',end_session);&lt;BR /&gt;
  run;&lt;BR /&gt;
&lt;BR /&gt;
data a;&lt;BR /&gt;
set temp (firstobs=1 obs=SYMGETn('es')) ;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
%let es=; &lt;BR /&gt;
&lt;BR /&gt;
%mend; &lt;BR /&gt;
%adjust&lt;BR /&gt;
&lt;BR /&gt;
%put _ALL_;&lt;BR /&gt;
%put adjust_session;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
NOTE: Line generated by the invoked macro "ADJUST".&lt;BR /&gt;
1                                                                                        data a;&lt;BR /&gt;
1    ! set temp (firstobs=1 obs=SYMGETn('es')) ; run;&lt;BR /&gt;
                                -------&lt;BR /&gt;
                                23&lt;BR /&gt;
MPRINT(ADJUST):   data a;&lt;BR /&gt;
ERROR: Invalid number conversion on SYMGETN.&lt;BR /&gt;
MPRINT(ADJUST):   set temp (firstobs=1 obs=SYMGETn('es')) ;&lt;BR /&gt;
MPRINT(ADJUST):   run;&lt;BR /&gt;
&lt;BR /&gt;
ERROR 23-7: Invalid value for the OBS option.&lt;BR /&gt;
&lt;BR /&gt;
NOTE: The SAS System stopped processing this step because of errors.</description>
      <pubDate>Tue, 26 Apr 2011 02:33:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/need-to-finish-this-by-am-can-t-make-it-work/m-p/56724#M12141</guid>
      <dc:creator>sasuser1000</dc:creator>
      <dc:date>2011-04-26T02:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: need to finish this by am, can't make it work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/need-to-finish-this-by-am-can-t-make-it-work/m-p/56725#M12142</link>
      <description>Replace symgetn('es') with &amp;amp;es. if the macro variable can be resolved at compile time.</description>
      <pubDate>Tue, 26 Apr 2011 02:44:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/need-to-finish-this-by-am-can-t-make-it-work/m-p/56725#M12142</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2011-04-26T02:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: need to finish this by am, can't make it work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/need-to-finish-this-by-am-can-t-make-it-work/m-p/56726#M12143</link>
      <description>Reeza, you are a genius! thanks so much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Tue, 26 Apr 2011 02:52:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/need-to-finish-this-by-am-can-t-make-it-work/m-p/56726#M12143</guid>
      <dc:creator>sasuser1000</dc:creator>
      <dc:date>2011-04-26T02:52:03Z</dc:date>
    </item>
  </channel>
</rss>

