<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1019476628971015159</id><updated>2011-11-27T15:52:45.945-08:00</updated><category term='ODS GRAPHICS'/><category term='Error messages'/><category term='Import'/><category term='Export'/><title type='text'>SAS Beginner's Guide-Tips, Help and Statistics</title><subtitle type='html'>The perfect place to start if you know little about SAS and want to know a lot!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sasbeginner.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1019476628971015159/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://sasbeginner.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>SASguru</name><uri>http://www.blogger.com/profile/02999342912045326635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1019476628971015159.post-2025194566856356717</id><published>2011-02-17T07:11:00.000-08:00</published><updated>2011-02-17T07:12:55.266-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Error messages'/><title type='text'>ERROR: No disk space is available for the write operation</title><content type='html'>While attempting to run a database in excess of 56gb I repeatedly received this error message "ERROR: No disk space is available for the write operation".&amp;nbsp; When working in SAS all procedures take place wherever the temp folder is located, which is true even if you&amp;nbsp;reference&amp;nbsp;a different library&amp;nbsp;with a&amp;nbsp;libname statement.&amp;nbsp; The library is the final resting ground for the data, yet all procedures are performed in that temp folder.&amp;nbsp; The problem I encountered was because my computer's hard drive was ~110 gb and the file was ~56gb.&amp;nbsp; I have a network folder that is 250gb, but first I needed to figure out how to designate that drive for my SAS temp folder.&lt;br /&gt;&lt;br /&gt;I was unable to find a solution online, so I wanted to share my ultimate solution.&amp;nbsp; &lt;br /&gt;&lt;br /&gt;The temp drive and folder I wished to use was "M:\SAS temp"&lt;br /&gt;&lt;br /&gt;1.) Locate the config file called "SASV9.CFG"&lt;br /&gt;1a.) My location was "C:\Program Files\SAS\SASFoundation\9.2\nls\en"&lt;br /&gt;&lt;br /&gt;2.) Create a back-up config file, just in case.&lt;br /&gt;&lt;br /&gt;3.) Open SASV9.CFG&lt;br /&gt;3a.) Under the warning box, about 5 lines down it states&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/*setup the default SAS System user work folder&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;br /&gt;3b.) You will want to change this path to wherever you want your new temp file, so it should read:&lt;br /&gt;&lt;br /&gt;/*setup the default SAS System user work folder&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;br /&gt;-WORK "M:\SAS temp"&lt;br /&gt;&lt;br /&gt;4.) Save and close this file&lt;br /&gt;&lt;br /&gt;5.) Open sas.exe in "C:\Program Files\SAS\SASFoundation\9.2"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The problem should be solved and all temporary files, including the work library, will now be saved in this location.&amp;nbsp; &lt;br /&gt;&lt;br /&gt;A final note, network drives may run significantly slower.&amp;nbsp; Therefore, it may be wise to switch back your temp folder once you have completed running this larger file.&lt;br /&gt;&lt;br /&gt;Good Luck!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1019476628971015159-2025194566856356717?l=sasbeginner.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sasbeginner.blogspot.com/feeds/2025194566856356717/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sasbeginner.blogspot.com/2011/02/error-no-disk-space-is-available-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1019476628971015159/posts/default/2025194566856356717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1019476628971015159/posts/default/2025194566856356717'/><link rel='alternate' type='text/html' href='http://sasbeginner.blogspot.com/2011/02/error-no-disk-space-is-available-for.html' title='ERROR: No disk space is available for the write operation'/><author><name>SASguru</name><uri>http://www.blogger.com/profile/02999342912045326635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1019476628971015159.post-6495604888866464991</id><published>2011-01-13T12:31:00.000-08:00</published><updated>2011-01-13T12:32:08.467-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ODS GRAPHICS'/><title type='text'>ODS graphics error</title><content type='html'>ERROR: Unable to load the Java Virtual Machine &lt;br /&gt;Today I received this error while attempting to execute ODS graphics.&amp;nbsp; I was using SAS 9.2 on a windows XP platform.&amp;nbsp; In my prior life with another agency this problem has occurred when I upgraded from 9.1 to 9.2, so this must be a common issue.&amp;nbsp; Speaking with the local IT help desk and a SAS associate proved useless, yet the problem was solved.&lt;br /&gt;&lt;br /&gt;The issue is an incorrect pathway present for your Java Virtual Machine.&amp;nbsp; You will need admin rights to fix this error, but once you access the files, it is quite easy.&lt;br /&gt;&lt;br /&gt;1) Open the folder:&amp;nbsp;C:\Program Files\SAS\SASFoundation\9.2\nls\en&lt;br /&gt;&amp;nbsp; a) in this folder you will find a file called SASV9.CFG. &lt;br /&gt;&amp;nbsp; b)&amp;nbsp;make a copy of this folder called something else, i.e. SASv9_backup, just in case.&lt;br /&gt;&lt;br /&gt;2) Open the program file containing your java files: C:\Program Files\Java&lt;br /&gt;&lt;br /&gt;3) Open the file SASV9.CFG&lt;br /&gt;&amp;nbsp;&amp;nbsp; a) Scroll down until you hit the line that says:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -JREOPTIONS=(-Dsas.jre.libjvm=C:\PROGRA~1\Java\JRE15~1.0_1\bin\client\jvm.dll &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;b) This is the path SAS is taking to find your version of Java Virtual Machine.&lt;br /&gt;&amp;nbsp;&amp;nbsp; c) Return to the JAVA folder and check if that pathway exists, it probably won't.&lt;br /&gt;&amp;nbsp;&amp;nbsp; d) If you have the folder "JRE1.5.0_12" in the java folder then make a simple change to the pathway&lt;br /&gt;&amp;nbsp;&amp;nbsp; --JREOPTIONS=(-Dsas.jre.libjvm=C:\PROGRA~1\Java\jre15~1.0_1\bin\&lt;span style="background-color: yellow;"&gt;server&lt;/span&gt;\jvm.dll&lt;br /&gt;&lt;br /&gt;&amp;nbsp;4) This is where I got hung up!&lt;br /&gt;&amp;nbsp;&amp;nbsp; a) Open SAS through the ORIGINAL pathway, not your normal shortcut.&amp;nbsp; The normal pathway is:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C:\Program Files\SAS\SASFoundation\9.2\SAS.exe&lt;br /&gt;&lt;br /&gt;5) Check to see if the fix worked by running:&lt;br /&gt;&lt;br /&gt;%put JREoptions: %sysfunc(getoption(JREOPTIONS)); &lt;br /&gt;PROC JavaInfo; &lt;br /&gt;&lt;br /&gt;If it runs the procedure with no errors, ODS graphics is ready to execute.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;FIX 2.&lt;br /&gt;&lt;br /&gt;For the second fix we will adjust the JREOPTIONS in the file SAS utilizes prior to going to the other SASv9.cfg we attempted to change.&lt;br /&gt;&lt;br /&gt;1) Open C:\Program Files\SAS\SASFoundation\9.2 &lt;br /&gt;&lt;br /&gt;2) Locate SASV9.CFG, and make a back up&lt;br /&gt;&lt;br /&gt;3) Open this file and under the first command line that states:&lt;br /&gt;&lt;br /&gt;-CONFIG "C:\Program Files\SAS\SASFoundation\9.2\nls\en\SASV9.CFG"&lt;br /&gt;&lt;br /&gt;Add a second command line:&lt;br /&gt;&lt;br /&gt;-JREOPTIONS=(-Dsas.jre.libjvm=C:\PROGRA~1\Java\&lt;span style="background-color: yellow;"&gt;JRE6\bin\client\jvm.dll&lt;/span&gt; -Djava.security.policy=!SASROOT\core\sasmisc\sas.policy -Dsas.ext.config=!SASROOT\core\sasmisc\sas.java.ext.config -Dsas.app.class.path=C:\PROGRA~1\SAS\SASVER~1\9.2\eclipse\plugins\tkjava.jar -DPFS_TEMPLATE=!SASROOT\core\sasmisc\qrpfstpt.xml -Djava.class.path=C:\PROGRA~1\SAS\SASVER~1\9.2\eclipse\plugins\SASLAU~1.JAR -Djava.system.class.loader=com.sas.app.AppClassLoader -Xmx128m -Xms128m -Djava.security.auth.login.config=!SASROOT\core\sasmisc\sas.login.config -Dtkj.app.launch.config=!SASROOT\picklist)&lt;br /&gt;&lt;br /&gt;NOTE!&amp;nbsp; This whole code needs to be in one line.&lt;br /&gt;&lt;br /&gt;This fix will work if in the JAVA folder you have the folder "JRE6".&amp;nbsp; &lt;br /&gt;&lt;br /&gt;Run the check on SAS:&lt;br /&gt;&lt;br /&gt;%put JREoptions: %sysfunc(getoption(JREOPTIONS)); &lt;br /&gt;PROC JavaInfo; &lt;br /&gt;&lt;br /&gt;If this PROC runs without an error, ODS graphics is fixed.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;Why this works.&lt;br /&gt;&lt;br /&gt;You will notice that the pathway SAS originally uses to identify Java Virtual Machine (Java\JRE15~1.0_1\bin\client\jvm.dll) doesn't exist.&amp;nbsp; SAS needs to find the program "jvm.dll" and so we must force SAS to find that program.&amp;nbsp; By fixing the pathway we allow SAS to locate the necessary program to run ODS Graphics, thus solving the problem.&lt;br /&gt;&lt;br /&gt;This was a major pain today and just wish to share the fix.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1019476628971015159-6495604888866464991?l=sasbeginner.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sasbeginner.blogspot.com/feeds/6495604888866464991/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sasbeginner.blogspot.com/2011/01/ods-graphics-error.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1019476628971015159/posts/default/6495604888866464991'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1019476628971015159/posts/default/6495604888866464991'/><link rel='alternate' type='text/html' href='http://sasbeginner.blogspot.com/2011/01/ods-graphics-error.html' title='ODS graphics error'/><author><name>SASguru</name><uri>http://www.blogger.com/profile/02999342912045326635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1019476628971015159.post-303790457095946649</id><published>2010-08-05T16:03:00.001-07:00</published><updated>2010-08-05T16:03:35.874-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Export'/><title type='text'>Exporting</title><content type='html'>&lt;div class="MsoNormal"&gt;I have discussed how to import data into SAS from SPSS and Excel files, but what about when a user wishes to get the data out of SAS into another file format.&amp;nbsp; Exporting data is one of those times I really love SAS and the tools/wizards they provide.&amp;nbsp;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;Let’s start with the SAS Export Wizard.&lt;/div&gt;&lt;div class="MsoNormal"&gt;The Export wizard:&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="mso-tab-count: 1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;File -&amp;gt; Export Data…&lt;/div&gt;&lt;div class="MsoNormal"&gt;Here you can see the Export Wizard is open and ready for you to select the file.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;In the Library drop down menu, you simply select the library location, and the “member” is the file name.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;In this example I would be exporting the SAS dataset “DATA” from the “WORK” library.&lt;/div&gt;&lt;div class="MsoNormal"&gt;One thing you may quickly notice is the extensive list of file formats available to you by SAS.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;A few include:&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;Excel, comma/tab delimited, JMP, SPSS, ect.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;That is right SPSS!&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;I find it interesting that SAS will let users export straight into SPSS, and it works, but you can’t export an SPSS file into SAS without issues.&lt;/div&gt;&lt;div class="MsoNormal"&gt;The final step after selecting the file format is to find the final folder destination of the data.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;Once the destination is selected, you will assign a table name and hit FINISH, which will complete your export.&lt;/div&gt;&lt;div class="MsoNormal"&gt;Simple, right?&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;*************************************************************************************&lt;span style="mso-tab-count: 1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;Option 2.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;SAS Macro&lt;/div&gt;&lt;div class="MsoNormal"&gt;When explaining how to import Excel files, I discussed the positives and negatives of using these macros for importing/exporting.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;The only reason I use these macros is when importing the data, making quick changes, and exporting the data.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;I won’t utilize this macro for my day to day exporting, but if I’m making summary variables or mean/mode/median imputations, this is the easiest way. &lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;b&gt;&lt;span style="background: white; color: navy; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;"&gt;%macro&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;"&gt; expo (data=);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;"&gt;PROC EXPORT DATA= WORK.data &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;OUTFILE= &lt;/span&gt;&lt;span style="background: white; color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;"&gt;"C:\folder\datasets\Updated\&amp;amp;data"&lt;/span&gt;&lt;span style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;DBMS=EXCEL LABEL REPLACE;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;NEWFILE=YES;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;"&gt;RUN;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;b&gt;&lt;span style="background: white; color: navy; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;"&gt;%mend&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;"&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="background: white; color: green; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;"&gt;*The first line creates a macro called “expo” where we are going to use the macro to define “data”.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="background: white; color: green; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;"&gt;The macro utilizes PROC EXPORT and states the data is in the work library and is called “data”.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;Second note, I created a new file folder called “Updated”, so the data didn’t just overwrite the old data in the folder from where you imported the data.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="background: white; color: green; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;"&gt;DBMS=Excel, tells SAS it will be exporting the data as an Excel file with the labels printed instead of the names. ;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;b&gt;&lt;span style="background: white; color: navy; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;"&gt;%mend&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;"&gt;; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="background: white; color: green; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;"&gt;*closes the macro.;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="background: white; color: green; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;"&gt;*The final step is calling the macro;&lt;/span&gt;&lt;span style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;"&gt;%&lt;b&gt;&lt;i&gt;expo&lt;/i&gt;&lt;/b&gt;(data=file);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="border-bottom: dotted windowtext 3.0pt; border: none; mso-element: para-border-div; padding: 0in 0in 1.0pt 0in;"&gt;  &lt;div class="MsoNormal" style="border: none; mso-border-bottom-alt: dotted windowtext 3.0pt; mso-padding-alt: 0in 0in 1.0pt 0in; padding: 0in;"&gt;&lt;span style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; line-height: 115%;"&gt;This statement exports the SAS dataset as “file” into the folder on your drive specified in the macro statement.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; line-height: 115%;"&gt;These are just two of the forms of exporting data I use most often, but again, there are many ways to export.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; line-height: 115%;"&gt;Cheers!&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1019476628971015159-303790457095946649?l=sasbeginner.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sasbeginner.blogspot.com/feeds/303790457095946649/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sasbeginner.blogspot.com/2010/08/exporting.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1019476628971015159/posts/default/303790457095946649'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1019476628971015159/posts/default/303790457095946649'/><link rel='alternate' type='text/html' href='http://sasbeginner.blogspot.com/2010/08/exporting.html' title='Exporting'/><author><name>SASguru</name><uri>http://www.blogger.com/profile/02999342912045326635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1019476628971015159.post-416418907074737420</id><published>2010-08-03T13:57:00.000-07:00</published><updated>2010-08-05T15:18:39.324-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Import'/><title type='text'>Excel Import</title><content type='html'>&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Times New Roman',serif;"&gt;There are many options when importing Excel files, but today I will go over the three options I most commonly utilize.&amp;nbsp; These three options will move from easiest to hardest, but this doesn’t mean least to most useful.&amp;nbsp; The real benefit of SAS over some other programs is the flexibility it provides in all aspects of data management, including simple data importation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Times New Roman',serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Times New Roman',serif;"&gt;The three options:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="text-indent: -0.25in;"&gt;&lt;span style="font-family: 'Times New Roman',serif;"&gt;1.)&lt;span style="font: 7pt 'Times New Roman';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: 'Times New Roman',serif;"&gt;Import excel through SAS’s import wizard.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in;"&gt;&lt;span style="font-family: 'Times New Roman',serif;"&gt;2.)&lt;span style="font: 7pt 'Times New Roman';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: 'Times New Roman',serif;"&gt;Import excel through code&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="text-indent: -0.25in;"&gt;&lt;span style="font-family: 'Times New Roman',serif;"&gt;3.)&lt;span style="font: 7pt 'Times New Roman';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: 'Times New Roman',serif;"&gt;Import excel through a macro&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Times New Roman',serif;"&gt;****************************************************************************&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Times New Roman',serif;"&gt;OPTION 1:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Times New Roman',serif;"&gt;When importing excel through SAS’s import wizard I would always have the excel file saved in the ’97 – 2003 format, SAS hasn’t quite caught up to Excel 2007.&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Times New Roman',serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Times New Roman',serif;"&gt;Once in SAS, go to File-&amp;gt; Import Data…&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Times New Roman',serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Times New Roman',serif;"&gt;This opens the Import Wizard.&amp;nbsp; The default is “Standard Data Source” with “Microsoft Excel 97/2000/2002/2003 Workbook” in the drop down menu, click “Next” once you verify everything is correct.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Times New Roman',serif;"&gt;&amp;nbsp;Hit “Browse…” to find the dataset you’re looking to import and click “OK”.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Times New Roman',serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Times New Roman',serif;"&gt;The next screen asks you to select the table you are importing.&amp;nbsp; This is the table in the original excel file where your data is saved.&amp;nbsp; Click “Next” once you have selected the correct table.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Times New Roman',serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Times New Roman',serif;"&gt;The final screen asks you to select the location you want to place the excel sheet once imported.&amp;nbsp; The default library is “WORK”.&amp;nbsp; The second drop down menu is “Member:”, here SAS is asking you to name the new SAS dataset, anything will do here, I prefer simple names like “d”, “data”, “a”, ect.&amp;nbsp; Once named you can select “Finish” and you are completed.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="border: medium none; padding: 0in 0in 1pt;"&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt;&lt;span style="font-family: 'Times New Roman',serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt;&lt;span style="font-family: 'Times New Roman',serif;"&gt;You will see in the SAS log “NOTE: WORK.D data set was successfully created. “&amp;nbsp; Now your file can be located in the Work Library, and is ready for manipulation/analysis.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt;&lt;span style="font-family: 'Times New Roman',serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt;&lt;span style="font-family: 'Times New Roman',serif;"&gt;LIMITATIONS:&amp;nbsp; The import wizard can’t handle variables where the values are mixture of numbers and characters.&amp;nbsp; It assigns the variable type for the column based on the first few rows.&amp;nbsp; You will run into problems if you have mixed variables, so please check your data after importation, or use the next option.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Times New Roman',serif;"&gt;OPTION 2:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Times New Roman',serif;"&gt;Option two saves out a permanent SAS dataset, but require code.&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Times New Roman',serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Times New Roman',serif;"&gt;Before you begin to write the code, the excel file *MUST* be saved as an &lt;u&gt;Excel ’95&lt;/u&gt; document.&amp;nbsp; This can be done in Excel through file-&amp;gt;Save as -&amp;gt;Other formats, and place the “save as type” as “Microsoft Excel 5.0/95 Workbook”.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Times New Roman',serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Times New Roman',serif;"&gt;The first SAS code is to create a new library with a libname statement.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"&gt;libname&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"&gt; b &lt;/span&gt;&lt;span style="background-color: white; color: purple; font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"&gt;"C:\folder\datasets"&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: green; font-family: 'Courier New'; font-size: 10pt;"&gt;*This creates a library named "b" where all files are saved into C:\folder\datasets; remember this is just an example, but the location your saving the data must already exist;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;b&gt;&lt;span style="background-color: white; color: navy; font-family: 'Courier New'; font-size: 10pt;"&gt;proc&lt;/span&gt;&lt;/b&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/span&gt;&lt;b&gt;&lt;span style="background-color: white; color: navy; font-family: 'Courier New'; font-size: 10pt;"&gt;access&lt;/span&gt;&lt;/b&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/span&gt;&lt;span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;dbms&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;=xls;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;create&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; b.xlsa.access;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;path&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; = &lt;/span&gt;&lt;span style="background-color: white; color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;'C:\folder\datasets\excelfile.xls'&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;scantype&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp; = yes;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;worksheet&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; = deploy;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;getnames&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp; = yes;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;assign&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; = yes;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;create&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; b.xlsv.view;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;select&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/span&gt;&lt;span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;all&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;b&gt;&lt;span style="background-color: white; color: navy; font-family: 'Courier New'; font-size: 10pt;"&gt;run&lt;/span&gt;&lt;/b&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: green; font-family: 'Courier New'; font-size: 10pt;"&gt;*Some notes:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: green; font-family: 'Courier New'; font-size: 10pt;"&gt;dbms=xls, is what tell SAS it is an excel file.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: green; font-family: 'Courier New'; font-size: 10pt;"&gt;create=b.xlsa.access, creates your permanent dataset "xlsa.access" in the "b" library&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: green; font-family: 'Courier New'; font-size: 10pt;"&gt;path= 'C:\folder\datasets\excelfile.xls', is the exact location of the excel file.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: green; font-family: 'Courier New'; font-size: 10pt;"&gt;scantype= no, this allows a column to not be assigned numeric if most entries are numeric.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: green; font-family: 'Courier New'; font-size: 10pt;"&gt;mixed=yes, this allows columns with numbers and characters to be formatted as character.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: green; font-family: 'Courier New'; font-size: 10pt;"&gt;worksheet=sheet1, is the name of the worksheet the data can be found in the excel file.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: green; font-family: 'Courier New'; font-size: 10pt;"&gt;getnames=yes, SAS takes the first row from the excel file and uses it to write column names.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: green; font-family: 'Courier New'; font-size: 10pt;"&gt;assign=yes, tells SAS to name the columns legal SAS names using excel column names&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: green; font-family: 'Courier New'; font-size: 10pt;"&gt;create b.xlsv.view,&amp;nbsp; creates a subfolder called xlsv, which we delete later.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: green; font-family: 'Courier New'; font-size: 10pt;"&gt;select all, tells SAS all observations will be available to view.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: green; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;b&gt;&lt;span style="background-color: white; color: navy; font-family: 'Courier New'; font-size: 10pt;"&gt;data&lt;/span&gt;&lt;/b&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; b.SASdataset;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;set&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; b.xlsv;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;b&gt;&lt;span style="background-color: white; color: navy; font-family: 'Courier New'; font-size: 10pt;"&gt;run&lt;/span&gt;&lt;/b&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: green; font-family: 'Courier New'; font-size: 10pt;"&gt;*This data step saves the imported excel file "b.xlsv" into "b.SASdataset", which is located in the library "b" and named SASdataset.&amp;nbsp; The dataset can now be found at "C:\folder\datasets\SASdataset.sas7bdat";&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;b&gt;&lt;span style="background-color: white; color: navy; font-family: 'Courier New'; font-size: 10pt;"&gt;proc&lt;/span&gt;&lt;/b&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/span&gt;&lt;b&gt;&lt;span style="background-color: white; color: navy; font-family: 'Courier New'; font-size: 10pt;"&gt;datasets&lt;/span&gt;&lt;/b&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/span&gt;&lt;span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;library&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;=b;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;delete&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; xlsv/&lt;/span&gt;&lt;span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;memtype&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;=view;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;delete&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; xlsa/&lt;/span&gt;&lt;span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;memtype&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;=access;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;b&gt;&lt;span style="background-color: white; color: navy; font-family: 'Courier New'; font-size: 10pt;"&gt;run&lt;/span&gt;&lt;/b&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/span&gt;&lt;b&gt;&lt;span style="background-color: white; color: navy; font-family: 'Courier New'; font-size: 10pt;"&gt;quit&lt;/span&gt;&lt;/b&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: green; font-family: 'Courier New'; font-size: 10pt;"&gt;*This final data step deletes your temporary folders xlsv and xlsa that were created in the PROC ACCESS step;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; font-family: 'Times New Roman',serif;"&gt;LIMITATIONS:&amp;nbsp; This procedure has few/no limitations, once you write the code once, it can be re-used and customized to fit the file you’re importing.&amp;nbsp; It is the most common way I import files.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="border: medium none; padding: 0in 0in 1pt;"&gt;&lt;div class="MsoNormal" style="border: medium none; line-height: normal; margin-bottom: 0in; padding: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; font-family: 'Times New Roman',serif;"&gt;Option 3:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; font-family: 'Times New Roman',serif;"&gt;This final option is through writing a SAS macro, it is the most challenging but very useful.&amp;nbsp; I usually use this option when I am importing a dataset, making quick changes, i.e. imputation, and then exporting it right out as an excel file.&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;b&gt;&lt;span style="background-color: white; color: navy; font-family: 'Courier New'; font-size: 10pt;"&gt;%macro&lt;/span&gt;&lt;/b&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; impo(data=);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;PROC IMPORT OUT= WORK.Data &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATAFILE= &lt;/span&gt;&lt;span style="background-color: white; color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;"C:\folder\datasets\&amp;amp;data"&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBMS=EXCEL REPLACE;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SHEET=&lt;/span&gt;&lt;span style="background-color: white; color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;"&amp;amp;data"&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GETNAMES=YES;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MIXED=NO;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCANTEXT=YES;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USEDATE=YES;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCANTIME=YES;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;RUN;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;b&gt;&lt;span style="background-color: white; color: navy; font-family: 'Courier New'; font-size: 10pt;"&gt;%mend&lt;/span&gt;&lt;/b&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: green; font-family: 'Courier New'; font-size: 10pt;"&gt;*You are writing a macro called impo by using the proc import option.&amp;nbsp; The file is imported into your work library so nothing needs to be done for renaming the file. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: green; font-family: 'Courier New'; font-size: 10pt;"&gt;DATAFILE= "C:\folder\datasets\&amp;amp;data", tells&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the location of your excel file. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: green; font-family: 'Courier New'; font-size: 10pt;"&gt;SHEET="&amp;amp;data", tells SAS the sheet will be named when you call the macro.&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: green; font-family: 'Courier New'; font-size: 10pt;"&gt;NOTE: The sheet and excel file must be named the same.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: green; font-family: 'Courier New'; font-size: 10pt;"&gt;All of the other commands should be familiar.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: green; font-family: 'Courier New'; font-size: 10pt;"&gt;The code is ended with the %mend to tell SAS the macro is completed.;&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;%&lt;b&gt;&lt;i&gt;impo&lt;/i&gt;&lt;/b&gt;(data=dataset);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: green; font-family: 'Courier New'; font-size: 10pt;"&gt;*Here you are calling the macro you just created and saying the excel database is called "dataset".&amp;nbsp; Once these two steps are run, the sheet has been imported.;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; font-family: 'Times New Roman',serif;"&gt;This option is extremely useful when importing numerous datasets all in the same SAS program.&amp;nbsp; I use this primarily when doing quick steps, i.e. imputation, summary variables, ect.&amp;nbsp; Very useful when used for the right reasons, otherwise unnecessary steps.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border: medium none; padding: 0in 0in 1pt;"&gt;&lt;div class="MsoNormal" style="border: medium none; line-height: normal; margin-bottom: 0in; padding: 0in;"&gt;&lt;span style="background-color: white; font-family: 'Times New Roman',serif;"&gt;LIMITATIONS:&amp;nbsp; writing a SAS macro takes a few extra steps, but any extra steps can create errors.&amp;nbsp; This is time consuming and if used for the wrong reasons, just unnecessary.&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; font-family: 'Times New Roman',serif;"&gt;There are many ways to import Excel files, but I just wanted to show the ones I use the most, and believe the most useful.&amp;nbsp; However, if you ask someone else, I’m sure they will mention other options.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;"&gt;&lt;span style="background-color: white; font-family: 'Times New Roman',serif;"&gt;Cheers!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1019476628971015159-416418907074737420?l=sasbeginner.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sasbeginner.blogspot.com/feeds/416418907074737420/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sasbeginner.blogspot.com/2010/08/excel-import.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1019476628971015159/posts/default/416418907074737420'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1019476628971015159/posts/default/416418907074737420'/><link rel='alternate' type='text/html' href='http://sasbeginner.blogspot.com/2010/08/excel-import.html' title='Excel Import'/><author><name>SASguru</name><uri>http://www.blogger.com/profile/02999342912045326635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1019476628971015159.post-3944152418265921294</id><published>2010-08-02T09:50:00.000-07:00</published><updated>2010-08-03T16:22:45.838-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Import'/><title type='text'>Import from SPSS</title><content type='html'>One of the most common importation question asked is how to import SPSS files into SAS. &amp;nbsp;My longterm plan is to provide a quick guide on how to import every file format into SAS. &amp;nbsp;However, SPSS is by far the most frequently asked format, so it will be explained first.&lt;br /&gt;&lt;br /&gt;Two excellent options exist:&lt;br /&gt;&lt;br /&gt;1.) Through a program, like Stat-transfer&lt;br /&gt;&lt;br /&gt;2.) Via an SPSS portable file straight into SAS.&lt;br /&gt;*********************************************&lt;br /&gt;Option 1, Stat-transfer is an excellent program for a simple conversion from an SPSS file into a SAS file. &amp;nbsp;It can be used for either an SPSS portable file (.por) or a normal SPSS data file (.sav). &amp;nbsp;This program does cost money, so it isn't a preferred option, unless you need to transfer a variety of file formats into SAS files (i.e. Access, ascii, excel, matlab, minitab, s-plus, STATA, ect.). &amp;nbsp;Stat-transfer is the only transfer program I have used. &amp;nbsp;It has always worked great, so I would recommend this program if you frequently need to import files into SAS from a variety of data formats.&lt;br /&gt;&lt;br /&gt;Option 2, Import a portable SPSS file directly into SAS.&lt;br /&gt;&lt;br /&gt;The first step is save the SPSS data file as a portable file (.por). &lt;br /&gt;&lt;br /&gt;1.) Open the file in SPSS.&lt;br /&gt;2.) Go to File -&amp;gt; Save As...&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A new window will open, you will type in the new file name and in the "Save as type" drop down &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;menu, choose "Portable (*.por)". &amp;nbsp;This will save the file into the same folder as the original&lt;br /&gt;SPSS file unless otherwise stated.&lt;br /&gt;&lt;br /&gt;***Note: You will see the option of saving the file as "SAS v7+ Windows long extention (*.sas7bdat). &amp;nbsp;This is the normal SAS file extension, but this will often not import into SAS properly.&lt;br /&gt;&lt;br /&gt;Now your file is saved as a portable SPSS file, lets get it into SAS.&lt;br /&gt;*****************************************************************************&lt;br /&gt;&lt;span class="Apple-style-span" style="color: green; font-family: 'Courier New'; font-size: 13px;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;libname&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: green; font-family: 'Courier New'; font-size: 13px;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;a&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: green; font-family: 'Courier New'; font-size: 13px;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;spss&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: green; font-family: 'Courier New'; font-size: 13px;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: green; font-family: 'Courier New'; font-size: 13px;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;'d:\SAS Folder\spssfile.por'&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: green; font-family: 'Courier New'; font-size: 13px;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: green; font-family: 'Courier New'; font-size: 13px;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New'; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New'; font-size: small;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New'; font-size: small;"&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: 'Times New Roman';"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="color: green; font-family: 'Courier New'; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: black; font-family: 'Times New Roman';"&gt;&lt;span class="Apple-style-span" style="color: green; font-family: 'Courier New'; font-size: small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: black; font-family: 'Times New Roman';"&gt;&lt;span class="Apple-style-span" style="color: green; font-family: 'Courier New'; font-size: small;"&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: green; font-family: 'Courier New'; font-size: 10pt;"&gt;*ANNOTATION: With the libname statement we are creating a new library to import SPSS. In this example I am calling the SAS library "a". This is followed by the SPSS command.&amp;nbsp; Lastly, the file location, including the .por extension;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="color: green;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;libname&lt;/span&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;b&amp;nbsp;&lt;/span&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;'C:\SAS Folder'&lt;/span&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: green; font-family: 'Courier New'; font-size: 10pt;"&gt;*ANNOTATION: Now you have imported the file into library "a", which can be found in the explorer tab. If you open the library you see the file as "_first_"&amp;nbsp; however, this file contains errors. So we want to save this into a permanent SAS dataset, so we create a new SAS library with the libname statement;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="color: green;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: navy; font-family: 'Courier New'; font-size: 10pt;"&gt;data&lt;/span&gt;&lt;/b&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;b.data;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;set&lt;/span&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;a._first_;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: navy; font-family: 'Courier New'; font-size: 10pt;"&gt;run&lt;/span&gt;&lt;/b&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;*ANNOTATION: Finally, we are saving the SPSS file "a._first_" into a permanent SAS file in the "b" library with the file name "data". Now you will be able to see your SAS dataset in the file-folder “C:\SAS Folder” as "data.sas7bdat";&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: green; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: green; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;*****************************************************************************&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;If you follow these steps the file will be converted from an SPSS dataset into a working SAS dataset, which you may now use for any analysis. &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1019476628971015159-3944152418265921294?l=sasbeginner.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sasbeginner.blogspot.com/feeds/3944152418265921294/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sasbeginner.blogspot.com/2010/08/import-from-spss.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1019476628971015159/posts/default/3944152418265921294'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1019476628971015159/posts/default/3944152418265921294'/><link rel='alternate' type='text/html' href='http://sasbeginner.blogspot.com/2010/08/import-from-spss.html' title='Import from SPSS'/><author><name>SASguru</name><uri>http://www.blogger.com/profile/02999342912045326635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1019476628971015159.post-5490440290068713637</id><published>2010-07-31T21:17:00.000-07:00</published><updated>2010-07-31T21:29:29.531-07:00</updated><title type='text'>About</title><content type='html'>&lt;div style="color: #666666; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 12px; line-height: 20px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;Today I was driving home from work while contemplating the two-hour conversation I had with my&amp;nbsp;colleague&amp;nbsp;prior to leaving. &amp;nbsp;The conversation involved a detailed&amp;nbsp;explanation&amp;nbsp;on a variety of ways to import an SPSS file into SAS for analysis. &amp;nbsp;This conversation has&amp;nbsp;occurred&amp;nbsp;on multiple occasions with a variety of people, which made me contemplate the original hours it took me to learn these now routine procedures. &amp;nbsp;When I attempted to learn these skills, I found guides and information, but nothing that was crystal clear. &amp;nbsp;However, over the years, I have honed my skills on ways to annotate and explain these procedures so that any of my&amp;nbsp;colleagues&amp;nbsp;could follow the steps for their own projects.&lt;/div&gt;&lt;div style="color: #666666; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 12px; line-height: 20px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;This guide will begin by explaining some of the most common questions I have received, and I will be providing multiple solutions to the same problem, from a beginners prospective. &amp;nbsp;I will guide you from the&amp;nbsp;explanation&amp;nbsp;of the problem to the final solution. &amp;nbsp;This guide is here to help others, so please don’t hesitate to comment or ask specific questions, if you have this problem other people probably have as well. &amp;nbsp;I look forward to providing these tips for all future SAS experts.&lt;/div&gt;&lt;div style="color: #666666; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 12px; line-height: 20px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;Cheers! &amp;nbsp;~David&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1019476628971015159-5490440290068713637?l=sasbeginner.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sasbeginner.blogspot.com/feeds/5490440290068713637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sasbeginner.blogspot.com/2010/07/about-sas-beginners-guide.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1019476628971015159/posts/default/5490440290068713637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1019476628971015159/posts/default/5490440290068713637'/><link rel='alternate' type='text/html' href='http://sasbeginner.blogspot.com/2010/07/about-sas-beginners-guide.html' title='About'/><author><name>SASguru</name><uri>http://www.blogger.com/profile/02999342912045326635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
