<?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: INFORMAT while importing XLSX in sas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239406#M44037</link>
    <description>Actually it is on windows. i dont know what i am doing wrong , actually it so simple statement &lt;BR /&gt;libname workbk2  'C:\Users\speesary\Desktop\programs\sas programs\ddaoutput\oct_dda\DDA_exclusion.xlsx' ;</description>
    <pubDate>Tue, 15 Dec 2015 19:51:18 GMT</pubDate>
    <dc:creator>siddharthpeesary</dc:creator>
    <dc:date>2015-12-15T19:51:18Z</dc:date>
    <item>
      <title>INFORMAT while importing XLSX in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239378#M44019</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I am trying to import XLSX file in sas, But i have a FIle with attribute &lt;STRONG&gt;CISNO&lt;/STRONG&gt; with values ~4.0161128E12(4016112842745)&amp;nbsp;&amp;nbsp;&amp;nbsp; which i have to convert into z15. format while imorting it&lt;/P&gt;
&lt;P&gt;it is possible?&lt;/P&gt;
&lt;P&gt;if it is can anyone tell me the code.&lt;/P&gt;
&lt;P&gt;It will be very helpful Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 18:01:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239378#M44019</guid>
      <dc:creator>siddharthpeesary</dc:creator>
      <dc:date>2015-12-15T18:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: INFORMAT while importing XLSX in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239380#M44020</link>
      <description>You can associate that format after you have imported the data.  Use PROC DATASETS; MODIFY</description>
      <pubDate>Tue, 15 Dec 2015 18:15:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239380#M44020</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2015-12-15T18:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: INFORMAT while importing XLSX in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239381#M44021</link>
      <description>&lt;P&gt;can you please tell me the example code if possible&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 18:17:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239381#M44021</guid>
      <dc:creator>siddharthpeesary</dc:creator>
      <dc:date>2015-12-15T18:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: INFORMAT while importing XLSX in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239382#M44022</link>
      <description>Look at the SAS documentation for PROC DATASETS.</description>
      <pubDate>Tue, 15 Dec 2015 18:18:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239382#M44022</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2015-12-15T18:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: INFORMAT while importing XLSX in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239383#M44023</link>
      <description>there is any way I can use infile statement for XLSX file&lt;BR /&gt;like ex:&lt;BR /&gt;data imp;&lt;BR /&gt;infile "PATH\DDA_exclusion.csv"  FIRSTOBS=2   dsd truncover   ;&lt;BR /&gt;input CISNO: SVINTERNALACCNAME:$35.  ;&lt;BR /&gt;format CISNO z15.;&lt;BR /&gt;run;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Dec 2015 18:23:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239383#M44023</guid>
      <dc:creator>siddharthpeesary</dc:creator>
      <dc:date>2015-12-15T18:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: INFORMAT while importing XLSX in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239397#M44032</link>
      <description>&lt;P&gt;The only way to import .xlsx file into SAS is either using the import procedure, or if you have SAS Access you can use a libname statement.&amp;nbsp; You may be able to modify the format using a libname import, but you would have to look into that.&amp;nbsp; Here's a good paper on that technique:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.lexjansen.com/pharmasug-cn/2014/PT/PharmaSUG-China-2014-PT09.pdf" target="_blank"&gt;http://www.lexjansen.com/pharmasug-cn/2014/PT/PharmaSUG-China-2014-PT09.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 19:33:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239397#M44032</guid>
      <dc:creator>dcruik</dc:creator>
      <dc:date>2015-12-15T19:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: INFORMAT while importing XLSX in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239398#M44033</link>
      <description>ERROR: Connect: Class not registered&lt;BR /&gt;ERROR: Error in the LIBNAME statement&lt;BR /&gt;i have to change any settings ? in &lt;BR /&gt;FILE&lt;BR /&gt;      -&amp;gt; IMPORT DATA&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Dec 2015 19:35:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239398#M44033</guid>
      <dc:creator>siddharthpeesary</dc:creator>
      <dc:date>2015-12-15T19:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: INFORMAT while importing XLSX in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239400#M44034</link>
      <description>&lt;P&gt;Do you have or have you installed SAS PC Files Server?&amp;nbsp; That's what I would first go and check.&amp;nbsp; If you haven't installed it, I would go here to figure out what you need and have to do:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/52/649.html" target="_blank"&gt;http://support.sas.com/kb/52/649.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will need to use the pcfiles destination instead though.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 19:39:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239400#M44034</guid>
      <dc:creator>dcruik</dc:creator>
      <dc:date>2015-12-15T19:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: INFORMAT while importing XLSX in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239402#M44035</link>
      <description>&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/1183iF22B1C46C72A6239/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="Untitled.png" title="Untitled.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;It is giving the above out put&lt;/P&gt;
