<?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: How to use PUT function in dynamic variables (based on row number) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-PUT-function-in-dynamic-variables-based-on-row-number/m-p/752051#M236837</link>
    <description>&lt;P&gt;I don't see any reason to hold data in macro-variables. Please explain what you expect as result using the data you have shown.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Jul 2021 10:48:47 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2021-07-05T10:48:47Z</dc:date>
    <item>
      <title>How to use PUT function in dynamic variables (based on row number)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-PUT-function-in-dynamic-variables-based-on-row-number/m-p/752040#M236833</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table (Accounts) for example:&lt;/P&gt;&lt;P&gt;Account_Number&amp;nbsp; &amp;nbsp; Name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Birthdate&lt;/P&gt;&lt;P&gt;01&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; Mark&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;January 23, 1988&lt;/P&gt;&lt;P&gt;02&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; Ely&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; March 15, 1956&lt;/P&gt;&lt;P&gt;03&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; Omar&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; June 16, 1987&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The table is dynamically changing from the source data; thus, I need to put them as a macro variable in a loop.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I need to add them on a csv file. I'm trying to use PUT function with a macrovariable in a loop (for example: PUT &amp;amp;Name.i) where is starts from 1 in a loop. How can I print them (or PUT function) on a csv file depending on the row number in a loop? Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 09:26:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-PUT-function-in-dynamic-variables-based-on-row-number/m-p/752040#M236833</guid>
      <dc:creator>Rian0126</dc:creator>
      <dc:date>2021-07-05T09:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to use PUT function in dynamic variables (based on row number)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-PUT-function-in-dynamic-variables-based-on-row-number/m-p/752051#M236837</link>
      <description>&lt;P&gt;I don't see any reason to hold data in macro-variables. Please explain what you expect as result using the data you have shown.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 10:48:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-PUT-function-in-dynamic-variables-based-on-row-number/m-p/752051#M236837</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-07-05T10:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to use PUT function in dynamic variables (based on row number)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-PUT-function-in-dynamic-variables-based-on-row-number/m-p/752178#M236905</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15475"&gt;@andreas_lds&lt;/a&gt;&amp;nbsp;, it's OK now. I found a solution by using another table as reference. I was just thinking of using macro-variables to fetch data when needed and put it on a csv file for report. Somewhat like a header for a repeated data (same person) with further details (different further details like bank transaction for several times). Thanks anyway. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 01:01:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-PUT-function-in-dynamic-variables-based-on-row-number/m-p/752178#M236905</guid>
      <dc:creator>Rian0126</dc:creator>
      <dc:date>2021-07-06T01:01:32Z</dc:date>
    </item>
  </channel>
</rss>

