<?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: SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/526234#M143278</link>
    <description>You're also missing an END for your DO statement. Or you can not have a DO statement at all.</description>
    <pubDate>Thu, 10 Jan 2019 23:06:22 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-01-10T23:06:22Z</dc:date>
    <item>
      <title>SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/526222#M143272</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting an error Can someone advise how to correct this step&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data DAD_N_1;&lt;BR /&gt;set DAD_N_1a;&lt;BR /&gt;/* ARRAY - ISCHEMIC STROKE DIAGNOSIS CODE */&lt;BR /&gt;ARRAY DX_CODE [25] DIAG_CODE_01 - DIAG_CODE_25;&lt;BR /&gt;STROKE_CNT=0;&lt;/P&gt;&lt;P&gt;DO I=1 TO 25;&lt;BR /&gt;IF ARRAY DX_CODE[I] IN ('I63', 'I64', 'H34') THEN DO;&lt;BR /&gt;STROKE_CNT+1;&lt;BR /&gt;IF SUBSTR(DX_CODE[I],1,4) NOT IN ('I636')THEN DO;&lt;BR /&gt;STROKE_CNT+1;&lt;BR /&gt;/* COUNT NUMBER OF Ischemic stroke procedures */&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;data DAD_N_1;&lt;BR /&gt;383 set DAD_N_1a;&lt;BR /&gt;384 /* ARRAY - ISCHEMIC STROKE DIAGNOSIS CODE */&lt;BR /&gt;385 ARRAY DX_CODE [25] DIAG_CODE_01 - DIAG_CODE_25;&lt;BR /&gt;386&lt;BR /&gt;387 STROKE_CNT=0;&lt;BR /&gt;388&lt;BR /&gt;389 DO I=1 TO 25;&lt;BR /&gt;390 IF ARRAY DX_CODE[I] IN ('I63', 'I64', 'H34') THEN DO;&lt;BR /&gt;-------&lt;BR /&gt;22&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: !, !!, &amp;amp;, (, *, **, +, -, /, ;, &amp;lt;, &amp;lt;=,&lt;BR /&gt;&amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;&amp;lt;, &amp;gt;=, AND, EQ, GE, GT, LE, LT, MAX, MIN, NE, NG, NL, OR, [, ^=, {, |, ||,&lt;BR /&gt;~=.&lt;/P&gt;&lt;P&gt;391 STROKE_CNT+1;&lt;BR /&gt;392 IF SUBSTR(DX_CODE[I],1,4) NOT IN ('I636')THEN DO;&lt;BR /&gt;393 STROKE_CNT+1;&lt;BR /&gt;394 /* COUNT NUMBER OF Ischemic stroke procedures */&lt;BR /&gt;395 run;&lt;/P&gt;&lt;P&gt;NOTE: Character values have been converted to numeric values at the places given by: (Line):(Column).&lt;BR /&gt;390:14 1:1&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 22:08:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/526222#M143272</guid>
      <dc:creator>Ranjeeta</dc:creator>
      <dc:date>2019-01-10T22:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/526224#M143274</link>
      <description>&lt;P&gt;You only use the keyword array when defining one. Instead of&lt;/P&gt;
&lt;PRE&gt;IF ARRAY DX_CODE[I] IN ('I63', 'I64', 'H34') THEN DO;&lt;/PRE&gt;
&lt;P&gt;use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;IF  DX_CODE[I] IN ('I63', 'I64', 'H34') THEN DO;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Jan 2019 22:13:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/526224#M143274</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-01-10T22:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/526226#M143275</link>
      <description>thankyou for pointing that out then how do I combine he two conditions in the array</description>
      <pubDate>Thu, 10 Jan 2019 22:29:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/526226#M143275</guid>
      <dc:creator>Ranjeeta</dc:creator>
      <dc:date>2019-01-10T22:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/526228#M143276</link>
      <description>&lt;P&gt;Are you looking to do this??&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
if DX_CODE[I] IN ('I63', 'I64', 'H34') or SUBSTR(DX_CODE[I],1,4) NOT IN ('I636')THEN STROKE_CNT+1; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Jan 2019 22:38:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/526228#M143276</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-01-10T22:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/526234#M143278</link>
      <description>You're also missing an END for your DO statement. Or you can not have a DO statement at all.</description>
      <pubDate>Thu, 10 Jan 2019 23:06:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/526234#M143278</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-10T23:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/526251#M143287</link>
      <description>&lt;P&gt;How could this possibly be the right logic?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;IF SUBSTR(DX_CODE[I],1,4) NOT IN ('I636')THEN DO;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;STROKE_CNT+1;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Even missing values for the diagnosis code would increase the stroke count.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Can diagnosis codes really be 3 characters long?&amp;nbsp; If not, how could this ever produce a match:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;IF ARRAY DX_CODE[I] IN ('I63', 'I64', 'H34') THEN DO;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You might have to explain what you are trying to count.&amp;nbsp; Especially whether you are trying to double-count "I63" and "I636".&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 01:17:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/526251#M143287</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-01-11T01:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/526421#M143350</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to count the procedures that have codes&amp;nbsp;&lt;SPAN&gt;('I61' 'I63' 'I64') ('H341') and not&amp;nbsp;NOT IN ('G454' 'I636')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data DAD_N_1;&lt;BR /&gt;130 set DAD_N_1a;&lt;BR /&gt;131 /* ARRAY - ISCHEMIC STROKE DIAGNOSIS CODE */&lt;BR /&gt;132 ARRAY DX_CODE [25] DIAG_CODE_01 - DIAG_CODE_25;&lt;BR /&gt;133 STROKE_CNT=0;&lt;BR /&gt;134&lt;BR /&gt;135 DO I=1 TO 25;&lt;BR /&gt;136&lt;BR /&gt;137 IF((SUBSTR(DX_CODE[I],1,3) IN ('I61' 'I63' 'I64') OR SUBSTR(DX_CODE[I],1,4) = ('H341'))and&lt;BR /&gt;138 SUBSTR(DX_CODE[I],1,4) NOT IN ('G454' 'I636')&lt;BR /&gt;139 THEN STROKE_CNT+1;&lt;BR /&gt;----&lt;BR /&gt;22&lt;BR /&gt;76&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: !, &amp;amp;, ), &amp;lt;, &amp;lt;=, =, &amp;gt;, &amp;gt;=, AND, EQ, GE,&lt;BR /&gt;GT, IN, LE, LT, NE, NG, NL, NOT, NOTIN, OR, ^, ^=, |, ~, ~=.&lt;/P&gt;&lt;P&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;&lt;P&gt;140&lt;BR /&gt;141 end;&lt;BR /&gt;142&lt;BR /&gt;143 /* COUNT NUMBER OF Ischemic stroke procedures */&lt;BR /&gt;144 run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 17:06:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/526421#M143350</guid>
      <dc:creator>Ranjeeta</dc:creator>
      <dc:date>2019-01-11T17:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/526453#M143367</link>
      <description>&lt;P&gt;OK, last chance to explain.&amp;nbsp; If you count the procedure codes that are in ('I61' 'I63' 'I64' 'H341'), why do you need to pay any attention to 'G454' and 'I636'?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 18:49:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/526453#M143367</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-01-11T18:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/526457#M143369</link>
      <description>They are codes that we need to exclude due to business requirements but thankyou there was extra parentheses in the code below its resolved now&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Jan 2019 19:07:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/526457#M143369</guid>
      <dc:creator>Ranjeeta</dc:creator>
      <dc:date>2019-01-11T19:07:28Z</dc:date>
    </item>
  </channel>
</rss>

