<?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 in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125390#M34455</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi arthur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The abobe comment is passed by some one (Tal) else and the suggestions you have provided earlier is for the correct purpose only i.e text or delimited file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Oct 2013 08:46:39 GMT</pubDate>
    <dc:creator>jayanth_sas</dc:creator>
    <dc:date>2013-10-29T08:46:39Z</dc:date>
    <item>
      <title>Proc import</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125379#M34444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a flat file of 1000 observations and 50 variables. I can able to directly extract this by proc import procedure but how can we assign formats to this data? Do we have any thing while importing can we assign length, data type, label? Can any one suggest me on this plz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Oct 2013 09:07:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125379#M34444</guid>
      <dc:creator>jayanth_sas</dc:creator>
      <dc:date>2013-10-27T09:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125380#M34445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can try to import the data using the data step instead of the proc import procedure, incase if you wish to control the formats, length etc., of the variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile "~path/test.csv";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; informat&amp;nbsp; ....;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format .......;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input variables name .............;&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;Jagadish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Oct 2013 12:58:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125380#M34445</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2013-10-27T12:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125381#M34446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Immediately after running proc import press function key F4.&amp;nbsp; That will give you the code that was run and you can modify all of the formats and informats as desired and then rerun the modified code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Oct 2013 14:01:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125381#M34446</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-10-27T14:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125382#M34447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to import a sample data by proc import in sas 9.2 and after execution by default in the log it displayed the back end datastep it executed for proc import. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So probably for sas version less than 9.2 we need to use the function f4 to get the same. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jagadish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Oct 2013 14:16:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125382#M34447</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2013-10-27T14:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125383#M34448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is the same with all of the SAS versions.&amp;nbsp; The log displays the code that was run, but pressing function key f4 inserts that code into your editor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Oct 2013 14:32:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125383#M34448</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-10-27T14:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125384#M34449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sir, i just noticed it. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Oct 2013 14:38:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125384#M34449</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2013-10-27T14:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125385#M34450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jagadish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yeah we can do the same in infile if you have few variables, if variable list is 100 , 200 then using infile is tedious na.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Oct 2013 16:07:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125385#M34450</guid>
      <dc:creator>jayanth_sas</dc:creator>
      <dc:date>2013-10-27T16:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125386#M34451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sir Arthur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your advice let me try this and come back to you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Oct 2013 16:09:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125386#M34451</guid>
      <dc:creator>jayanth_sas</dc:creator>
      <dc:date>2013-10-27T16:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125387#M34452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of Note: Don't expect the proc generated code to be optimal, well written code.&amp;nbsp; IT WON'T BE!&amp;nbsp; When you press F4 you will get the exact code that the proc submits, but the proc-generated code has numerous macro variables and checks that don't have to be there, and uses separate format and informat statements for every variable.&amp;nbsp; Obviously, getting rid of the fluff and taking advantage of variable lists can make the code a lot easier to maintain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Oct 2013 21:18:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125387#M34452</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-10-27T21:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125388#M34453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arthur,'&lt;/P&gt;&lt;P&gt;so&amp;nbsp; if i importing a file&lt;/P&gt;&lt;P&gt;proc import datafile='C:\Users\x\Desktop\SAS Files\test.xls' out=new replace;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;and after running this code when i pres the F4 i get the same code as above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please explaing this below ? &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"The log displays the code that was run, but pressing function key f4 inserts that code into your editor."&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 03:18:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125388#M34453</guid>
      <dc:creator>Tal</dc:creator>
      <dc:date>2013-10-29T03:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125389#M34454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, this is the first time (that I know of at least) that you mentioned you were importing an Excel workbook.&amp;nbsp; All of my suggestions were based on the (apparently wrong) assumption that you were importing a text or delimited file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 04:24:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125389#M34454</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-10-29T04:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125390#M34455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi arthur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The abobe comment is passed by some one (Tal) else and the suggestions you have provided earlier is for the correct purpose only i.e text or delimited file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 08:46:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125390#M34455</guid>
      <dc:creator>jayanth_sas</dc:creator>
      <dc:date>2013-10-29T08:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125391#M34456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry about the confusion Arthur. So the F4 key function works only with text files and does the import data wizard has the ability of changing&amp;nbsp; format as you import the file,probably not?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 17:46:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125391#M34456</guid>
      <dc:creator>Tal</dc:creator>
      <dc:date>2013-10-29T17:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125392#M34457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tal: You really ought to start a new discussion rather than trying to piggyback onto an existing one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, while I don't think proc import lets you control formats and informats, the excel libname engine does.&amp;nbsp; Take a look at &lt;A href="http://books.google.ca/books?id=QOI_xTgWwgsC&amp;amp;pg=PA35&amp;amp;lpg=PA35&amp;amp;dq=import+excel+libname+engine+format+sas&amp;amp;source=bl&amp;amp;ots=9pPB5QpKBB&amp;amp;sig=G35nn4hp99h9J8B7ittYhruMv3I&amp;amp;hl=en&amp;amp;sa=X&amp;amp;ei=4_VvUrnKNIeh8gG1jYC4Cg&amp;amp;ved=0CFIQ6AEwBTgU#v=onepage&amp;amp;q=import%20excel%20libname%20engine%20format%20sas&amp;amp;f=false" title="http://books.google.ca/books?id=QOI_xTgWwgsC&amp;amp;pg=PA35&amp;amp;lpg=PA35&amp;amp;dq=import+excel+libname+engine+format+sas&amp;amp;source=bl&amp;amp;ots=9pPB5QpKBB&amp;amp;sig=G35nn4hp99h9J8B7ittYhruMv3I&amp;amp;hl=en&amp;amp;sa=X&amp;amp;ei=4_VvUrnKNIeh8gG1jYC4Cg&amp;amp;ved=0CFIQ6AEwBTgU#v=onepage&amp;amp;q=import%20excel%20libname%20engine%20format%20sas&amp;amp;f=false"&gt;http://books.google.ca/books?id=QOI_xTgWwgsC&amp;amp;pg=PA35&amp;amp;lpg=PA35&amp;amp;dq=import+excel+libname+engine+format+sas&amp;amp;source=bl&amp;amp;ots=9pPB5QpKBB&amp;amp;sig=G35nn4hp99h9J8B7ittYhruMv3I&amp;amp;hl=en&amp;amp;sa=X&amp;amp;ei=4_VvUrnKNIeh8gG1jYC4Cg&amp;amp;ved=0CFIQ6AEwBTgU#v=onepage&amp;amp;q=import%20excel%20libname%20engine%20format%20sas&amp;amp;f=false&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and, specifically, search that file for DBTYPE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 18:01:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125392#M34457</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-10-29T18:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125393#M34458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Arthur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 21:40:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125393#M34458</guid>
      <dc:creator>Tal</dc:creator>
      <dc:date>2013-10-29T21:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125394#M34459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Art&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as you haven't mentioned it, I might be bringing up an idea that is as&amp;nbsp; new to you as it was to me (last week!)&lt;/P&gt;&lt;P&gt;Use the SASTRACE option before PROC IMPORT from excel file types, to see the underlying SAS SQL code with options passed into excel (a bit like getting the code for CSV import).&lt;/P&gt;&lt;P&gt;The standard sastrace option I used :&lt;/P&gt;&lt;P&gt;options sastrace=',,,d' sastraceloc=saslog nostsuffix;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The examples in the documentation of SASTRACE reveal an even greater degree of detail might be available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 10:07:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125394#M34459</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2013-11-04T10:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125395#M34460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="392339" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;: No, that was new to me as well!&amp;nbsp; Yes, some other option settings would be needed to see exactly what they (SAS) did, and how, but it appears that the import is simply using the excel engine in a libname statement and then running proc sql and setting everything needed using various dbdsopts settings.&amp;nbsp; Yes, definitely similar to getting the code for CSV imports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much appreciated,&lt;/P&gt;&lt;P&gt;Art&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 15:47:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-import/m-p/125395#M34460</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-11-04T15:47:35Z</dc:date>
    </item>
  </channel>
</rss>

