<?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 Logistic error responses in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Logistic-error-responses/m-p/628867#M185891</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/301681"&gt;@rebecca8&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks! That's funny - I was actually advised to use the curly quotes and had switched from straight ones. Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You may want to go back to the source that recommended the curly quotes and see if they actually meant to use that for CODE&amp;nbsp;statements or output appearance in a report.&lt;/P&gt;</description>
    <pubDate>Mon, 02 Mar 2020 18:15:49 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-03-02T18:15:49Z</dc:date>
    <item>
      <title>Proc Logistic error responses</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Logistic-error-responses/m-p/628753#M185849</link>
      <description>&lt;P&gt;Hi there - I'm a beginner with SAS (on a Mac) and am trying to use proc logistic - but I keep getting error responses. My code is as below:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;data sasintro.data_clean;&lt;/DIV&gt;&lt;DIV&gt;set allpreg;&lt;/DIV&gt;&lt;DIV&gt;if qx17 ^=‘ ‘ then do;&lt;/DIV&gt;&lt;DIV&gt;Policy=0;&lt;/DIV&gt;&lt;DIV&gt;end;&lt;/DIV&gt;&lt;DIV&gt;if qx17="Yes" then Policy=1;&lt;/DIV&gt;&lt;DIV&gt;if index (qx22, "a") then comp=1;&lt;/DIV&gt;&lt;DIV&gt;else comp=0;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;proc logistic data=sasintro.data_clean descending;&lt;/DIV&gt;&lt;DIV&gt;model comp=Policy/rl;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The log response is as below:&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73 data sasintro.data_clean;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74 set allpreg;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75 if qx17 ^=‘ ‘ then do;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;___&lt;/DIV&gt;&lt;DIV class="sasError"&gt;388&lt;/DIV&gt;&lt;DIV class="sasError"&gt;76&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 388-185: Expecting an arithmetic operator.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76 Policy=0;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;77 end;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;___&lt;/DIV&gt;&lt;DIV class="sasError"&gt;161&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 161-185: No matching DO/SELECT statement.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;78 if qx17="Yes" then Policy=1;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;79 if index (qx22, "a") then comp=1;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;80 else comp=0;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;81 run;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: The data set SASINTRO.DATA_CLEAN may be incomplete. When this step was stopped there were 0 observations and 32 variables.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Data set SASINTRO.DATA_CLEAN was not replaced because this step was stopped.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: DATA statement used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.02 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;cpu time 0.02 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: PROCEDURE LOGISTIC used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.00 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;cpu time 0.00 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Variable COMP not found.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;82 proc logistic data=sasintro.data_clean descending;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;83 model comp=Policy/rl;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;84 run;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;85&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;86 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;98&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;Any help would be appreciated! Thank you!&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 02 Mar 2020 13:16:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Logistic-error-responses/m-p/628753#M185849</guid>
      <dc:creator>rebecca8</dc:creator>
      <dc:date>2020-03-02T13:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Logistic error responses</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Logistic-error-responses/m-p/628756#M185850</link>
      <description>&lt;PRE&gt;75 if qx17 ^=‘ ‘ then do;
___
388
76
ERROR 388-185: Expecting an arithmetic operator.&lt;/PRE&gt;
&lt;P&gt;You are using "curly" quotes, these do not work inside of SAS. You need to use the straight quotes, which would look like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if qx17 ^=' ' then do;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Curly quotes often happen if your code is pasted into SAS from a word-processor or PowerPoint. Don't do this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Futhermore, please help us out in the future by pasting the log file into the window that appears when you click on the {i} icon. This preserves the formatting of the log and makes it easier for us to read and decipher. DO NOT SKIP THIS STEP!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 18:26:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Logistic-error-responses/m-p/628756#M185850</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-03-02T18:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Logistic error responses</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Logistic-error-responses/m-p/628757#M185851</link>
      <description>&lt;P&gt;Thanks! That's funny - I was actually advised to use the curly quotes and had switched from straight ones. Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 13:40:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Logistic-error-responses/m-p/628757#M185851</guid>
      <dc:creator>rebecca8</dc:creator>
      <dc:date>2020-03-02T13:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Logistic error responses</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Logistic-error-responses/m-p/628867#M185891</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/301681"&gt;@rebecca8&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks! That's funny - I was actually advised to use the curly quotes and had switched from straight ones. Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You may want to go back to the source that recommended the curly quotes and see if they actually meant to use that for CODE&amp;nbsp;statements or output appearance in a report.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 18:15:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Logistic-error-responses/m-p/628867#M185891</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-03-02T18:15:49Z</dc:date>
    </item>
  </channel>
</rss>

