<?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: Proc Report TITLE: Display all values chosen from a multi-value prompt on the title line in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-TITLE-Display-all-values-chosen-from-a-multi-value/m-p/708078#M24768</link>
    <description>&lt;P&gt;Thank you.&amp;nbsp; I realize now that the variable are numbered after the prompt name.&amp;nbsp; Do you know how to only make it display if not blank?&amp;nbsp; I won't know how many they are going to select each time, maybe 1 or maybe 10.&amp;nbsp; Example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;%LET MODEL_count = 2;&lt;BR /&gt;%LET MODEL = Volvo;&lt;BR /&gt;%LET MODEL2 = Ford;&lt;BR /&gt;%LET MODEL1 = Volvo;&lt;BR /&gt;%LET MODEL0 = 2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Title "Vehicle Type: &amp;amp;MODEL &amp;amp;Model2 &amp;amp;Model3";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Results:&amp;nbsp;&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;TABLE cellspacing="1" cellpadding="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Vehicle Type: Volvo Ford &amp;amp;Model3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Dec 2020 13:57:43 GMT</pubDate>
    <dc:creator>CLE</dc:creator>
    <dc:date>2020-12-24T13:57:43Z</dc:date>
    <item>
      <title>Proc Report TITLE: Display all values chosen from a multi-value prompt on the title line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-TITLE-Display-all-values-chosen-from-a-multi-value/m-p/707938#M24765</link>
      <description>&lt;P&gt;I have a&amp;nbsp;ODS proc report that uses values from a multi-value prompt.&amp;nbsp; I need to display all values selected for each prompt in the Title statments.&amp;nbsp; Using the method below, it only produces the first selction and ignores the rest for the title statments.&amp;nbsp; Any advise on how to get it to display all values selected for each prompt.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example: Prompt2: User selects A, B, andC from list.&amp;nbsp; On Title statement it shows Prompt2: A instead of Prompt2: A B C.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;Title&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;font&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=arial &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;height&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;16&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;pt &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;color&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=bib &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;justify&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=center &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"Prompt1: &amp;amp;Prompt1"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;Title2&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;font&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=arial &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;height&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;12&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;pt &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;color&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=bib &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;justify&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=center &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"Prompt2: &amp;amp;Prompt2"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;Title3&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;font&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=arial &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;height&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;12&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;pt &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;color&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=bib &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;justify&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=center &lt;FONT face="Courier New" size="3" color="#800080"&gt;"Prompt3: &amp;amp;Prompt3"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;Title4&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;font&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=arial &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;height&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;12&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;pt &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;color&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=bib &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;justify&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=center &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"Prompt4: &amp;amp;Prompt4"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;Title5&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;font&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=arial &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;height&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;12&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;pt &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;color&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=bib &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;justify&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=center &lt;FONT face="Courier New" size="3" color="#800080"&gt;"Prompt5: &amp;amp;Prompt5"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;Title6&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;font&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=arial &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;height&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;12&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;pt &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;color&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=bib &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;justify&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=center &lt;FONT face="Courier New" size="3" color="#800080"&gt;"Prompt6: &amp;amp;Prompt6"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;Title7&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;font&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=arial &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;height&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;12&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;pt &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;color&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=bib &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;justify&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=center&amp;nbsp;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"Prompt7: &amp;amp;Prompt7"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 17:38:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-TITLE-Display-all-values-chosen-from-a-multi-value/m-p/707938#M24765</guid>
      <dc:creator>CLE</dc:creator>
      <dc:date>2020-12-23T17:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report TITLE: Display all values chosen from a multi-value prompt on the title line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-TITLE-Display-all-values-chosen-from-a-multi-value/m-p/707940#M24766</link>
      <description>&lt;P&gt;What are the variables (or macro variables) that contain the selected variables from the list?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Suppose they are &amp;amp;var1, &amp;amp;var2, &amp;amp;var3.&lt;/P&gt;
