<?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: QUOTE function argument 2 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/QUOTE-function-argument-2/m-p/182103#M34712</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another interesting note is that in SAS 8.2 and 9.2 it will accept the second argument, but it does not seem to have any effect.&amp;nbsp; It will complain if you give it more than two arguments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jul 2014 13:38:07 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2014-07-17T13:38:07Z</dc:date>
    <item>
      <title>QUOTE function argument 2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/QUOTE-function-argument-2/m-p/182096#M34705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not find it in the documentation.&amp;nbsp; I'm always the last to know. :smileyshocked:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;data&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;_null_&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; a = &lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"Fisher's"&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;do&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; q = &lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;''''&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;""""&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;x&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; = quote(a,q);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;put&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; x= q=;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;end&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;x='Fisher''s' q='&lt;BR /&gt;x="Fisher's" q="&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 22:57:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/QUOTE-function-argument-2/m-p/182096#M34705</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-07-16T22:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: QUOTE function argument 2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/QUOTE-function-argument-2/m-p/182097#M34706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thus it is equivalent to :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;a = "Fisher's";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; do q = 'A1', "A2";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x = catq(q, a);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put x= q=;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 02:12:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/QUOTE-function-argument-2/m-p/182097#M34706</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-07-17T02:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: QUOTE function argument 2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/QUOTE-function-argument-2/m-p/182098#M34707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems to work in 9.3 and 9.4.&lt;/P&gt;&lt;P&gt;How did you find it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 06:00:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/QUOTE-function-argument-2/m-p/182098#M34707</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-07-17T06:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: QUOTE function argument 2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/QUOTE-function-argument-2/m-p/182099#M34708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no second arg is documented in SAS 9.4 (TS1M1)&lt;/P&gt;&lt;P&gt;BUT V.GOOD TO HAVE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm surprised the choice is the quoting char and not S and Q&lt;/P&gt;&lt;P&gt;It seems that no value other than a single single quote&amp;nbsp; will change default, double quote behaviour. ( but I only tested all 2byte values)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It might have been useful to support other quote symbols (OK I don't need it but I can't speak for others)&lt;/P&gt;&lt;P&gt;Perhaps it might be enhanced in that way before it is "formally announced"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 08:53:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/QUOTE-function-argument-2/m-p/182099#M34708</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2014-07-17T08:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: QUOTE function argument 2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/QUOTE-function-argument-2/m-p/182100#M34709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found it because I was looking at the documentation for CATQ and thought why don't I try that with QUOTE. Of course it's not the same as CATQ which has the more logical 1 and 2 argument.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We should probably use CATQ('A1' to keep from breaking the "don't use undocumented features" rule.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 10:16:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/QUOTE-function-argument-2/m-p/182100#M34709</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-07-17T10:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: QUOTE function argument 2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/QUOTE-function-argument-2/m-p/182101#M34710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;
&lt;P&gt;Peter Crawford wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;It seems that no value other than a single single quote&amp;nbsp; will change default, double quote behaviour. ( but I only tested all 2byte values)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;It might have been useful to support other quote symbols (OK I don't need it but I can't speak for others)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems like the "quote" character could be any character with the syntax the way it is.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;quote('Peter','t') produces tPettert &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 10:51:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/QUOTE-function-argument-2/m-p/182101#M34710</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-07-17T10:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: QUOTE function argument 2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/QUOTE-function-argument-2/m-p/182102#M34711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only trouble I have found with using CATQ is that if you want to use it with %SYSFUNC() it does not handle strings with length 0.&amp;nbsp; QUOTE() is happy to handle such strings and returns two adjacent quote charaters,&amp;nbsp; "" or '' if you use this newly discovered second argument.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 13:29:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/QUOTE-function-argument-2/m-p/182102#M34711</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-07-17T13:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: QUOTE function argument 2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/QUOTE-function-argument-2/m-p/182103#M34712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another interesting note is that in SAS 8.2 and 9.2 it will accept the second argument, but it does not seem to have any effect.&amp;nbsp; It will complain if you give it more than two arguments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 13:38:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/QUOTE-function-argument-2/m-p/182103#M34712</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-07-17T13:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: QUOTE function argument 2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/QUOTE-function-argument-2/m-p/182104#M34713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also&lt;SPAN style="color: #ff0000;"&gt; this&lt;/SPAN&gt; looks fishy.&amp;nbsp; But maybe I did something wrong, and there is a logical explanation that I don't get. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2&lt;SPAN style="font-family: 'courier new', courier;"&gt;7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %let x=%nrstr(Fisher%'s);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;28&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %PUT NOTE: %sysfunc(quote(&amp;amp;x,%str(%')));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOTE: 'Fisher''s'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;29&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %PUT NOTE: %sysfunc(catq(A1,&amp;amp;x));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-family: 'courier new', courier;"&gt;NOTE: 'Fisher''s'''&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %PUT NOTE: %sysfunc(catq(A2,&amp;amp;x));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOTE: "Fisher's'"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 14:03:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/QUOTE-function-argument-2/m-p/182104#M34713</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-07-17T14:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: QUOTE function argument 2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/QUOTE-function-argument-2/m-p/182105#M34714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data_null_;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My experince "varied"&lt;/P&gt;&lt;P&gt;Only the s&amp;nbsp; changed quoting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your experience I hoped for.&lt;/P&gt;&lt;P&gt;to what release must I upgrade to share your experience.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2014 07:19:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/QUOTE-function-argument-2/m-p/182105#M34714</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2014-07-18T07:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: QUOTE function argument 2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/QUOTE-function-argument-2/m-p/182106#M34715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My experience is the same as yours, I did me mean to suggest otherwise.&amp;nbsp; Only change is when the second argument is a single quote.&amp;nbsp; Must be one byte trailing blanks don't work.&amp;nbsp; I was just saying that it seems like the syntax would allow any character to be the "quote" character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed dictionary.functions shows that QUOTE as max args = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My version of SAS is &lt;/P&gt;&lt;P&gt;NOTE: SAS (r) Proprietary Software 9.3 (TS1M2) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2014 12:50:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/QUOTE-function-argument-2/m-p/182106#M34715</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-07-18T12:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: QUOTE function argument 2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/QUOTE-function-argument-2/m-p/182107#M34716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting about dictionary.functions&lt;/P&gt;&lt;P&gt;You're sending me on a missionj to find differences between that and the doc (well, I'm tempted):smileymischief:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2014 18:05:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/QUOTE-function-argument-2/m-p/182107#M34716</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2014-07-18T18:05:50Z</dc:date>
    </item>
  </channel>
</rss>

