<?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: Help with the following in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Help-with-the-following/m-p/49626#M10309</link>
    <description>Sorry I meant to reply with this&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
%macro ADJUST;&lt;BR /&gt;
data _null_; &lt;BR /&gt;
set list1 nobs=nobs; &lt;BR /&gt;
call symput('nobsI',compress(put(nobs,11.))); &lt;BR /&gt;
stop; &lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
%do I=1 %TO SYMBETn('nobsI');&lt;BR /&gt;
&lt;BR /&gt;
I still get an error:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
ERROR: Required operator not found in expression: SYMBETn('nobsI')&lt;BR /&gt;
ERROR: The %TO value of the %DO I loop is invalid.&lt;BR /&gt;
ERROR: The macro ADJUST will stop executing.</description>
    <pubDate>Wed, 13 Apr 2011 16:03:15 GMT</pubDate>
    <dc:creator>sasuser1000</dc:creator>
    <dc:date>2011-04-13T16:03:15Z</dc:date>
    <item>
      <title>Help with the following</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-the-following/m-p/49623#M10306</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
This is only part of the code but my main problem in the do loop, does someone knows what am I doing wrong?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
%macro ADJUST;&lt;BR /&gt;
data _null_; &lt;BR /&gt;
  set list1 nobs=nobs; &lt;BR /&gt;
  call symput('nobsI',compress(put(nobs,11.))); &lt;BR /&gt;
  stop; &lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
%do I=1 %TO SYMGETn('nobsI');&lt;BR /&gt;
.etc&lt;BR /&gt;
.etc&lt;BR /&gt;
.etc&lt;BR /&gt;
.&lt;BR /&gt;
&lt;BR /&gt;
This is the LOG:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
ERROR: Required operator not found in expression: SYMGETn('nobs')&lt;BR /&gt;
ERROR: The %TO value of the %DO I loop is invalid.&lt;BR /&gt;
ERROR: The macro ADJUST will stop executing.</description>
      <pubDate>Wed, 13 Apr 2011 15:27:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-the-following/m-p/49623#M10306</guid>
      <dc:creator>sasuser1000</dc:creator>
      <dc:date>2011-04-13T15:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help with the following</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-the-following/m-p/49624#M10307</link>
      <description>Hello&lt;BR /&gt;
SYMGET is a macro function used in the DATA STEP only.  I would just resolve your macro variable NOBS1 by substituting SYMBETn('oobs1') with &amp;amp;nobs1 and thata should do the trick.&lt;BR /&gt;
&lt;BR /&gt;
D</description>
      <pubDate>Wed, 13 Apr 2011 15:43:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-the-following/m-p/49624#M10307</guid>
      <dc:creator>darrylovia</dc:creator>
      <dc:date>2011-04-13T15:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help with the following</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-the-following/m-p/49625#M10308</link>
      <description>Hi Darrylovia!&lt;BR /&gt;
&lt;BR /&gt;
Thanks so much for answering&lt;BR /&gt;
&lt;BR /&gt;
but something went wrong when I did the changes, I think i didn't really understand what to change (I am kind of new in MACRO).&lt;BR /&gt;
&lt;BR /&gt;
Here are the changes I have done:&lt;BR /&gt;
&lt;BR /&gt;
%macro ADJUST;&lt;BR /&gt;
data _null_; &lt;BR /&gt;
  set list1 nobs=nobs; &lt;BR /&gt;
  call symbetn('nobs1',compress(put(nobs,11.))); &lt;BR /&gt;
  stop; &lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
%do I=1 %TO &amp;amp;nobs1 ;/*change  to total number of records in data6*/&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
LOG:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
  data _null_;   set list1 nobs=nobs;   call symbetn('nobs1',compress(put(nobs,11.)));   stop&lt;BR /&gt;
                                                  -------&lt;BR /&gt;
                                                  251&lt;BR /&gt;
1   ! ; run;&lt;BR /&gt;
&lt;BR /&gt;
ERROR 251-185: The subroutine SYMBETN is unknown, or cannot be accessed. Check your spelling.&lt;BR /&gt;
               Either it was not found in the path(s) of executable images, or there was&lt;BR /&gt;
               incorrect or missing subroutine descriptor information.</description>
      <pubDate>Wed, 13 Apr 2011 15:56:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-the-following/m-p/49625#M10308</guid>
      <dc:creator>sasuser1000</dc:creator>
      <dc:date>2011-04-13T15:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help with the following</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-the-following/m-p/49626#M10309</link>
      <description>Sorry I meant to reply with this&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
%macro ADJUST;&lt;BR /&gt;
data _null_; &lt;BR /&gt;
set list1 nobs=nobs; &lt;BR /&gt;
call symput('nobsI',compress(put(nobs,11.))); &lt;BR /&gt;
stop; &lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
%do I=1 %TO SYMBETn('nobsI');&lt;BR /&gt;
&lt;BR /&gt;
I still get an error:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
ERROR: Required operator not found in expression: SYMBETn('nobsI')&lt;BR /&gt;
ERROR: The %TO value of the %DO I loop is invalid.&lt;BR /&gt;
ERROR: The macro ADJUST will stop executing.</description>
      <pubDate>Wed, 13 Apr 2011 16:03:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-the-following/m-p/49626#M10309</guid>
      <dc:creator>sasuser1000</dc:creator>
      <dc:date>2011-04-13T16:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help with the following</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-the-following/m-p/49627#M10310</link>
      <description>Hello SASUser100,&lt;BR /&gt;
&lt;BR /&gt;
Please explain what value do you want to use as an upper limit in your %do loop?&lt;BR /&gt;
&lt;BR /&gt;
%do I=1 %TO &amp;amp;nobsI; will work correctly but is this what you need?&lt;BR /&gt;
&lt;BR /&gt;
Sincerely,&lt;BR /&gt;
SPR</description>
      <pubDate>Wed, 13 Apr 2011 17:48:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-the-following/m-p/49627#M10310</guid>
      <dc:creator>SPR</dc:creator>
      <dc:date>2011-04-13T17:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help with the following</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-the-following/m-p/49628#M10311</link>
      <description>Yes, this is what I need as an upper value, but SAS doesn't accept the code..</description>
      <pubDate>Wed, 13 Apr 2011 17:55:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-the-following/m-p/49628#M10311</guid>
      <dc:creator>sasuser1000</dc:creator>
      <dc:date>2011-04-13T17:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help with the following</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-the-following/m-p/49629#M10312</link>
      <description>Please give relevant code of you macro and error messages you got.&lt;BR /&gt;
&lt;BR /&gt;
SPR</description>
      <pubDate>Wed, 13 Apr 2011 17:57:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-the-following/m-p/49629#M10312</guid>
      <dc:creator>SPR</dc:creator>
      <dc:date>2011-04-13T17:57:45Z</dc:date>
    </item>
  </channel>
</rss>