&lt;P&gt;The title should include a code like: "...promted vars are: &amp;amp;var1, &amp;amp;var2, &amp;amp;var3 ...";&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 17:53:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-TITLE-Display-all-values-chosen-from-a-multi-value/m-p/707940#M24766</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-12-23T17:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report TITLE: Display all values chosen from a multi-value prompt on the title line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-TITLE-Display-all-values-chosen-from-a-multi-value/m-p/707947#M24767</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; This worked for me, so perhaps there is something else going on with how your prompt values are being passed to the program. When I used %LET statements, everything worked well, as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1608747870791.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52991i7469A9B65F189005/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1608747870791.png" alt="Cynthia_sas_0-1608747870791.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 18:24:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-TITLE-Display-all-values-chosen-from-a-multi-value/m-p/707947#M24767</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-12-23T18:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report TITLE: Display all values chosen from a multi-value prompt on the title line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-TITLE-Display-all-values-chosen-from-a-multi-value/m-p/708078#M24768</link>
      <description>&lt;P&gt;Thank you.&amp;nbsp; I realize now that the variable are numbered after the prompt name.&amp;nbsp; Do you know how to only make it display if not blank?&amp;nbsp; I won't know how many they are going to select each time, maybe 1 or maybe 10.&amp;nbsp; Example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;%LET MODEL_count = 2;&lt;BR /&gt;%LET MODEL = Volvo;&lt;BR /&gt;%LET MODEL2 = Ford;&lt;BR /&gt;%LET MODEL1 = Volvo;&lt;BR /&gt;%LET MODEL0 = 2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Title "Vehicle Type: &amp;amp;MODEL &amp;amp;Model2 &amp;amp;Model3";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Results:&amp;nbsp;&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;TABLE cellspacing="1" cellpadding="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Vehicle Type: Volvo Ford &amp;amp;Model3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 13:57:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-TITLE-Display-all-values-chosen-from-a-multi-value/m-p/708078#M24768</guid>
      <dc:creator>CLE</dc:creator>
      <dc:date>2020-12-24T13:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report TITLE: Display all values chosen from a multi-value prompt on the title line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-TITLE-Display-all-values-chosen-from-a-multi-value/m-p/708095#M24769</link>
      <description>&lt;P&gt;Does &amp;amp;model_count tells how many models you have.&lt;/P&gt;
&lt;P&gt;If positive you can create the TITLE either in a macro program or by a data step:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _NULL_;
   length titl $100; /* assuming max length 10*10 chars */
   do i=1 to &amp;amp;model_count;
       titl = catx(' ',titl,"&amp;amp;&amp;amp;model&amp;amp;i");
  end;
  call symput('titl',strip(titl));
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;OR by&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let TITL =;
%do i=1 %to &amp;amp;model_count;
       %let TITL =&amp;amp;TITL.%str( )&amp;amp;&amp;amp;model&amp;amp;i. ;
%end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Finally the TITLE statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; TITLE&amp;nbsp; ...&amp;nbsp; "&amp;amp;titl";&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 16:03:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-TITLE-Display-all-values-chosen-from-a-multi-value/m-p/708095#M24769</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-12-24T16:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report TITLE: Display all values chosen from a multi-value prompt on the title line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-TITLE-Display-all-values-chosen-from-a-multi-value/m-p/708438#M24770</link>
      <description>&lt;P&gt;Thank you for the help.&amp;nbsp; This is what I get when I tried.&amp;nbsp;&lt;/P&gt;&lt;P&gt;33 ;&lt;BR /&gt;NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR&lt;BR /&gt;34 FILENAME EGXLSSX TEMP;&lt;BR /&gt;35 ODS EXCEL(ID=EGXLSSX) FILE=EGXLSSX STYLE=Excel&lt;BR /&gt;36 OPTIONS (&lt;BR /&gt;37 EMBEDDED_TITLES="no" EMBEDDED_FOOTNOTES="no"&lt;BR /&gt;38 );&lt;BR /&gt;39&lt;BR /&gt;40 GOPTIONS ACCESSIBLE;&lt;BR /&gt;41 ods graphics on / reset=all;&lt;BR /&gt;42 %let TITL =;&lt;BR /&gt;43 %do i=1 %to &amp;amp;model_count;&lt;BR /&gt;ERROR: The %DO statement is not valid in open code.&lt;BR /&gt;44 %let TITL =&amp;amp;TITL.%str( )&amp;amp;&amp;amp;model&amp;amp;i. ;&lt;BR /&gt;WARNING: Apparent symbolic reference I not resolved.&lt;BR /&gt;WARNING: Apparent symbolic reference I not resolved.&lt;BR /&gt;45 %end;&lt;BR /&gt;ERROR: The %END statement is not valid in open code.&lt;BR /&gt;46&lt;BR /&gt;47 Title "Vehicle Type: &amp;amp;Titl";&lt;BR /&gt;WARNING: Apparent symbolic reference I not resolved.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2020 15:35:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-TITLE-Display-all-values-chosen-from-a-multi-value/m-p/708438#M24770</guid>
      <dc:creator>CLE</dc:creator>
      <dc:date>2020-12-28T15:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report TITLE: Display all values chosen from a multi-value prompt on the title line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-TITLE-Display-all-values-chosen-from-a-multi-value/m-p/708441#M24771</link>
      <description>&lt;P&gt;According to the error message "&lt;SPAN&gt;ERROR: The %DO statement is not valid in open code."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;you need to modify the code into:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