&lt;P&gt;so i think i have SAS/ACCESS Interface to PC Files&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 19:43:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239402#M44035</guid>
      <dc:creator>siddharthpeesary</dc:creator>
      <dc:date>2015-12-15T19:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: INFORMAT while importing XLSX in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239405#M44036</link>
      <description>&lt;P&gt;Then it depends where the xlsx file is located at.&amp;nbsp; If it's on Linux or UNIX, then you shouldn't need to use the PCFILES libname engine.&amp;nbsp; If it's stored on Windows, then you will need to use it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acpcref/67382/HTML/default/viewer.htm#n0oj9f6i838mymn148890ckla700.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acpcref/67382/HTML/default/viewer.htm#n0oj9f6i838mymn148890ckla700.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I see you have the SAS/ACCESS with ODBC.&amp;nbsp; In that case, you can also create an ODBC connection to the excel file and import it that way.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 19:50:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239405#M44036</guid>
      <dc:creator>dcruik</dc:creator>
      <dc:date>2015-12-15T19:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: INFORMAT while importing XLSX in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239406#M44037</link>
      <description>Actually it is on windows. i dont know what i am doing wrong , actually it so simple statement &lt;BR /&gt;libname workbk2  'C:\Users\speesary\Desktop\programs\sas programs\ddaoutput\oct_dda\DDA_exclusion.xlsx' ;</description>
      <pubDate>Tue, 15 Dec 2015 19:51:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239406#M44037</guid>
      <dc:creator>siddharthpeesary</dc:creator>
      <dc:date>2015-12-15T19:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: INFORMAT while importing XLSX in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239407#M44038</link>
      <description>libname mydblib odbc datasrc=ALMDATA user=Siddharth  password=ALM63Floor schema = dbo;  &lt;BR /&gt;actually i use the above code to pull data from mssql&lt;BR /&gt;so we ca also use the ODBC code to puul from XLSX file then?</description>
      <pubDate>Tue, 15 Dec 2015 19:54:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239407#M44038</guid>
      <dc:creator>siddharthpeesary</dc:creator>
      <dc:date>2015-12-15T19:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: INFORMAT while importing XLSX in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239408#M44039</link>
      <description>&lt;P&gt;You cannot use INFILE with an XLSX file. Well you could, but since it is a ZIP compressed archive of a series of XML documents it will be very hard to read with a data step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use a LIBNAME with the XLSX engine to point to the file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname mylib XLSX 'DDA_exclusion.xlsx' ;
proc copy inlib=mylib outlib=work; run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;But there is no way to tell SAS how to interpret the XLSX file columns.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If the values come across as numbers then you should be able to attach the Z15. format to the variable as that the values are displayed with leading zeros.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 19:54:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239408#M44039</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-12-15T19:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: INFORMAT while importing XLSX in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239409#M44040</link>
      <description>&lt;P&gt;Did you read the link I provided?&amp;nbsp; You need to use the PCFILES engine in the libname statement if it's on Windows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME myxlsx PCFILES SERVER=D2323 PATH='c:\demo.xlsx';

DATA a;
   SET myxlsx.'sheet1$'n;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acpcref/67382/HTML/default/viewer.htm#n1qk7lv0f535qkn1mydookwetyrp.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acpcref/67382/HTML/default/viewer.htm#n1qk7lv0f535qkn1mydookwetyrp.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 19:55:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239409#M44040</guid>
      <dc:creator>dcruik</dc:creator>
      <dc:date>2015-12-15T19:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: INFORMAT while importing XLSX in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239411#M44041</link>
      <description>&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/1184i951B2027A6912780/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="Untitled.png" title="Untitled.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;These the above error i am getting when i use it&amp;nbsp; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom﻿&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 19:57:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239411#M44041</guid>
      <dc:creator>siddharthpeesary</dc:creator>
      <dc:date>2015-12-15T19:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: INFORMAT while importing XLSX in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239413#M44043</link>
      <description>&lt;P&gt;You probably need to use a more current version of SAS for the XLSX engine to work.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 20:14:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INFORMAT-while-importing-XLSX-in-sas/m-p/239413#M44043</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-12-15T20:14:09Z</dc:date>
    </item>
  </channel>
</rss>

