<?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 an apostrophe in a title statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Use-an-apostrophe-in-a-title-statement/m-p/603460#M174847</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/24597"&gt;@steen_soeskov_sof_kk_dk&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should use a macro quoting function to avoid this kind of issue -&amp;gt; %str() should work, with also a % before the quotation mark as it is usually used by pair.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%pdf(O%str(%')Leary);&lt;BR /&gt;/* or */&lt;BR /&gt;%pdf(%str(O%'Leary));&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 12 Nov 2019 09:58:39 GMT</pubDate>
    <dc:creator>ed_sas_member</dc:creator>
    <dc:date>2019-11-12T09:58:39Z</dc:date>
    <item>
      <title>Use an apostrophe in a title statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Use-an-apostrophe-in-a-title-statement/m-p/603458#M174846</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a problem with an apostrophe in a title statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="cse0ee740f1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;%macro&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt; pdf(name);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;options orientation=landscape;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;ods noresults;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;ods pdf file=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csaf1817d1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"c:\School 2019.pdf"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;ods escapechar=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csaf1817d1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'^'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;title &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csaf1817d1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;""&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;ods pdf text=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csaf1817d1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"^S={just=c fontweight=bold font_size=10} School 2019."&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;ods pdf text=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csaf1817d1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"^S={fontweight=bold font_size=5} Name: &amp;amp;name."&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;ods pdf text=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csaf1817d1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"^n"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;PROC REPORT DATA=work.fravaer LS=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="cs6858504d1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;158&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt; PS=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="cs6858504d1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;97&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp; SPLIT=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csaf1817d1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"/"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt; CENTER missing nowd;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;COLUMNS name;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;DEFINE name / display &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csaf1817d1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'Elevens navn'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt; style(column header)=[font_weight=bold];&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;RUN;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;ods pdf close;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="cse0ee740f1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;%mend&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt; pdf;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;%pdf(O'Leary);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Message in LOG:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&lt;SPAN&gt;WARNING: The quoted string currently being processed has become more than 262 characters long. You may have unbalanced quotation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;marks.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 09:44:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Use-an-apostrophe-in-a-title-statement/m-p/603458#M174846</guid>
      <dc:creator>steen_soeskov_sof_kk_dk</dc:creator>
      <dc:date>2019-11-12T09:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Use an apostrophe in a title statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Use-an-apostrophe-in-a-title-statement/m-p/603460#M174847</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/24597"&gt;@steen_soeskov_sof_kk_dk&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should use a macro quoting function to avoid this kind of issue -&amp;gt; %str() should work, with also a % before the quotation mark as it is usually used by pair.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%pdf(O%str(%')Leary);&lt;BR /&gt;/* or */&lt;BR /&gt;%pdf(%str(O%'Leary));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Nov 2019 09:58:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Use-an-apostrophe-in-a-title-statement/m-p/603460#M174847</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2019-11-12T09:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Use an apostrophe in a title statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Use-an-apostrophe-in-a-title-statement/m-p/603472#M174850</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;It was a good solution, if there is one person in the macro&lt;/P&gt;&lt;P&gt;But I use a dataset til make the macroes to the pdf files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to make the name with %str(%') as a "middlename", but the program translate it to '&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;&amp;nbsp;set test;&lt;/P&gt;&lt;P&gt;apostrophe = index(name,"'");&lt;BR /&gt;if apostrophe &amp;gt; 0 then do;&lt;/P&gt;&lt;P&gt;name = substr(name,1,apostrof-1) !! %str(%') !! substr(name,apostrof+1);&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also tried med single quotes and double quotes around %str(%')&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 10:44:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Use-an-apostrophe-in-a-title-statement/m-p/603472#M174850</guid>
      <dc:creator>steen_soeskov_sof_kk_dk</dc:creator>
      <dc:date>2019-11-12T10:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Use an apostrophe in a title statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Use-an-apostrophe-in-a-title-statement/m-p/603491#M174858</link>
      <description>&lt;P&gt;In a data step, you can use data step means to insert a single quote:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;name = substr(name,1,apostrof-1) !! "'" !! substr(name,apostrof+1)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Nov 2019 12:21:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Use-an-apostrophe-in-a-title-statement/m-p/603491#M174858</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-11-12T12:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Use an apostrophe in a title statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Use-an-apostrophe-in-a-title-statement/m-p/603558#M174866</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;If I make name in my data step, I will still have a apostrophe ' too much.&lt;/P&gt;&lt;P&gt;When I make then macro to my pdf file, I will get the same warning in the log as I describe earlier.&lt;/P&gt;&lt;P&gt;The name will still looks like O'Leary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I make the name as&amp;nbsp;O%str(%')Leary ?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 12:55:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Use-an-apostrophe-in-a-title-statement/m-p/603558#M174866</guid>
      <dc:creator>steen_soeskov_sof_kk_dk</dc:creator>
      <dc:date>2019-11-12T12:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Use an apostrophe in a title statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Use-an-apostrophe-in-a-title-statement/m-p/603577#M174874</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/24597"&gt;@steen_soeskov_sof_kk_dk&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;If I make name in my data step, I will still have a apostrophe ' too much.&lt;/P&gt;
