<?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: sas reading variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/sas-reading-variables/m-p/661662#M197714</link>
    <description>&lt;P&gt;It work! Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jun 2020 10:36:09 GMT</pubDate>
    <dc:creator>GeraldKoye</dc:creator>
    <dc:date>2020-06-17T10:36:09Z</dc:date>
    <item>
      <title>sas reading variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-reading-variables/m-p/661455#M197705</link>
      <description>&lt;P&gt;Is it possible to use an excel file of parameters (allowance tax, expense fee ...) that sas can read and interpret as variables in the project?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 09:21:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-reading-variables/m-p/661455#M197705</guid>
      <dc:creator>GeraldKoye</dc:creator>
      <dc:date>2020-06-17T09:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: sas reading variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-reading-variables/m-p/661483#M197706</link>
      <description>&lt;P&gt;Do you mean to treat the contents of the spreadsheet as name/value pairs for the creation of macro variables?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 09:26:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-reading-variables/m-p/661483#M197706</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-06-17T09:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: sas reading variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-reading-variables/m-p/661499#M197708</link>
      <description>yes! exactly</description>
      <pubDate>Wed, 17 Jun 2020 09:28:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-reading-variables/m-p/661499#M197708</guid>
      <dc:creator>GeraldKoye</dc:creator>
      <dc:date>2020-06-17T09:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: sas reading variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-reading-variables/m-p/661516#M197709</link>
      <description>&lt;P&gt;First, you need to make sure that the names are valid SAS names (contain only letters, digits and underscores - no blanks! - and start with a letter or underscore). Then you use CALL SYMPUT or CALL SYMPUTX in a data step:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
set from_excel;
call symputx(name,value,'g');
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The 'g' is only there to make sure that the macro variables are put into the global symbol table, if the step is run in a macro.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 09:34:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-reading-variables/m-p/661516#M197709</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-06-17T09:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: sas reading variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-reading-variables/m-p/661658#M197711</link>
      <description>&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;I've tried but. I don't know how to print the variables.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.variables;
infile datalines4 dlm='7f'x 
missover dsd ;
input 
nom : $char5. 
valeur : best2. ; 
datalines4; 
taux1 50 
taux2 60 
;;;;  ok

data _null_; 
set variabledata;
call symputx(nom,valeur,'g');
 run;
%put taux1;
%put taux2;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Jun 2020 10:12:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-reading-variables/m-p/661658#M197711</guid>
      <dc:creator>GeraldKoye</dc:creator>
      <dc:date>2020-06-17T10:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: sas reading variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-reading-variables/m-p/661661#M197713</link>
      <description>&lt;P&gt;To invoke the macro processor to resolve a macro variable, you need to use the macro trigger &amp;amp;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put &amp;amp;taux1.;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It is also good practice to terminate a macro variable reference with a dot, to prevent ambiguities if it is used in a word.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 10:20:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-reading-variables/m-p/661661#M197713</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-06-17T10:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: sas reading variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-reading-variables/m-p/661662#M197714</link>
      <description>&lt;P&gt;It work! Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 10:36:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-reading-variables/m-p/661662#M197714</guid>
      <dc:creator>GeraldKoye</dc:creator>
      <dc:date>2020-06-17T10:36:09Z</dc:date>
    </item>
  </channel>
</rss>