%let ttitl=;
%macro create_titles;
   %do i=1 %to &amp;amp;model_count;
      %let TITL&amp;amp;i = &amp;amp;TITL.%str( )&amp;amp;&amp;amp;model&amp;amp;i. ;
   %end;
%mend;
%create_titles;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Dec 2020 16:03:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-TITLE-Display-all-values-chosen-from-a-multi-value/m-p/708441#M24771</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-12-28T16:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report TITLE: Display all values chosen from a multi-value prompt on the title line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-TITLE-Display-all-values-chosen-from-a-multi-value/m-p/708448#M24772</link>
      <description>&lt;P&gt;Thanks again for the help.&amp;nbsp; I'm battling a migraine and my brain isn't trying to think today.&amp;nbsp; However, when I changed out the code, I not get a Title of&amp;nbsp; (see image).&amp;nbsp; It just leaves the value blank instead of displaying the two car models.&amp;nbsp; This is the code I'm using.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics on / reset=all;&lt;/P&gt;&lt;P&gt;%let titl=;&lt;BR /&gt;%macro create_titles;&lt;BR /&gt;%do i=1 %to &amp;amp;model_count;&lt;BR /&gt;%let TITL&amp;amp;i = &amp;amp;TITL.%str( )&amp;amp;&amp;amp;model&amp;amp;i. ;&lt;BR /&gt;%end;&lt;BR /&gt;%mend;&lt;BR /&gt;%create_titles;&lt;BR /&gt;Title "Vehicle Type: &amp;amp;Titl";&lt;/P&gt;&lt;P&gt;proc report data=WORK.QUERY_FOR_CARS;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CLE_0-1609175665621.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/53061iEC73B905EFF0F6B6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CLE_0-1609175665621.png" alt="CLE_0-1609175665621.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2020 17:15:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-TITLE-Display-all-values-chosen-from-a-multi-value/m-p/708448#M24772</guid>
      <dc:creator>CLE</dc:creator>
      <dc:date>2020-12-28T17:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report TITLE: Display all values chosen from a multi-value prompt on the title line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-TITLE-Display-all-values-chosen-from-a-multi-value/m-p/708451#M24773</link>
      <description>&lt;P&gt;Hope you fill better now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you have several titles, just add a line to the macro:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on / reset=all;

%let titl=;
%macro create_titles;
%do i=1 %to &amp;amp;model_count;
%let TITL&amp;amp;i = &amp;amp;TITL.%str( )&amp;amp;&amp;amp;model&amp;amp;i. ;
&amp;amp;&amp;amp;title&amp;amp;i;;  /* line added */
%end;
%mend;
%create_titles;
Title "Vehicle Type: &amp;amp;Titl";

proc report data=WORK.QUERY_FOR_CARS;
run;

quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Dec 2020 17:39:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-TITLE-Display-all-values-chosen-from-a-multi-value/m-p/708451#M24773</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-12-28T17:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report TITLE: Display all values chosen from a multi-value prompt on the title line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-TITLE-Display-all-values-chosen-from-a-multi-value/m-p/708763#M24780</link>
      <description>&lt;P&gt;I fixed Title to be Titl, but I still get this error message. It's resolving them, but creating an error. I've looked for a missing semicolon, but not aware of where else I should have one.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;287        QUIT;
&lt;FONT color="blue"&gt;NOTE: PROCEDURE SQL used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      

&lt;/FONT&gt;288        /* --- End of code for "Query Builder". --- */
289        
290        /* --- Start of code for "Program". --- */
291        ods graphics on / reset=all;
292        
293        %let titl=;
294        %macro create_titles;
295        %do i=1 %to &amp;amp;model_count;
296        %let TITL&amp;amp;i = &amp;amp;TITL.%str( )&amp;amp;&amp;amp;model&amp;amp;i. ;
297        &amp;amp;&amp;amp;titl&amp;amp;i;;  /* line added */
298        %end;
299        %mend;
300        %create_titles;

                                                                                          The SAS System

&lt;FONT color="blue"&gt;NOTE: Line generated by the macro variable "TITL1".&lt;/FONT&gt;300          Honda
&lt;STRONG&gt;&lt;FONT color="red"&gt;             _____
             180&lt;/FONT&gt;&lt;/STRONG&gt;
&lt;STRONG&gt;&lt;FONT color="red"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/FONT&gt;&lt;/STRONG&gt;
&lt;FONT color="blue"&gt;NOTE: Line generated by the macro variable "TITL2".&lt;/FONT&gt;300          Volvo
&lt;STRONG&gt;&lt;FONT color="red"&gt;             _____
             180
ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/FONT&gt;&lt;/STRONG&gt;301        Title "Vehicle Type: &amp;amp;Titl";
302        
303        proc report data=WORK.QUERY_FOR_CARS;
304        run;
&lt;FONT color="blue"&gt;NOTE: The SAS System stopped processing this step because of errors.
NOTE: SAS set option OBS=0 and will continue to check statements. This might cause NOTE: No observations in data set.
NOTE: PROCEDURE REPORT used (Total process time):
      real time           0.02 seconds
      cpu time            0.01 seconds
      &lt;/FONT&gt;305        