&lt;P&gt;When I make then macro to my pdf file, I will get the same warning in the log as I describe earlier.&lt;/P&gt;
&lt;P&gt;The name will still looks like O'Leary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I make the name as&amp;nbsp;O%str(%')Leary ?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You are missing a step here. How is the data getting out of the dataset variable and into the TITLE statement?&amp;nbsp; Please show that code for more detailed help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have the value in a data step variable &lt;STRONG&gt;and leave it there&lt;/STRONG&gt; the quote (or any other character that SAS would consider special in code) is no problem.&amp;nbsp; Why not generate the macro variable for making the TITLE statement with the quotes already around the value?&lt;/P&gt;
&lt;P&gt;So if you have a dataset variable named TITLE and you want to use it as a title then convert it to a quoted string in a macro variable.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  set titles;
  call symputx('title',quote(trim(title),"'"));
run;
title &amp;amp;title;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you have the value in a macro variable you can use a macro quoting function.&amp;nbsp; %SUPERQ() is a good function to use since you don't need to expand the macro variable.&amp;nbsp; So if you made a macro variable named TITLE and you wanted to use its value as a title you might use this statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;TITLE "%superq(title)";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Nov 2019 13:35:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Use-an-apostrophe-in-a-title-statement/m-p/603577#M174874</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-11-12T13:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Use an apostrophe in a title statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Use-an-apostrophe-in-a-title-statement/m-p/604918#M175436</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;One more try.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="cse0ee740f1"&gt;&lt;SPAN style="font-size: 10pt;"&gt;%macro&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10pt;"&gt; pdf(name);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10pt;"&gt;options orientation=landscape;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10pt;"&gt;ods noresults;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10pt;"&gt;ods pdf file=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csaf1817d1"&gt;&lt;SPAN style="font-size: 10pt;"&gt;"c:\School 2019.pdf"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10pt;"&gt;ods escapechar=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csaf1817d1"&gt;&lt;SPAN style="font-size: 10pt;"&gt;'^'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10pt;"&gt;ods pdf text=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csaf1817d1"&gt;&lt;SPAN style="font-size: 10pt;"&gt;"^S={just=c fontweight=bold font_size=10} School 2019."&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10pt;"&gt;ods pdf text=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csaf1817d1"&gt;&lt;SPAN style="font-size: 10pt;"&gt;"^S={fontweight=bold font_size=5} Name: &amp;amp;name."&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10pt;"&gt;ods pdf text=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csaf1817d1"&gt;&lt;SPAN style="font-size: 10pt;"&gt;"^n"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10pt;"&gt;PROC REPORT DATA=work.fravaer LS=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="cs6858504d1"&gt;&lt;SPAN style="font-size: 10pt;"&gt;158&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10pt;"&gt; PS=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="cs6858504d1"&gt;&lt;SPAN style="font-size: 10pt;"&gt;97&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; SPLIT=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csaf1817d1"&gt;&lt;SPAN style="font-size: 10pt;"&gt;"/"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10pt;"&gt; CENTER missing nowd;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10pt;"&gt;COLUMNS name;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10pt;"&gt;DEFINE name / display &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csaf1817d1"&gt;&lt;SPAN style="font-size: 10pt;"&gt;'Elevens navn'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10pt;"&gt; style(column header)=[font_weight=bold];&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10pt;"&gt;RUN;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10pt;"&gt;ods pdf close;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="cse0ee740f1"&gt;&lt;SPAN style="font-size: 10pt;"&gt;%mend&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10pt;"&gt; pdf;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10pt;"&gt;/*Here is a program to make the macro to make the pdf-call %pdf(O'Leary);*/&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;filename&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; bo2 &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;catalog&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="2"&gt;"work.SASCatalog.bo2.source"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;lrecl&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;32767&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;recfm&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=v;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;_null_&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;file&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; bo2;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;length&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; cpr codeline &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;$4000.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; pct_fravaer &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;8.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; fravaer_nuv_skoleaar_barn;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; cpr sort_md pct_fravaer;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; last.cpr;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;codeline = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"%"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; !! &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"pdf("&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;!!name&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;!!&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;");"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;put&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; codeline;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;run&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%inc&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; bo2;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;How do I make the apostrophe be a part of the text in name, and not a part of the SAS code ?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 10:30:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Use-an-apostrophe-in-a-title-statement/m-p/604918#M175436</guid>
      <dc:creator>steen_soeskov_sof_kk_dk</dc:creator>
      <dc:date>2019-11-18T10:30:07Z</dc:date>
    </item>
  </channel>
</rss>

