<?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: Use #byval in the header to display parameter in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/Use-byval-in-the-header-to-display-parameter/m-p/883691#M1883</link>
    <description>&lt;P&gt;PROC SORT does not display printed output, so it is not going to work with #byval. Nor is there are DEFINE or BREAK statement in PROC SORT. Are you trying to do this with PROC REPORT?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide code that works EXCEPT for the #byval part, then it should be really simple to add in #byval to the title.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jul 2023 10:34:26 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2023-07-06T10:34:26Z</dc:date>
    <item>
      <title>Use #byval in the header to display parameter</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Use-byval-in-the-header-to-display-parameter/m-p/883677#M1882</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="joycefilm_0-1688626238891.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85581i68AC4BAD871F9191/image-size/medium?v=v2&amp;amp;px=400" role="button" title="joycefilm_0-1688626238891.png" alt="joycefilm_0-1688626238891.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hellow all,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to output table header without the numbers and @ sign, but use #byval(param) in the code, sorted by param, to avoid alphabetical sorting, so customize the order using numbers to control the order&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;My code is as follows:&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;title j=c "#byval(param)";&lt;/LI&gt;&lt;LI&gt;proc sort data=test out=table;&lt;/LI&gt;&lt;LI&gt;by param;&lt;/LI&gt;&lt;LI&gt;define param /group page noprint;&lt;/LI&gt;&lt;LI&gt;break befpre param/page;&lt;/LI&gt;&lt;LI&gt;run;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;please give me some suggestions,thanks.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 06 Jul 2023 07:02:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Use-byval-in-the-header-to-display-parameter/m-p/883677#M1882</guid>
      <dc:creator>joycefilm</dc:creator>
      <dc:date>2023-07-06T07:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Use #byval in the header to display parameter</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Use-byval-in-the-header-to-display-parameter/m-p/883691#M1883</link>
      <description>&lt;P&gt;PROC SORT does not display printed output, so it is not going to work with #byval. Nor is there are DEFINE or BREAK statement in PROC SORT. Are you trying to do this with PROC REPORT?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide code that works EXCEPT for the #byval part, then it should be really simple to add in #byval to the title.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 10:34:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Use-byval-in-the-header-to-display-parameter/m-p/883691#M1883</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-07-06T10:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Use #byval in the header to display parameter</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Use-byval-in-the-header-to-display-parameter/m-p/883761#M1885</link>
      <description>sorry,I write mistake. It's proc report.&lt;BR /&gt;My code is as follows:&lt;BR /&gt;title j=c "#byval(param)";&lt;BR /&gt;proc report data=test out=table;&lt;BR /&gt;by param;&lt;BR /&gt;define param /group page noprint;&lt;BR /&gt;break befpre param/page;&lt;BR /&gt;run;&lt;BR /&gt;param values cannot be sorted alphabetically, so I use numbers to customize the order. Now I want to output tables without numbers&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Jul 2023 16:37:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Use-byval-in-the-header-to-display-parameter/m-p/883761#M1885</guid>
      <dc:creator>joycefilm</dc:creator>
      <dc:date>2023-07-06T16:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Use #byval in the header to display parameter</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Use-byval-in-the-header-to-display-parameter/m-p/883794#M1886</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/445812"&gt;@joycefilm&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;BR /&gt;param values cannot be sorted alphabetically, so I use numbers to customize the order. Now I want to output tables without numbers&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I am understanding you properly, you want to create a variable that has the value with numbers and @ sign (I think you already have that), let's call this variable PARAM, and another variable named PARAM1 which does not have the numbers and @ sign.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then sort by both PARAM and PARAM1, set the options NOBYLINE, and in PROC REPORT use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;by param param1;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then in the title statement refer to #BYVAL2.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 19:18:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Use-byval-in-the-header-to-display-parameter/m-p/883794#M1886</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-07-06T19:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Use #byval in the header to display parameter</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Use-byval-in-the-header-to-display-parameter/m-p/884057#M1893</link>
      <description>&lt;BR /&gt;I obtained the results I desired by using your method. Thank you very much!</description>
      <pubDate>Sat, 08 Jul 2023 17:36:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Use-byval-in-the-header-to-display-parameter/m-p/884057#M1893</guid>
      <dc:creator>joycefilm</dc:creator>
      <dc:date>2023-07-08T17:36:02Z</dc:date>
    </item>
  </channel>
</rss>

