{"id":600,"date":"2010-07-20T19:26:24","date_gmt":"2010-07-21T00:26:24","guid":{"rendered":"http:\/\/www.thejuliagroup.com\/blog\/?p=600"},"modified":"2010-07-20T19:43:23","modified_gmt":"2010-07-21T00:43:23","slug":"behind-the-door-marked-beware-of-the-leopard-importing-excel-2007-into-windows-7-x64","status":"publish","type":"post","link":"https:\/\/www.thejuliagroup.com\/blog\/behind-the-door-marked-beware-of-the-leopard-importing-excel-2007-into-windows-7-x64\/","title":{"rendered":"Behind the Door Marked &#8216;Beware of the Leopard&#8217;: Importing Excel 2007 into SAS 9.2 on Windows 7 x64"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-608 aligncenter\" title=\"In the bottom of a file cabinet, in an unused lavatory, behind a door marked Beware of the Leopard\" src=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2010\/07\/leopard2.jpg\" alt=\"In the bottom of a file cabinet, in an unused lavatory, behind a door marked Beware of the Leopard\" width=\"414\" height=\"345\" srcset=\"https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2010\/07\/leopard2.jpg 377w, https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2010\/07\/leopard2-300x249.jpg 300w\" sizes=\"auto, (max-width: 414px) 100vw, 414px\" \/><\/p>\n<p >\n<p >\n<p style=\"text-align: center;\">Some times documentation can be a little hard to find&#8230;<\/p>\n<p>You may be aware of the fact that, if you are running SAS 9.2 on a 64-bit Vista or Windows 7 machine the Import Data option from the file menu does not work for Excel files.<\/p>\n<p>Per SAS Usage Note 33228:  (Courtesy of Peter Ruzsa in SAS Technical Support.)<br \/>\nYou are running into this issue here,<\/p>\n<p><em>&#8220;An error occurs when you use SAS\u00ae 9.2 to import or export Microsoft Excel or Access files in the Windows x64 and Windows Vista 64 environments.&#8221;<br \/>\n<\/em>(Yes, we know that.)<\/p>\n<p><em>When you use SAS 9.2 to import or export Microsoft Excel or Microsoft Access files in the Windows X64, Windows Vista 64, and Windows 2003 64-bit server environments, you can receive the following message: <\/em><\/p>\n<p><em>ERROR: DBMS type EXCEL (ACCESS) not valid for import.<br \/>\nIn addition, when you use the Import and Export wizards, the Excel engine is not presented as a selection.<br \/>\n<\/em><br \/>\n(Yes, and this makes us sad because people insist on continuing to email us files in Excel format, and Access, too, but we have these shiny new computers running SAS 9.2 that we want to use and, on top of it all, we are out of doughnuts. They keep buying that raspberry arugala crap instead. Why do we always modernize the wrong things?)<\/p>\n<p>You could save your Excel 2007 files as .csv and import them that way but that is pretty inefficient.<\/p>\n<p>So, let&#8217;s read on in Pete&#8217;s note&#8230; well, actually, let&#8217;s not because it had some code in it that probably works for some people in certain situations. I was not one of those people. However, maybe you are, so you can go to the SAS knowledge base and read it here.<\/p>\n<p><a href=\"http:\/\/support.sas.com\/kb\/33\/228.html\">http:\/\/support.sas.com\/kb\/33\/228.html<\/a><\/p>\n<p>When that didn&#8217;t work, I tried swearing. Next, I went to the documentation for PC Files Server, specifically, this page<\/p>\n<p><a href=\"http:\/\/support.sas.com\/documentation\/cdl\/en\/acpcref\/63184\/HTML\/default\/viewer.htm#\/documentation\/cdl\/en\/acpcref\/63184\/HTML\/default\/a003353773.htm\">http:\/\/support.sas.com\/documentation\/cdl\/en\/acpcref\/63184\/HTML\/default\/viewer.htm#\/documentation\/cdl\/en\/acpcref\/63184\/HTML\/default\/a003353773.htm<br \/>\n<\/a><br \/>\nwhich gives the exact correct code for running Proc Import, assuming you have the PC Files Server installed. Which, it turns out, I did not.<\/p>\n<p>So &#8230;, from a different helpful person at Tech Support, I received the following:<\/p>\n<p>&#8220;Note if you have an existing 9.1 or 9.2 pc file server you should uninstall it first.<\/p>\n<p>1. Download the PC file server from the following location to your windows pc that<br \/>\nis going to run the application. You can find it at this location:<\/p>\n<p><a href=\"  ftp:\/\/ftp.sas.com\/techsup\/download\/base\/zqjpcfileserver92m3.zip\"> ftp:\/\/ftp.sas.com\/techsup\/download\/base\/zqjpcfileserver92m3.zip<\/a><\/p>\n<p>you can simply save the file to any location on the pc where you are going to install the SAS PC File Server<\/p>\n<p>2.  For more information on the PC file server go to this link here.<\/p>\n<p>http:\/\/support.sas.com\/documentation\/cdl\/en\/acpcref\/61891\/HTML\/default\/a002645029.htm<\/p>\n<p>3.  Unzip the zqjpcfileserver92M3.zip file on your pc, it will unzip to<br \/>\nthe pcfilesrv__92130__prt__xx__sp0__1 sub directory where you stored the zip file.<br \/>\n4.  In the unzipped directory named pcfilesrv__92130__prt__xx__sp0__1 double click on<br \/>\nthe setup.exe<br \/>\n5.  This will start the install<\/p>\n<p>a.  The setup.exe will install the pc file server in the C:\\Program Files\\SAS\\PCFilesServer\\9.2 directory.<br \/>\nIf you are installing this on an X64 box it will install in C:\\Program Files (x86)\\SAS\\PCFilesServer\\9.2 directory because<br \/>\nthis is a 32 bit application.<br \/>\nb.  You will have a choice to install the pc file server as a service.  The checkbox selection is<\/p>\n<p>Start Service Now and When Windows Starts.<\/p>\n<p>c.  Note that if you install it as a service you must read network drive names with their Universal Naming Convention names such<br \/>\nas \\\\servername\\directory\\filename.xls.<\/p>\n<p>After I installed the PC Files server, everything worked absolutely lovely to import Excel files, whether using the Import Data option in the File menu or Proc Import in my code ON WINDOWS 7 x64. So, my advice is that if you have a shiny new computer and a shiny new SAS 9.2 Maintenance 3 and you want to import the latest in Excel files or Access, download and install the PC Files server and you will be happy. Someone might even bring you doughnuts. But don&#8217;t count on that.<\/p>\n<p>When I tried the same exact steps in Vista 64 I received a message. &#8220;Connection failed. See log for details.&#8221; The &#8220;details&#8221; were that SAS stopped processing this step because of errors.<\/p>\n<p>Bad computer! No doughnut !<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-604\" title=\"Doughnuts for all!\" src=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2010\/07\/12065783341854744589worms_x_donut.svg_.med_.png\" alt=\"Doughnuts for all!\" width=\"300\" height=\"212\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some times documentation can be a little hard to find&#8230; You may be aware of the fact that, if you are running SAS 9.2 on a 64-bit Vista or Windows 7 machine the Import Data option from the file menu does not work for Excel files. Per SAS Usage Note 33228: (Courtesy of Peter Ruzsa&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9,8],"tags":[],"class_list":["post-600","post","type-post","status-publish","format-standard","hentry","category-software","category-technology"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/600","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/comments?post=600"}],"version-history":[{"count":9,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/600\/revisions"}],"predecessor-version":[{"id":614,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/600\/revisions\/614"}],"wp:attachment":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/media?parent=600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/categories?post=600"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/tags?post=600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}