<?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: Plz help me with this code of macro urgent!!! in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Plz-help-me-with-this-code-of-macro-urgent/m-p/47210#M12640</link>
    <description>Hello Parashar,&lt;BR /&gt;
&lt;BR /&gt;
You enclosed the range between single quotes. If you proceed this way, the range variable will not be resolved. You have to enclose the range between double quotes.&lt;BR /&gt;
&lt;BR /&gt;
Does it solve the problem?&lt;BR /&gt;
&lt;BR /&gt;
Yoba</description>
    <pubDate>Sun, 21 Jun 2009 18:46:20 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-06-21T18:46:20Z</dc:date>
    <item>
      <title>Plz help me with this code of macro urgent!!!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Plz-help-me-with-this-code-of-macro-urgent/m-p/47209#M12639</link>
      <description>I have to extract data from excel sheets iif I use this procedure it works fine&lt;BR /&gt;
but I have to create a mackro for this so that I can extract data from diffrent sheets and need not copy paiste all code again and again  but when I execute macro it produces the same output data set with new name which I have given. plz help me with this urgently. Thanks in advance.&lt;BR /&gt;
&lt;BR /&gt;
PROC IMPORT OUT=S11515&lt;BR /&gt;
DATAFILE="G:\sa sas BI\sd\Complete Spreadsheet 10 Asthma patients.xls" &lt;BR /&gt;
DBMS=EXCEL2000 REPLACE;&lt;BR /&gt;
     SHEET="'Subject Demo$'";&lt;BR /&gt;
     GETNAMES=YES;&lt;BR /&gt;
     RANGE='a2:f32';&lt;BR /&gt;
     MIXED=YES;&lt;BR /&gt;
     SCANTEXT=YES;&lt;BR /&gt;
     USEDATE=YES;&lt;BR /&gt;
     SCANTIME=YES;&lt;BR /&gt;
     &lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
options mprint mlogic symbolgen serror merror;&lt;BR /&gt;
%let ss="G:\sa sas BI\sd\Complete Spreadsheet 10 Asthma patients.xls";&lt;BR /&gt;
%macro datain(sht,rng);&lt;BR /&gt;
PROC IMPORT OUT=h11&lt;BR /&gt;
DATAFILE=&amp;amp;ss&lt;BR /&gt;
DBMS=EXCEL2000 REPLACE;&lt;BR /&gt;
     SHEET="'&amp;amp;sht$'";&lt;BR /&gt;
     GETNAMES=YES;&lt;BR /&gt;
     RANGE='&amp;amp;rng';&lt;BR /&gt;
     MIXED=YES;&lt;BR /&gt;
     SCANTEXT=YES;&lt;BR /&gt;
     USEDATE=YES;&lt;BR /&gt;
     SCANTIME=YES;&lt;BR /&gt;
     RUN;&lt;BR /&gt;
%mend;&lt;BR /&gt;
&lt;BR /&gt;
%datain(History,A2:O22);</description>
      <pubDate>Sun, 21 Jun 2009 18:04:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Plz-help-me-with-this-code-of-macro-urgent/m-p/47209#M12639</guid>
      <dc:creator>Parashar</dc:creator>
      <dc:date>2009-06-21T18:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Plz help me with this code of macro urgent!!!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Plz-help-me-with-this-code-of-macro-urgent/m-p/47210#M12640</link>
      <description>Hello Parashar,&lt;BR /&gt;
&lt;BR /&gt;
You enclosed the range between single quotes. If you proceed this way, the range variable will not be resolved. You have to enclose the range between double quotes.&lt;BR /&gt;
&lt;BR /&gt;
Does it solve the problem?&lt;BR /&gt;
&lt;BR /&gt;
Yoba</description>
      <pubDate>Sun, 21 Jun 2009 18:46:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Plz-help-me-with-this-code-of-macro-urgent/m-p/47210#M12640</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-21T18:46:20Z</dc:date>
    </item>
  </channel>
</rss>

