<?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: Proc Import not successful in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-not-successful/m-p/89205#M25447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Yashwanth. &lt;/P&gt;&lt;P&gt;The semicolon was placed wrongly. Without it the proc import would have worked. Good catch. &lt;/P&gt;&lt;P&gt;I'll try the 'infile' option next time. &lt;/P&gt;&lt;P&gt;Thanks for the valuable suggestions. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Sep 2013 15:33:36 GMT</pubDate>
    <dc:creator>sridhar78</dc:creator>
    <dc:date>2013-09-20T15:33:36Z</dc:date>
    <item>
      <title>Proc Import not successful</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-not-successful/m-p/89195#M25437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to import a CSV file in SAS using Proc Import and was unsuccessful. The code is given below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc import datafile="E:\Sridhar\Analytics\SAS Course Material\case study\computer_peripherels\comp.csv";&lt;/P&gt;&lt;P&gt;Out=lib1.comp dbms=csv;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After several attempts I imported through the wizard so that I can move and and complete my work. Let me know &lt;/P&gt;&lt;P&gt;what are the errors or issues in the code above. The file patch is correct and the CSV file has "comma" as delimiter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two quick questions&lt;/P&gt;&lt;P&gt;1) Is there any difference between doing a Proc Import through Code vs. doing it via the File&amp;gt;Import data wizard or alternatively copying the file on to the server. &lt;/P&gt;&lt;P&gt;2) Can you guide me on the graphical/menu options for importing, exporting, copying files ? This will help me save time on coding for these and spend more time on &lt;/P&gt;&lt;P&gt;the analysis part of the code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 05:34:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-not-successful/m-p/89195#M25437</guid>
      <dc:creator>sridhar78</dc:creator>
      <dc:date>2013-09-20T05:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import not successful</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-not-successful/m-p/89196#M25438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link active_link" data-avatarid="-1" data-externalid="" data-presence="null" data-userid="820905" data-username="sridhar78" href="https://communities.sas.com/people/sridhar78" id="jive-82090580142647557803803" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; color: #0e66ba; text-decoration: underline;"&gt;sridhar,,&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1) There is no difference both are same. There are two different ways to import file into SAS. If using file&amp;gt;import method u need to have some setup to install to import Excel files into sas. Where as if you are using IMPORT procedure there is no need for that because you are saying to tool that you what to import excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) You can fine the IMPORT and EXPORT in file menu. You can find in base sas(I'm using base sas ). As per my knowledge&amp;nbsp; if you are looking for GUI export one is as I mentioned above and other option you can do is if u want to data in excel file go the data set&amp;gt;right click &amp;gt; there u can find excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please go through below links it may help you.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.ats.ucla.edu/stat/sas/faq/rwxls8.htm"&gt;http://www.ats.ucla.edu/stat/sas/faq/rwxls8.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://rfd.uoregon.edu/files/rfd/StatisticalResources/dt06_import.txt" title="http://rfd.uoregon.edu/files/rfd/StatisticalResources/dt06_import.txt"&gt;http://rfd.uoregon.edu/files/rfd/StatisticalResources/dt06_import.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acpcref/63184/HTML/default/viewer.htm#a003103761.htm" title="http://support.sas.com/documentation/cdl/en/acpcref/63184/HTML/default/viewer.htm#a003103761.htm"&gt;SAS/ACCESS(R) 9.2 Interface to PC Files: Reference, Second Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can I know which sas version you are using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;venky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 05:44:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-not-successful/m-p/89196#M25438</guid>
      <dc:creator>pallis</dc:creator>
      <dc:date>2013-09-20T05:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import not successful</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-not-successful/m-p/89197#M25439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venky, &lt;/P&gt;&lt;P&gt;Thanks for your prompt response and for clarifying my questions. &lt;/P&gt;&lt;P&gt;I'm using SAS Enterprise Guide 4.3. &lt;/P&gt;&lt;P&gt;I also have a query reg. copying/extracting date from one column to another. Please answer this if time permits - it will be very helpful. &lt;/P&gt;&lt;P&gt;I was trying to extract Invoice date info. to another column (i.e from invoice_date col to inv-date). The code is below. &lt;/P&gt;&lt;P&gt;data lib1.comp_new;&lt;/P&gt;&lt;P&gt;set lib1.comp;&lt;/P&gt;&lt;P&gt;inv_date=input(invoice_date,datetime22.);&lt;/P&gt;&lt;P&gt;format inv_date datetime22.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason I'm doing this is Invoice_Date has date and time info, whereas I need only the date, so I'm copying the date parameters to Inv_Date. Any suggestions?&lt;/P&gt;&lt;P&gt;Thanks once again.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 07:56:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-not-successful/m-p/89197#M25439</guid>
      <dc:creator>sridhar78</dc:creator>
      <dc:date>2013-09-20T07:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import not successful</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-not-successful/m-p/89198#M25440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data lib1.comp_new;&lt;/P&gt;&lt;P&gt;Set lib1.comp;&lt;/P&gt;&lt;P&gt;Inv_date=datepart(invoice_date);&lt;/P&gt;&lt;P&gt;Format inv_date date9. ;&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc print data=lib1.comp_new;&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;venky&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;: If your issue is resolved please close .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 09:14:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-not-successful/m-p/89198#M25440</guid>
      <dc:creator>pallis</dc:creator>
      <dc:date>2013-09-20T09:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import not successful</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-not-successful/m-p/89199#M25441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venky, &lt;/P&gt;&lt;P&gt;Thanks for the quick suggestion. &lt;/P&gt;&lt;P&gt;This one works perfectly. Wow....amazing!&lt;/P&gt;&lt;P&gt;Really appreciate your help. &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 10:16:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-not-successful/m-p/89199#M25441</guid>
      <dc:creator>sridhar78</dc:creator>
      <dc:date>2013-09-20T10:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import not successful</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-not-successful/m-p/89200#M25442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your Welcome.&lt;/P&gt;&lt;P&gt;If you want to extract time&amp;nbsp; use function &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;timepart&lt;/SPAN&gt;();&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 10:26:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-not-successful/m-p/89200#M25442</guid>
      <dc:creator>pallis</dc:creator>
      <dc:date>2013-09-20T10:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import not successful</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-not-successful/m-p/89201#M25443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srider,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can import the CSV file using infile statement. this should be easy way to import the file..to sas..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;infile "&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;E:\Sridhar\Analytics\SAS Course Material\case study\computer_peripherels\comp.csv&lt;/SPAN&gt;";&lt;/P&gt;&lt;P&gt;/*input var */&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yashu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 11:33:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-not-successful/m-p/89201#M25443</guid>
      <dc:creator>yaswanthj</dc:creator>
      <dc:date>2013-09-20T11:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import not successful</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-not-successful/m-p/89202#M25444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Yashu this is one method. I guess he is looking for proc import method. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 11:35:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-not-successful/m-p/89202#M25444</guid>
      <dc:creator>pallis</dc:creator>
      <dc:date>2013-09-20T11:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import not successful</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-not-successful/m-p/89203#M25445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a semicolon(;) in between the datafile and out. so that you can not generate the file to dataset. please remove semicolon(;) and run. you will get the results with out any error..&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc import datafile="E:\Sridhar\Analytics\SAS Course Material\case study\computer_peripherels\comp.csv"&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Out=lib1.comp dbms=csv;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yaswanth J.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 12:02:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-not-successful/m-p/89203#M25445</guid>
      <dc:creator>yaswanthj</dc:creator>
      <dc:date>2013-09-20T12:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import not successful</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-not-successful/m-p/89204#M25446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Yaswanth ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I didnt observed it. &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Yaswanth &lt;/SPAN&gt; Was correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 12:16:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-not-successful/m-p/89204#M25446</guid>
      <dc:creator>pallis</dc:creator>
      <dc:date>2013-09-20T12:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import not successful</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-not-successful/m-p/89205#M25447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Yashwanth. &lt;/P&gt;&lt;P&gt;The semicolon was placed wrongly. Without it the proc import would have worked. Good catch. &lt;/P&gt;&lt;P&gt;I'll try the 'infile' option next time. &lt;/P&gt;&lt;P&gt;Thanks for the valuable suggestions. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 15:33:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-not-successful/m-p/89205#M25447</guid>
      <dc:creator>sridhar78</dc:creator>
      <dc:date>2013-09-20T15:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import not successful</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-not-successful/m-p/89206#M25448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a style tip to reduce the risk of this type of mistake.&amp;nbsp; When writing a long SAS statement that takes multiple lines place the semicolon on a new line like you would with a DO/END block. Indent the middle lines of the long statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%let filen=&lt;SPAN style="background-color: #ffffff;"&gt;E:\Sridhar\Analytics\SAS Course Material\case study\computer_peripherels\comp.csv ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;proc import datafile="&amp;amp;filen"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; out=lib1.comp &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; dbms=csv&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 20:55:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-not-successful/m-p/89206#M25448</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-09-20T20:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import not successful</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-not-successful/m-p/89207#M25449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tom.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 05:17:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-not-successful/m-p/89207#M25449</guid>
      <dc:creator>sridhar78</dc:creator>
      <dc:date>2013-09-24T05:17:53Z</dc:date>
    </item>
  </channel>
</rss>