306        quit;
307        /* --- End of code for "Program". --- */&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 13:59:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-TITLE-Display-all-values-chosen-from-a-multi-value/m-p/708763#M24780</guid>
      <dc:creator>CLE</dc:creator>
      <dc:date>2020-12-30T13:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report TITLE: Display all values chosen from a multi-value prompt on the title line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-TITLE-Display-all-values-chosen-from-a-multi-value/m-p/708774#M24781</link>
      <description>&lt;P&gt;That DATA step is not going to work.&amp;nbsp; You seem to have mixed up usage of variables and macro variables.&amp;nbsp; Use the data step variable to generate the name of the macro variable.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
   length titl $100; /* assuming max length 10*10 chars */
   do i=1 to &amp;amp;model_count;
       titl = catx(' ',titl,symget(cats('model',i)));
  end;
  call symputx('titl',titl);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And for a macro solution it will probably be useful to use a "function style" macro.&amp;nbsp; That is one that just generates part of a single statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro cat_prompt(prompt);
%local i;
%if %symexist(&amp;amp;prompt._count) %then %do;
  %do i=1 %to &amp;amp;&amp;amp;&amp;amp;prompt._count; &amp;amp;&amp;amp;&amp;amp;prompt.&amp;amp;i %end;
%end;
%mend cat_prompt;

title1 "%cat_prompt(model)";
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 15:26:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-TITLE-Display-all-values-chosen-from-a-multi-value/m-p/708774#M24781</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-12-30T15:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report TITLE: Display all values chosen from a multi-value prompt on the title line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-TITLE-Display-all-values-chosen-from-a-multi-value/m-p/708781#M24782</link>
      <description>&lt;P&gt;Sorry for the mass. Next code is tested:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let titl=;
%macro create_titles;
	%do i=1 %to &amp;amp;model_count;
		%let TITL&amp;amp;i = Title&amp;amp;i "&amp;amp;&amp;amp;model&amp;amp;i." ;
		&amp;amp;&amp;amp;titl&amp;amp;i;;  /* line added */
	%end;
%mend;
%create_titles;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can add any style or text in the&amp;nbsp;&lt;STRONG&gt;%let TITL&amp;amp;i = Title&amp;amp;i "&amp;amp;&amp;amp;model&amp;amp;i." ;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Use &lt;STRONG&gt;options mprint&lt;/STRONG&gt; to check how is&amp;nbsp; &lt;STRONG&gt;&amp;amp;&amp;amp;titl&amp;amp;i&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;resolved&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 15:57:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-TITLE-Display-all-values-chosen-from-a-multi-value/m-p/708781#M24782</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-12-30T15:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report TITLE: Display all values chosen from a multi-value prompt on the title line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-TITLE-Display-all-values-chosen-from-a-multi-value/m-p/708804#M24783</link>
      <description>&lt;P&gt;Hi. Thank you for the input. These options work great when two or more options are selected.&amp;nbsp; However, when one option or ALL_Possible_VALUES&amp;nbsp; is selected in the prompt,&amp;nbsp; the proc report title becomes blank.&amp;nbsp; Are you able to provide any help on that?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When ALL_Possible_Values is selected in prompt, this is the error.&lt;/P&gt;&lt;P&gt;NOTE: Invalid argument to function SYMGET('model1') at line 46 column 29.&lt;BR /&gt;titl= i=2 _ERROR_=1 _N_=1&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 21:32:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-TITLE-Display-all-values-chosen-from-a-multi-value/m-p/708804#M24783</guid>
      <dc:creator>CLE</dc:creator>
      <dc:date>2020-12-30T21:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report TITLE: Display all values chosen from a multi-value prompt on the title line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-TITLE-Display-all-values-chosen-from-a-multi-value/m-p/708805#M24784</link>
      <description>From log:&lt;BR /&gt;%LET MODEL_count = 1;&lt;BR /&gt;%LET MODEL = BMW;&lt;BR /&gt;&lt;BR /&gt;AND&lt;BR /&gt;%LET MODEL_count = 1;&lt;BR /&gt;%LET MODEL = _ALL_VALUES_;</description>
      <pubDate>Wed, 30 Dec 2020 21:38:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-TITLE-Display-all-values-chosen-from-a-multi-value/m-p/708805#M24784</guid>
      <dc:creator>CLE</dc:creator>
      <dc:date>2020-12-30T21:38:13Z</dc:date>
    </item>
  </channel>
</rss>

