<?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: Printing variable in SAS program in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Printing-variable-in-SAS-program/m-p/386996#M92738</link>
    <description>&lt;P&gt;I'm trying to see it in the log.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Aug 2017 13:46:28 GMT</pubDate>
    <dc:creator>DavidPhillips2</dc:creator>
    <dc:date>2017-08-10T13:46:28Z</dc:date>
    <item>
      <title>Printing variable in SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Printing-variable-in-SAS-program/m-p/386969#M92728</link>
      <description>&lt;P&gt;What is the syntax for printing a variable in a SAS program? I know how to do this in a stored process but looking for the syntax for a program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data enrollment; set enrollment;&lt;BR /&gt;length yearToNull $4.;&lt;BR /&gt;if(substr(max_academic_period, 5, 2) ne '30') then do;&lt;BR /&gt;yearToNull = substr(max_academic_period, 1, 4);&lt;BR /&gt;/*put yearToNull;*/&lt;BR /&gt;if(substr(academic_period, 1,4) = yeartoNull) then Annual_FTE = 0;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 12:52:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Printing-variable-in-SAS-program/m-p/386969#M92728</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2017-08-10T12:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Printing variable in SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Printing-variable-in-SAS-program/m-p/386970#M92729</link>
      <description>&lt;P&gt;Do you want to print it to the log or to the Results Viewer?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 12:58:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Printing-variable-in-SAS-program/m-p/386970#M92729</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-08-10T12:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Printing variable in SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Printing-variable-in-SAS-program/m-p/386972#M92731</link>
      <description>&lt;P&gt;What you have done, the "put yeartonull;" should work?&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lestmtsref/69738/HTML/default/viewer.htm#n1spe7nmkmi7ywn175002rof97fv.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lestmtsref/69738/HTML/default/viewer.htm#n1spe7nmkmi7ywn175002rof97fv.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data _null_;
  set sashelp.cars;
  put make;
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Aug 2017 12:59:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Printing-variable-in-SAS-program/m-p/386972#M92731</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-08-10T12:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Printing variable in SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Printing-variable-in-SAS-program/m-p/386996#M92738</link>
      <description>&lt;P&gt;I'm trying to see it in the log.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 13:46:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Printing-variable-in-SAS-program/m-p/386996#M92738</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2017-08-10T13:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Printing variable in SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Printing-variable-in-SAS-program/m-p/386998#M92739</link>
      <description>&lt;P&gt;Thank RW9, apparently I was running into another condition that was making my put statement not show up, and thought I had the syntax for the basic put statement wrong.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 13:49:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Printing-variable-in-SAS-program/m-p/386998#M92739</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2017-08-10T13:49:00Z</dc:date>
    </item>
  </channel>
</rss>

