<?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: Give value to a parameter in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Give-value-to-a-parameter/m-p/671966#M201859</link>
    <description>Thank you!</description>
    <pubDate>Thu, 23 Jul 2020 23:35:54 GMT</pubDate>
    <dc:creator>Jonison</dc:creator>
    <dc:date>2020-07-23T23:35:54Z</dc:date>
    <item>
      <title>Give value to a parameter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Give-value-to-a-parameter/m-p/671927#M201842</link>
      <description>&lt;P&gt;Hello, Expert, I have a simple question. I established a query to store the value (which will be changed under specific condition), and then want to give this value to variable J which will be used by other Macros. I was using '&amp;amp;let' but system showed wrong. Can you give me some advice, still a newbee to SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE WORK.Number AS&lt;BR /&gt;SELECT (MAX(t1.'Primary ID'n)) FORMAT=BEST12. AS RowNum&lt;BR /&gt;FROM WORK.modeltraining_blocked t1;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%let j=int(number.Rownum/7);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc print data=work.number.rownum;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 19:20:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Give-value-to-a-parameter/m-p/671927#M201842</guid>
      <dc:creator>Jonison</dc:creator>
      <dc:date>2020-07-23T19:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Give value to a parameter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Give-value-to-a-parameter/m-p/671931#M201844</link>
      <description>&lt;P&gt;To put the value from a SQL query into a macro variable, use the INTO : clause &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
SELECT int( MAX('Primary ID'n) / 7) into : J
FROM modeltraining_blocked;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Jul 2020 19:31:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Give-value-to-a-parameter/m-p/671931#M201844</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-07-23T19:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Give value to a parameter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Give-value-to-a-parameter/m-p/671945#M201845</link>
      <description>&lt;P&gt;PROC SQL;&lt;BR /&gt;SELECT MAX(t1.'Primary ID'n/7) FORMAT=BEST12. into&amp;nbsp; :RowNum&lt;BR /&gt;FROM WORK.modeltraining_blocked t1;&lt;BR /&gt;QUIT;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;%put &amp;amp;rownum.;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 19:55:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Give-value-to-a-parameter/m-p/671945#M201845</guid>
      <dc:creator>smantha</dc:creator>
      <dc:date>2020-07-23T19:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Give value to a parameter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Give-value-to-a-parameter/m-p/671966#M201859</link>
      <description>Thank you!</description>
      <pubDate>Thu, 23 Jul 2020 23:35:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Give-value-to-a-parameter/m-p/671966#M201859</guid>
      <dc:creator>Jonison</dc:creator>
      <dc:date>2020-07-23T23:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Give value to a parameter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Give-value-to-a-parameter/m-p/671967#M201860</link>
      <description>thank you!</description>
      <pubDate>Thu, 23 Jul 2020 23:36:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Give-value-to-a-parameter/m-p/671967#M201860</guid>
      <dc:creator>Jonison</dc:creator>
      <dc:date>2020-07-23T23:36:20Z</dc:date>
    </item>
  </channel>
</rss>

