<?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: Transferring data from Excel to SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Transferring-data-from-Excel-to-SAS/m-p/97381#M20545</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use PROC IMPORT (SAS/ACCESS not required) on a CSV file to create a SAS program that can be tweaked to cater for things like 99 for missing day or month. The code can be seen in the SAS log after running the PROC IMPORT. All you have to do is copy from the log back to your editor window and you have a ready-made DATA step program that can modified to deal with any data issues. A trick with selecting code in your log is to hold down the Alt key when selecting the code block with your mouse. Then just do a Windows Copy and Paste. That way you avoid copying the line numbers. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Feb 2013 22:04:09 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2013-02-06T22:04:09Z</dc:date>
    <item>
      <title>Transferring data from Excel to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transferring-data-from-Excel-to-SAS/m-p/97372#M20536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I found the following MACRO &lt;A href="http://www.google.com/url?sa=t&amp;amp;rct=j&amp;amp;q=macro%20exdde%20sas&amp;amp;source=web&amp;amp;cd=2&amp;amp;cad=rja&amp;amp;ved=0CDUQFjAB&amp;amp;url=http%3A%2F%2Fwww2.sas.com%2Fproceedings%2Fsugi29%2F082-29.pdf&amp;amp;ei=xRcQUZmNAYig8QTaxoCYAw&amp;amp;usg=AFQjCNFmUvtPwRiiumePY9QR6f9cs4uPFQ&amp;amp;bvm=bv.41867550,d.eWU" title="http://www.google.com/url?sa=t&amp;amp;rct=j&amp;amp;q=macro%20exdde%20sas&amp;amp;source=web&amp;amp;cd=2&amp;amp;cad=rja&amp;amp;ved=0CDUQFjAB&amp;amp;url=http%3A%2F%2Fwww2.sas.com%2Fproceedings%2Fsugi29%2F082-29.pdf&amp;amp;ei=xRcQUZmNAYig8QTaxoCYAw&amp;amp;usg=AFQjCNFmUvtPwRiiumePY9QR6f9cs4uPFQ&amp;amp;bvm=bv.41867550,d.eWU"&gt;http://www.google.com/url?sa=t&amp;amp;rct=j&amp;amp;q=macro%20exdde%20sas&amp;amp;source=web&amp;amp;cd=2&amp;amp;cad=rja&amp;amp;ved=0CDUQFjAB&amp;amp;url=http%3A%2F%2Fwww2.sas.com%2Fproceedings%2Fsugi29%2F082-29.pdf&amp;amp;ei=xRcQUZmNAYig8QTaxoCYAw&amp;amp;usg=AFQjCNFmUvtPwRiiumePY9QR6f9cs4uPFQ&amp;amp;bvm=bv.41867550,d.eWU&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to use in SAS; however, I get an error message when I use it. What could be the problem? Also, if there is another way to import data from Excel (preferably xlsx into SAS and be able to systematically format variables), please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2247&amp;nbsp; %EXDDE(/*** 1. Parameters related to the input Excel file ***/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 180&lt;/P&gt;&lt;P&gt;WARNING: Apparent invocation of macro EXDDE not resolved.&lt;/P&gt;&lt;P&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;2248&amp;nbsp; Excel = ON, /* = ON, the Excel file is open; otherwise, the macro opens the Excel file */&lt;/P&gt;&lt;P&gt;2249&amp;nbsp; Xlsexe =C:\Program Files (x86)\Microsoft Office\Office14, /* Location of Microsoft Excel&lt;/P&gt;&lt;P&gt;2249! on the C: drive */&lt;/P&gt;&lt;P&gt;2250&amp;nbsp; Rawdir =U:\HC Diabetes\datacuts, /* REQUIRED. Input Excel file directory */&lt;/P&gt;&lt;P&gt;2251&amp;nbsp; File = DM_Pilot_revisions_09242012, /* REQUIRED. Input Excel file name */&lt;/P&gt;&lt;P&gt;2252&amp;nbsp; Sheet = Sheet4,/* Worksheet name(s), e.g., Sheet1|Sheet2. Sheet1 by default. */&lt;/P&gt;&lt;P&gt;2253&amp;nbsp; Lrecl = 60, /* Length of the Excel file, default is 256 */&lt;/P&gt;&lt;P&gt;2254&amp;nbsp; StartR =2, /* Row number of the 1st cell to read */&lt;/P&gt;&lt;P&gt;2255&amp;nbsp; StartC =1, /* Column number of the 1st cell to read */&lt;/P&gt;&lt;P&gt;2256&amp;nbsp; EndR =11, /* Row number of the last cell to read */&lt;/P&gt;&lt;P&gt;2257&amp;nbsp; EndC =60, /* Column number of the last cell to read */&lt;/P&gt;&lt;P&gt;2258&amp;nbsp; /*** 2. Parameters related to the output SAS dataset ***/&lt;/P&gt;&lt;P&gt;2259&amp;nbsp; Var =, form IDcode_new&amp;nbsp; TTMID&amp;nbsp;&amp;nbsp; race_ethnicity&amp;nbsp; race_other&amp;nbsp; startdate&amp;nbsp;&amp;nbsp; enddate&lt;/P&gt;&lt;P&gt;2259! Diabetes_type_1 Diabetes_type_2 Diabetes_type_no&amp;nbsp;&amp;nbsp;&amp;nbsp; Diabetes_type_unkn&amp;nbsp; Diabetes_screen&lt;/P&gt;&lt;P&gt;2259! Wt_baseline Hba1c_baseline&amp;nbsp; DOB_claims&amp;nbsp; DOB_chart&amp;nbsp;&amp;nbsp; Gender_chart&amp;nbsp;&amp;nbsp;&amp;nbsp; Gender_claims&lt;/P&gt;&lt;P&gt;2259! education_completed employment&amp;nbsp; T2Dm_date&amp;nbsp;&amp;nbsp; Chart_type&amp;nbsp; height_value&amp;nbsp;&amp;nbsp;&amp;nbsp; Height_units&lt;/P&gt;&lt;P&gt;2259! Smoker&amp;nbsp; years_smoked&amp;nbsp;&amp;nbsp;&amp;nbsp; units_smoker&amp;nbsp;&amp;nbsp;&amp;nbsp; BMI_values&amp;nbsp; BMI_1&amp;nbsp;&amp;nbsp; BMI_2&amp;nbsp;&amp;nbsp; BMI_3&amp;nbsp;&amp;nbsp; BMI_4&lt;/P&gt;&lt;P&gt;2259! HbA1c_1 Weight_1&amp;nbsp;&amp;nbsp;&amp;nbsp; weight_units_1&amp;nbsp; weight_date_1&amp;nbsp;&amp;nbsp; Weight_2&amp;nbsp;&amp;nbsp;&amp;nbsp; weight_units_2&amp;nbsp; Weight_3&lt;/P&gt;&lt;P&gt;2259!&amp;nbsp;&amp;nbsp; weight_units_3&amp;nbsp; Weight_4&amp;nbsp;&amp;nbsp;&amp;nbsp; Weight_5&amp;nbsp;&amp;nbsp;&amp;nbsp; Weight_6&amp;nbsp;&amp;nbsp;&amp;nbsp; weight_units_6&amp;nbsp; weight_units_5&lt;/P&gt;&lt;P&gt;2259! weight_units_4&amp;nbsp; weight_date_2&amp;nbsp;&amp;nbsp; weight_date_3&amp;nbsp;&amp;nbsp; weight_date_4&amp;nbsp;&amp;nbsp; weight_date_5&lt;/P&gt;&lt;P&gt;2259! weight_date_6&amp;nbsp;&amp;nbsp; Weight_7&amp;nbsp;&amp;nbsp;&amp;nbsp; weight_units_7&amp;nbsp; weight_date_7&amp;nbsp;&amp;nbsp; Weight_8&amp;nbsp;&amp;nbsp;&amp;nbsp; weight_units_8&lt;/P&gt;&lt;P&gt;2259! weight_date_8&amp;nbsp;&amp;nbsp; weight_units_9&amp;nbsp; Weight_9&amp;nbsp;&amp;nbsp;&amp;nbsp; weight_date_9&lt;/P&gt;&lt;P&gt;2260&amp;nbsp; Fmt = best32.&amp;nbsp;&amp;nbsp; 10. 14. 2.&amp;nbsp; $32.&amp;nbsp;&amp;nbsp;&amp;nbsp; mmddyy10.&amp;nbsp;&amp;nbsp; mmddyy10.&amp;nbsp;&amp;nbsp; 2.&amp;nbsp; 2.&amp;nbsp; 2.&amp;nbsp; 2.&amp;nbsp; 2.&amp;nbsp; 10. 10.&lt;/P&gt;&lt;P&gt;2260! mmddyy10.&amp;nbsp;&amp;nbsp; $10.&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.&amp;nbsp; $10.&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.&amp;nbsp; 2.&amp;nbsp; $10.&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.&amp;nbsp; 10. 2.&amp;nbsp; 2.&amp;nbsp; 10. 10. 2.&amp;nbsp; 10. 10. 10.&lt;/P&gt;&lt;P&gt;2260! 10. 10. 10. 2.&amp;nbsp; $10.&amp;nbsp;&amp;nbsp;&amp;nbsp; 10. 2.&amp;nbsp; 10. 2.&amp;nbsp; 10. 10. 10. 2.&amp;nbsp; 2.&amp;nbsp; 2.&amp;nbsp; $10.&amp;nbsp;&amp;nbsp;&amp;nbsp; $10.&amp;nbsp;&amp;nbsp;&amp;nbsp; $10.&lt;/P&gt;&lt;P&gt;2260! $10.&amp;nbsp;&amp;nbsp;&amp;nbsp; $10.&amp;nbsp;&amp;nbsp;&amp;nbsp; 10. 2.&amp;nbsp; $10.&amp;nbsp;&amp;nbsp;&amp;nbsp; 10. 2.&amp;nbsp; $10.&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.&amp;nbsp; 10. $10.,&lt;/P&gt;&lt;P&gt;2261&amp;nbsp; Dum =, /* Extraneous variables need to be dropped */&lt;/P&gt;&lt;P&gt;2262&amp;nbsp; Flag =001, /* Flag for the sub-sheet origin of the data */&lt;/P&gt;&lt;P&gt;2263&amp;nbsp; Outdata= dm, /* REQUIRED. Output SAS data set name */&lt;/P&gt;&lt;P&gt;2264&lt;/P&gt;&lt;P&gt;2265&amp;nbsp; /*** 3. Process related parameters ***/&lt;/P&gt;&lt;P&gt;2266&amp;nbsp; Sleep =, /* Seconds that SAS is suspended from execution while opening up the Excel file&lt;/P&gt;&lt;P&gt;2266! */&lt;/P&gt;&lt;P&gt;2267&amp;nbsp; Debug = /* Whether to keep intermediate data sets, default=NO */);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2013 20:37:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transferring-data-from-Excel-to-SAS/m-p/97372#M20536</guid>
      <dc:creator>kstringer</dc:creator>
      <dc:date>2013-02-04T20:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring data from Excel to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transferring-data-from-Excel-to-SAS/m-p/97373#M20537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you trying to deal with a lot of variables that don't get imported properly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What version of SAS are you on and do you have SAS/ACCESS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2013 20:47:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transferring-data-from-Excel-to-SAS/m-p/97373#M20537</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-02-04T20:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring data from Excel to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transferring-data-from-Excel-to-SAS/m-p/97374#M20538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using SAS 9.2. &lt;BR /&gt;I do not have SAS/ACCESS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2013 20:59:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transferring-data-from-Excel-to-SAS/m-p/97374#M20538</guid>
      <dc:creator>kstringer</dc:creator>
      <dc:date>2013-02-04T20:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring data from Excel to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transferring-data-from-Excel-to-SAS/m-p/97375#M20539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I presume you are running on a PC, so you should have EGuide.&amp;nbsp; It has some nice tools for importing SAS that don't use SAS/Access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The initial problem you described is that SAS could not find the macro to run it.&amp;nbsp; You either need to include the macro in a SASAUTOS directory or explicitly include it in the session code with %INCLUDE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doc Muhlbaier&lt;/P&gt;&lt;P&gt;Duke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 13:58:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transferring-data-from-Excel-to-SAS/m-p/97375#M20539</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2013-02-05T13:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring data from Excel to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transferring-data-from-Excel-to-SAS/m-p/97376#M20540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply. Where I put the %include? Is there a more efficient way to import a lot of variables from excel that don't import properly (look like dates but need to be imported as text, etc)? I still get the following when I add the %include at the beginning of the macro:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;14121&amp;nbsp; %INCLUDE&lt;/P&gt;&lt;P&gt;14122&amp;nbsp; %EXDDE(/*** 1. Parameters related to the input Excel file ***/&lt;/P&gt;&lt;P&gt;WARNING: Apparent invocation of macro EXDDE not resolved.&lt;/P&gt;&lt;P&gt;14123&amp;nbsp; Excel = ON, /* = ON, the Excel file is open; otherwise, the macro opens the Excel file */&lt;/P&gt;&lt;P&gt;14124&amp;nbsp; Xlsexe =C:\Program Files (x86)\Microsoft Office\Office14, /* Location of Microsoft Excel&lt;/P&gt;&lt;P&gt;14124! on the C: drive */&lt;/P&gt;&lt;P&gt;14125&amp;nbsp; Rawdir =U:\HC Diabetes\datacuts, /* REQUIRED. Input Excel file directory */&lt;/P&gt;&lt;P&gt;14126&amp;nbsp; File = DM_Pilot_revisions_09242012, /* REQUIRED. Input Excel file name */&lt;/P&gt;&lt;P&gt;14127&amp;nbsp; Sheet = Sheet4,/* Worksheet name(s), e.g., Sheet1|Sheet2. Sheet1 by default. */&lt;/P&gt;&lt;P&gt;14128&amp;nbsp; Lrecl = 60, /* Length of the Excel file, default is 256 */&lt;/P&gt;&lt;P&gt;14129&amp;nbsp; StartR =2, /* Row number of the 1st cell to read */&lt;/P&gt;&lt;P&gt;14130&amp;nbsp; StartC =1, /* Column number of the 1st cell to read */&lt;/P&gt;&lt;P&gt;14131&amp;nbsp; EndR =11, /* Row number of the last cell to read */&lt;/P&gt;&lt;P&gt;14132&amp;nbsp; EndC =60, /* Column number of the last cell to read */&lt;/P&gt;&lt;P&gt;14133&amp;nbsp; /*** 2. Parameters related to the output SAS dataset ***/&lt;/P&gt;&lt;P&gt;14134&amp;nbsp; Var =, form IDcode_new&amp;nbsp; TTMID&amp;nbsp;&amp;nbsp; race_ethnicity&amp;nbsp; race_other&amp;nbsp; startdate&amp;nbsp;&amp;nbsp; enddate&lt;/P&gt;&lt;P&gt;14134! Diabetes_type_1 Diabetes_type_2 Diabetes_type_no&amp;nbsp;&amp;nbsp;&amp;nbsp; Diabetes_type_unkn&amp;nbsp; Diabetes_screen&lt;/P&gt;&lt;P&gt;14134! Wt_baseline Hba1c_baseline&amp;nbsp; DOB_claims&amp;nbsp; DOB_chart&amp;nbsp;&amp;nbsp; Gender_chart&amp;nbsp;&amp;nbsp;&amp;nbsp; Gender_claims&lt;/P&gt;&lt;P&gt;14134! education_completed employment&amp;nbsp; T2Dm_date&amp;nbsp;&amp;nbsp; Chart_type&amp;nbsp; height_value&amp;nbsp;&amp;nbsp;&amp;nbsp; Height_units&lt;/P&gt;&lt;P&gt;14134! Smoker&amp;nbsp; years_smoked&amp;nbsp;&amp;nbsp;&amp;nbsp; units_smoker&amp;nbsp;&amp;nbsp;&amp;nbsp; BMI_values&amp;nbsp; BMI_1&amp;nbsp;&amp;nbsp; BMI_2&amp;nbsp;&amp;nbsp; BMI_3&amp;nbsp;&amp;nbsp; BMI_4&lt;/P&gt;&lt;P&gt;14134! HbA1c_1 Weight_1&amp;nbsp;&amp;nbsp;&amp;nbsp; weight_units_1&amp;nbsp; weight_date_1&amp;nbsp;&amp;nbsp; Weight_2&amp;nbsp;&amp;nbsp;&amp;nbsp; weight_units_2&amp;nbsp; Weight_3&lt;/P&gt;&lt;P&gt;14134!&amp;nbsp;&amp;nbsp;&amp;nbsp; weight_units_3&amp;nbsp; Weight_4&amp;nbsp;&amp;nbsp;&amp;nbsp; Weight_5&amp;nbsp;&amp;nbsp;&amp;nbsp; Weight_6&amp;nbsp;&amp;nbsp;&amp;nbsp; weight_units_6&amp;nbsp; weight_units_5&lt;/P&gt;&lt;P&gt;14134! weight_units_4&amp;nbsp; weight_date_2&amp;nbsp;&amp;nbsp; weight_date_3&amp;nbsp;&amp;nbsp; weight_date_4&amp;nbsp;&amp;nbsp; weight_date_5&lt;/P&gt;&lt;P&gt;14134! weight_date_6&amp;nbsp;&amp;nbsp; Weight_7&amp;nbsp;&amp;nbsp;&amp;nbsp; weight_units_7&amp;nbsp; weight_date_7&amp;nbsp;&amp;nbsp; Weight_8&amp;nbsp;&amp;nbsp;&amp;nbsp; weight_units_8&lt;/P&gt;&lt;P&gt;14134! weight_date_8&amp;nbsp;&amp;nbsp; weight_units_9&amp;nbsp; Weight_9&amp;nbsp;&amp;nbsp;&amp;nbsp; weight_date_9&lt;/P&gt;&lt;P&gt;14135&amp;nbsp; Fmt = best32.&amp;nbsp;&amp;nbsp; 10. 14. 2.&amp;nbsp; $32.&amp;nbsp;&amp;nbsp;&amp;nbsp; mmddyy10.&amp;nbsp;&amp;nbsp; mmddyy10.&amp;nbsp;&amp;nbsp; 2.&amp;nbsp; 2.&amp;nbsp; 2.&amp;nbsp; 2.&amp;nbsp; 2.&amp;nbsp; 10. 10.&lt;/P&gt;&lt;P&gt;14135! mmddyy10.&amp;nbsp;&amp;nbsp; $10.&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.&amp;nbsp; $10.&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.&amp;nbsp; 2.&amp;nbsp; $10.&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.&amp;nbsp; 10. 2.&amp;nbsp; 2.&amp;nbsp; 10. 10. 2.&amp;nbsp; 10. 10. 10.&lt;/P&gt;&lt;P&gt;14135! 10. 10. 10. 2.&amp;nbsp; $10.&amp;nbsp;&amp;nbsp;&amp;nbsp; 10. 2.&amp;nbsp; 10. 2.&amp;nbsp; 10. 10. 10. 2.&amp;nbsp; 2.&amp;nbsp; 2.&amp;nbsp; $10.&amp;nbsp;&amp;nbsp;&amp;nbsp; $10.&amp;nbsp;&amp;nbsp;&amp;nbsp; $10.&lt;/P&gt;&lt;P&gt;14135! $10.&amp;nbsp;&amp;nbsp;&amp;nbsp; $10.&amp;nbsp;&amp;nbsp;&amp;nbsp; 10. 2.&amp;nbsp; $10.&amp;nbsp;&amp;nbsp;&amp;nbsp; 10. 2.&amp;nbsp; $10.&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.&amp;nbsp; 10. $10.,&lt;/P&gt;&lt;P&gt;14136&amp;nbsp; Dum =, /* Extraneous variables need to be dropped */&lt;/P&gt;&lt;P&gt;14137&amp;nbsp; Flag =001, /* Flag for the sub-sheet origin of the data */&lt;/P&gt;&lt;P&gt;14138&amp;nbsp; Outdata= dm, /* REQUIRED. Output SAS data set name */&lt;/P&gt;&lt;P&gt;14139&lt;/P&gt;&lt;P&gt;14140&amp;nbsp; /*** 3. Process related parameters ***/&lt;/P&gt;&lt;P&gt;14141&amp;nbsp; Sleep =, /* Seconds that SAS is suspended from execution while opening up the Excel file&lt;/P&gt;&lt;P&gt;14141! */&lt;/P&gt;&lt;P&gt;14142&amp;nbsp; Debug = /* Whether to keep intermediate data sets, default=NO */);&lt;/P&gt;&lt;P&gt;ERROR: Incorrect %INCLUDE statement will not be executed. There is a syntax error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 14:09:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transferring-data-from-Excel-to-SAS/m-p/97376#M20540</guid>
      <dc:creator>kstringer</dc:creator>
      <dc:date>2013-02-05T14:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring data from Excel to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transferring-data-from-Excel-to-SAS/m-p/97377#M20541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;RTFM.&amp;nbsp; %INCLUDE is a statement that takes a filename as it's parameter.&amp;nbsp; The filename is the .sas code that is the macro.&amp;nbsp; You could do it manually, as well, buy just pasting the macro code into your session; then you would not need the %INCLUDE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 14:35:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transferring-data-from-Excel-to-SAS/m-p/97377#M20541</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2013-02-05T14:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring data from Excel to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transferring-data-from-Excel-to-SAS/m-p/97378#M20542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about saving the Excel spreadsheet as a CSV and avoiding the complexity of DDE?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 18:55:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transferring-data-from-Excel-to-SAS/m-p/97378#M20542</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2013-02-06T18:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring data from Excel to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transferring-data-from-Excel-to-SAS/m-p/97379#M20543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have done that, but some of the variables read in incorretly. For example, I have dates that have "99" for missing day or month, and these values don't come in. I need the variables to read in as text. I know I can use informat statements to correct the way they are read in, but it's very time consuming. I have one dataset with 1600 variables that need to be read in correctly. If you have any suggestions, I'm very much appreciative.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 21:20:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transferring-data-from-Excel-to-SAS/m-p/97379#M20543</guid>
      <dc:creator>kstringer</dc:creator>
      <dc:date>2013-02-06T21:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring data from Excel to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transferring-data-from-Excel-to-SAS/m-p/97380#M20544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have the code for the macro %EXDDE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its an order of operations things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to run the code that creates the macro and then run the %exdde call, otherwise SAS doesn't know what to do. &lt;/P&gt;&lt;P&gt;The line that follows is another way of running code in SAS, it basically says, 'run the sas code in this file'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%include 'path to the macro code';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 21:38:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transferring-data-from-Excel-to-SAS/m-p/97380#M20544</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-02-06T21:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring data from Excel to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transferring-data-from-Excel-to-SAS/m-p/97381#M20545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use PROC IMPORT (SAS/ACCESS not required) on a CSV file to create a SAS program that can be tweaked to cater for things like 99 for missing day or month. The code can be seen in the SAS log after running the PROC IMPORT. All you have to do is copy from the log back to your editor window and you have a ready-made DATA step program that can modified to deal with any data issues. A trick with selecting code in your log is to hold down the Alt key when selecting the code block with your mouse. Then just do a Windows Copy and Paste. That way you avoid copying the line numbers. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 22:04:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transferring-data-from-Excel-to-SAS/m-p/97381#M20545</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2013-02-06T22:04:09Z</dc:date>
    </item>
  </channel>
</rss>

