<?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: Catch current setting of &amp;quot;ods escapechar&amp;quot; in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Catch-current-setting-of-quot-ods-escapechar-quot/m-p/292909#M311778</link>
    <description>Hi,Cynthia Thank you so much your quick response! It is first time for me to know "(*ESC*)" ! I actually run your code in SAS Studio and understand your answer well. Again,thank you!&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12864i1B9A0232306248D5/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="result_Cynthia_code.JPG" title="result_Cynthia_code.JPG" /&gt;</description>
    <pubDate>Sat, 20 Aug 2016 14:47:54 GMT</pubDate>
    <dc:creator>t_ar_taat</dc:creator>
    <dc:date>2016-08-20T14:47:54Z</dc:date>
    <item>
      <title>Catch current setting of "ods escapechar"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Catch-current-setting-of-quot-ods-escapechar-quot/m-p/292894#M311776</link>
      <description>&lt;P&gt;Hello.&lt;BR /&gt;I want to know the way to catch current setting&lt;BR /&gt;of "ods escapechar" .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, when you examine the attributes of the data set,we can do it byby "PROC CONTENTS" .&lt;BR /&gt;I want this to "ODS escapechar".&lt;BR /&gt;Say,before I do "ods escapechar='^';",just I want to catch now or default setting of it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For catch this info, I tried Google search with the words "get ods current setting sas",but it can't figure out it.&lt;BR /&gt;The following sites were first hit, but it was different content.&lt;BR /&gt;&lt;A href="http://support.sas.com/kb/24/065.html" target="_blank"&gt;http://support.sas.com/kb/24/065.html&lt;/A&gt;&lt;BR /&gt;(Image is result of above URL's sample code, by SAS Studio)&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4660i157028B563C449AB/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="kb_24_065" title="kb_24_065" /&gt;&lt;/P&gt;&lt;P&gt;Thank you for your cooperation&lt;/P&gt;</description>
      <pubDate>Sat, 20 Aug 2016 12:08:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Catch-current-setting-of-quot-ods-escapechar-quot/m-p/292894#M311776</guid>
      <dc:creator>t_ar_taat</dc:creator>
      <dc:date>2016-08-20T12:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Catch current setting of "ods escapechar"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Catch-current-setting-of-quot-ods-escapechar-quot/m-p/292899#M311777</link>
      <description>&lt;P&gt;HI:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; There are some ODS statements that are global in addition to ODS ESCAPECHAR (like ODS RESULTS and ODS PTITLE) and I do not believe there is a way to retrieve the current setting. That would be a question for Tech Support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; But, even if you do not know what the current value of ESCAPECHAR is, you can always use (*ESC*) and it will work no matter what ESCAPECHAR has been set to. But, I consider it a best practice to either set a standard for ESCAPECHAR (always use ^) or to have the ODS ESCAPECHAR statement explicitly appear in your code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
ods escapechar='^';

title '1) use carat as the ^{dagger} symbol for ESCAPECHAR';
title3 '2) Use the special command as the (*ESC*){dagger} symbol for ESCAPECHAR';
proc print data=sashelp.class(obs=3);
run;
title;
footnote; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And you will get the dagger in both TITLE statements beause of using (*ESC*) while ^ was the current ESCAPECHAR in effect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;</description>
      <pubDate>Sat, 20 Aug 2016 13:26:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Catch-current-setting-of-quot-ods-escapechar-quot/m-p/292899#M311777</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-08-20T13:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Catch current setting of "ods escapechar"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Catch-current-setting-of-quot-ods-escapechar-quot/m-p/292909#M311778</link>
      <description>Hi,Cynthia Thank you so much your quick response! It is first time for me to know "(*ESC*)" ! I actually run your code in SAS Studio and understand your answer well. Again,thank you!&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12864i1B9A0232306248D5/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="result_Cynthia_code.JPG" title="result_Cynthia_code.JPG" /&gt;</description>
      <pubDate>Sat, 20 Aug 2016 14:47:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Catch-current-setting-of-quot-ods-escapechar-quot/m-p/292909#M311778</guid>
      <dc:creator>t_ar_taat</dc:creator>
      <dc:date>2016-08-20T14:47:54Z</dc:date>
    </item>
  </channel>
</rss>

