<?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: import excel into sas and add fields in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/import-excel-into-sas-and-add-fields/m-p/779523#M248279</link>
    <description>Thank's a lot&lt;BR /&gt;Wish you a good day &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
    <pubDate>Wed, 10 Nov 2021 09:19:02 GMT</pubDate>
    <dc:creator>krisee</dc:creator>
    <dc:date>2021-11-10T09:19:02Z</dc:date>
    <item>
      <title>import excel into sas and add fields</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-excel-into-sas-and-add-fields/m-p/779518#M248274</link>
      <description>&lt;P&gt;Hello from Switzerland&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a temp table importing some fields from an excel file and some other with fixed values:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Those are the fields:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;TABLE_ALIAS&lt;/FONT&gt;, &lt;FONT color="#0000FF"&gt;TABLE_KEY&lt;/FONT&gt;, &lt;FONT color="#FF0000"&gt;FIELD_ALIAS&lt;/FONT&gt;,&lt;FONT color="#0000FF"&gt; FIELD_VALUE&lt;/FONT&gt;,&lt;FONT color="#FF0000"&gt; TASK_TYP&lt;/FONT&gt;, &lt;FONT color="#0000FF"&gt;INSTANCE_NAME&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;the red ones should be fix values for all imported blue one from the excel.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the only part i could do is to import the excel file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;proc import datafile = 'sas_revisor.xlsx'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;out = sas_revisor&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;dbms = xlsx&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;replace&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;can someone tell me how to insert the following fix values:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;TABLE_ALIAS: TABLE_1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;FIELD_ALIAS: FIELD_2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;TASK_TYPE:M&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Kind regards&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 09:09:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-excel-into-sas-and-add-fields/m-p/779518#M248274</guid>
      <dc:creator>krisee</dc:creator>
      <dc:date>2021-11-10T09:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: import excel into sas and add fields</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-excel-into-sas-and-add-fields/m-p/779522#M248278</link>
      <description>&lt;P&gt;After the import, run&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set sas_revisor;
table_alias = "TABLE_1";
/* and so on */
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Nov 2021 09:12:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-excel-into-sas-and-add-fields/m-p/779522#M248278</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-11-10T09:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: import excel into sas and add fields</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-excel-into-sas-and-add-fields/m-p/779523#M248279</link>
      <description>Thank's a lot&lt;BR /&gt;Wish you a good day &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Wed, 10 Nov 2021 09:19:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-excel-into-sas-and-add-fields/m-p/779523#M248279</guid>
      <dc:creator>krisee</dc:creator>
      <dc:date>2021-11-10T09:19:02Z</dc:date>
    </item>
  </channel>
</rss>

