<?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: importing data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/importing-data/m-p/467392#M119310</link>
    <description>thanks...it works..</description>
    <pubDate>Mon, 04 Jun 2018 13:21:02 GMT</pubDate>
    <dc:creator>katkarparam</dc:creator>
    <dc:date>2018-06-04T13:21:02Z</dc:date>
    <item>
      <title>importing data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/importing-data/m-p/467359#M119301</link>
      <description>&lt;P&gt;Read multiple file at a time?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a piece of code. But it will read sheet one by one. i mean i have to call the macro with my particular sheet name.&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there another way i can read all sheet at a time and create one dataset?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%Macro&amp;nbsp; Due_Cal(sheet);&lt;/P&gt;&lt;P&gt;Proc import out= Due_date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Datafile = 'E:\Bank Data Model\project bank\Loan_Congo_Banking.xls'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dbms = Excel;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sheet = "&amp;amp;sheet";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Getnames = yes;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%mend&amp;nbsp;&amp;nbsp; Due_Cal;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;% Due_Cal (Kinshasa);&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 12:15:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/importing-data/m-p/467359#M119301</guid>
      <dc:creator>katkarparam</dc:creator>
      <dc:date>2018-06-04T12:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: importing data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/importing-data/m-p/467363#M119304</link>
      <description>&lt;P&gt;Are all the sheets in the excel file the same format?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you save your .xls file as .xlsx file?&lt;/P&gt;
&lt;P&gt;What sas version do you use?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your input was a .xlsx file and all your sheets the same format then you could use a code like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname myxl xlsx '&amp;lt;path and name&amp;gt;.xlsx';  

data want;
  set myxl.&amp;lt;sheet1_name&amp;gt;
      myxl.&amp;lt;sheet2_name&amp;gt;
     ...
 ; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 12:32:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/importing-data/m-p/467363#M119304</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2018-06-04T12:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: importing data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/importing-data/m-p/467364#M119305</link>
      <description>&lt;P&gt;sas 9.2 .&lt;/P&gt;&lt;P&gt;windows platform.&lt;/P&gt;&lt;P&gt;microsoft excel 10.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i will try your methd and let u know sir..&lt;/P&gt;&lt;P&gt;Thnaks for the valuable time...&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 12:35:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/importing-data/m-p/467364#M119305</guid>
      <dc:creator>katkarparam</dc:creator>
      <dc:date>2018-06-04T12:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: importing data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/importing-data/m-p/467366#M119306</link>
      <description>&lt;P&gt;Great advice, use the xlsx engine, but you must have SAS 9.4.&amp;nbsp; To note, you can simply copy so you don't need to type in each one:&lt;/P&gt;
&lt;PRE&gt;libname myxl xlsx '&amp;lt;path and name&amp;gt;.xlsx'; 

proc copy in=myxl out=work;
run;

libname myxl clear;&lt;/PRE&gt;
&lt;P&gt;Don't forget to clear the file ref afterwards.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 12:40:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/importing-data/m-p/467366#M119306</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-06-04T12:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: importing data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/importing-data/m-p/467392#M119310</link>
      <description>thanks...it works..</description>
      <pubDate>Mon, 04 Jun 2018 13:21:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/importing-data/m-p/467392#M119310</guid>
      <dc:creator>katkarparam</dc:creator>
      <dc:date>2018-06-04T13:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: importing data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/importing-data/m-p/467393#M119311</link>
      <description>thank u..sir..</description>
      <pubDate>Mon, 04 Jun 2018 13:22:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/importing-data/m-p/467393#M119311</guid>
      <dc:creator>katkarparam</dc:creator>
      <dc:date>2018-06-04T13:22:05Z</dc:date>
    </item>
  </channel>
</rss>

