<?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 #BYVAL(variable) and other BY statement variable directives in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/BYVAL-variable-and-other-BY-statement-variable-directives/m-p/187406#M35463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The BY statement variable directives can be used in many places other than TITLE statement where they were first introduced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote some code (some sort of macro thing) where a variable can contain #byval(variable) and I replace that with the BY value using VVALUEX, and TRANSTRN etc.&amp;nbsp;&amp;nbsp; Of course I could have used another syntax but I don't like to invent my own, where there exists a perfectly good one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems like there should be a way to use what has already been done by SAS to support this kind of replacement,&amp;nbsp; I was thinking a function might exist but did not find one. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jul 2014 13:09:51 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2014-07-21T13:09:51Z</dc:date>
    <item>
      <title>#BYVAL(variable) and other BY statement variable directives</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BYVAL-variable-and-other-BY-statement-variable-directives/m-p/187406#M35463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The BY statement variable directives can be used in many places other than TITLE statement where they were first introduced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote some code (some sort of macro thing) where a variable can contain #byval(variable) and I replace that with the BY value using VVALUEX, and TRANSTRN etc.&amp;nbsp;&amp;nbsp; Of course I could have used another syntax but I don't like to invent my own, where there exists a perfectly good one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems like there should be a way to use what has already been done by SAS to support this kind of replacement,&amp;nbsp; I was thinking a function might exist but did not find one. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 13:09:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BYVAL-variable-and-other-BY-statement-variable-directives/m-p/187406#M35463</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-07-21T13:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: #BYVAL(variable) and other BY statement variable directives</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BYVAL-variable-and-other-BY-statement-variable-directives/m-p/187407#M35464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not as familiar with this as I should be, but ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would imagine that ODS templates can take care of this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 13:26:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BYVAL-variable-and-other-BY-statement-variable-directives/m-p/187407#M35464</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2014-07-21T13:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: #BYVAL(variable) and other BY statement variable directives</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BYVAL-variable-and-other-BY-statement-variable-directives/m-p/187408#M35465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;ODS DOCUMENT has some automatic variables and I know that TAGSETS.EXCELXP has implemented some BY group support for #BYVAL/#BYVAR/#BYLINE, but as far as I know, it is only documented here in the TITLE statement: &lt;A href="http://support.sas.com/documentation/cdl/en/lestmtsref/67175/HTML/default/viewer.htm#p10gcmrmf83iaxn1ilrx4pra969n.htm" title="http://support.sas.com/documentation/cdl/en/lestmtsref/67175/HTML/default/viewer.htm#p10gcmrmf83iaxn1ilrx4pra969n.htm"&gt;SAS(R) 9.4 Statements: Reference, Second Edition&lt;/A&gt; -- so your approach of using VVALUEX, etc might be the most flexible.&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 16:46:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BYVAL-variable-and-other-BY-statement-variable-directives/m-p/187408#M35465</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-07-21T16:46:10Z</dc:date>
    </item>
  </channel>
</rss>

