<?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: Refer  a variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Refer-a-variable/m-p/233500#M268153</link>
    <description>&lt;P&gt;I can think of at least 10 topics that would be more important to learn about in a DATA step:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;_n_&lt;/P&gt;
&lt;P&gt;variable lists&lt;/P&gt;
&lt;P&gt;arrays&lt;/P&gt;
&lt;P&gt;DO loops&lt;/P&gt;
&lt;P&gt;first. and last.&lt;/P&gt;
&lt;P&gt;MERGE&lt;/P&gt;
&lt;P&gt;multiple SET statements&lt;/P&gt;
&lt;P&gt;RETAIN&lt;/P&gt;
&lt;P&gt;sum statement&lt;/P&gt;
&lt;P&gt;setting lengths of character variables&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To address your question, refer to the variable by the variable name.&amp;nbsp; Any other way isn't important until much later in your SAS education.&amp;nbsp; Spend your time wisely!&lt;/P&gt;</description>
    <pubDate>Fri, 06 Nov 2015 17:44:49 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2015-11-06T17:44:49Z</dc:date>
    <item>
      <title>Refer  a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Refer-a-variable/m-p/233491#M268151</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to know&amp;nbsp;all&amp;nbsp;the possible ways to refer a varaible created in one data step to in an another datastep.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Neal.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 17:11:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Refer-a-variable/m-p/233491#M268151</guid>
      <dc:creator>saslovethemost</dc:creator>
      <dc:date>2015-11-06T17:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Refer  a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Refer-a-variable/m-p/233498#M268152</link>
      <description>&lt;P&gt;Look up the data step commands MERGE and UPDATE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, this is possible in PROC SQL.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 17:35:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Refer-a-variable/m-p/233498#M268152</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-11-06T17:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Refer  a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Refer-a-variable/m-p/233500#M268153</link>
      <description>&lt;P&gt;I can think of at least 10 topics that would be more important to learn about in a DATA step:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;_n_&lt;/P&gt;
&lt;P&gt;variable lists&lt;/P&gt;
&lt;P&gt;arrays&lt;/P&gt;
&lt;P&gt;DO loops&lt;/P&gt;
&lt;P&gt;first. and last.&lt;/P&gt;
&lt;P&gt;MERGE&lt;/P&gt;
&lt;P&gt;multiple SET statements&lt;/P&gt;
&lt;P&gt;RETAIN&lt;/P&gt;
&lt;P&gt;sum statement&lt;/P&gt;
&lt;P&gt;setting lengths of character variables&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To address your question, refer to the variable by the variable name.&amp;nbsp; Any other way isn't important until much later in your SAS education.&amp;nbsp; Spend your time wisely!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 17:44:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Refer-a-variable/m-p/233500#M268153</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-11-06T17:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Refer  a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Refer-a-variable/m-p/233503#M268154</link>
      <description>&lt;P&gt;Sorry was not specific enough I think. How to&amp;nbsp;use the value that is been created in one data step&amp;nbsp;in another&amp;nbsp;datastep.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 17:52:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Refer-a-variable/m-p/233503#M268154</guid>
      <dc:creator>saslovethemost</dc:creator>
      <dc:date>2015-11-06T17:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Refer  a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Refer-a-variable/m-p/233504#M268155</link>
      <description>What are you trying to do?&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Nov 2015 17:54:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Refer-a-variable/m-p/233504#M268155</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-11-06T17:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Refer  a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Refer-a-variable/m-p/233509#M268156</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/51355"&gt;@saslovethemost&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Sorry was not specific enough I think. How to&amp;nbsp;use the value that is been created in one data step&amp;nbsp;in another&amp;nbsp;datastep.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I already answered this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I said:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="messagebodydisplay_0_0" class="lia-message-body lia-component-body"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P&gt;Look up the data step commands MERGE and UPDATE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, this is possible in PROC SQL.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 06 Nov 2015 18:09:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Refer-a-variable/m-p/233509#M268156</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-11-06T18:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Refer  a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Refer-a-variable/m-p/233567#M268157</link>
      <description>&lt;P&gt;There are two kinds of variables in SAS : dataset variables and macro variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN style="line-height: 20px;"&gt;&lt;STRONG&gt;Dataset variables&lt;/STRONG&gt; reside within a dataset. You don't have access to them in another data step unless you refer to the dataset in a SET, MERGE, UPDATE or MODIFY statement.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="line-height: 20px;"&gt;&lt;STRONG&gt;Macro variables&lt;/STRONG&gt; are handled by the SAS interpreter. They are simple name=string pairs that can be reused anywhere in a SAS session. The interpreter compiles program blocks ( DATA ... RUN; or PROC ... RUN; ) at a time. So if you give a value to a macro variable somewhere in a SAS program, you can reuse that value in another part of the program that will be compiled later.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 06 Nov 2015 21:21:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Refer-a-variable/m-p/233567#M268157</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-11-06T21:21:56Z</dc:date>
    </item>
  </channel>
</rss>

