<?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: Modifying variable value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535298#M146972</link>
    <description>&lt;P&gt;Thank you al for trying to help me. I tried all of the suggested codes, &amp;nbsp;but so far it is not working.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Feb 2019 17:13:26 GMT</pubDate>
    <dc:creator>Dhana18</dc:creator>
    <dc:date>2019-02-13T17:13:26Z</dc:date>
    <item>
      <title>Modifying variable value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535264#M146958</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;I wanted to modify the value (from blank to 1) in one of the records. This is how i coded. Visdate is a character variable.&lt;/P&gt;&lt;P&gt;DATA SUBMTWO.Clinicdata29_1;&lt;BR /&gt;SET SUBMTWO.Clinicdata29;&lt;BR /&gt;IF CL_PATIENTID='50055' and visdate="11/27/2017" THEN TOC_VIS='1';&lt;BR /&gt;RUN;&lt;BR /&gt;proc print data=SUBMTWO.Clinicdata29_1;&lt;BR /&gt;var cl_patientid toc_viss;&lt;BR /&gt;where cl_patientid="50055";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Log shows no erreor.&lt;/P&gt;&lt;P&gt;DATA SUBMTWO.Clinicdata29_1;&lt;BR /&gt;130 SET SUBMTWO.Clinicdata29;&lt;BR /&gt;131 IF CL_PATIENTID='50055' and visdate="11/27/2017" THEN TOC_VISs='1';&lt;BR /&gt;132 RUN;&lt;/P&gt;&lt;P&gt;NOTE: There were 3414 observations read from the data set SUBMTWO.CLINICDATA29.&lt;BR /&gt;NOTE: The data set SUBMTWO.CLINICDATA29_1 has 3414 observations and 58 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.18 seconds&lt;BR /&gt;cpu time 0.03 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am i doing it wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 16:25:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535264#M146958</guid>
      <dc:creator>Dhana18</dc:creator>
      <dc:date>2019-02-13T16:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying variable value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535269#M146959</link>
      <description>&lt;P&gt;Test your conditions individually and see which is not catching the record.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA SUBMTWO.Clinicdata29_1;
SET SUBMTWO.Clinicdata29;
IF CL_PATIENTID='50055' then flag1=1;
if visdate="11/27/2017" flag2=1;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;You should also show the output you did get from the PROC PRINT.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/212762"&gt;@Dhana18&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Good morning,&lt;/P&gt;
&lt;P&gt;I wanted to modify the value (from blank to 1) in one of the records. This is how i coded. Visdate is a character variable.&lt;/P&gt;
&lt;P&gt;DATA SUBMTWO.Clinicdata29_1;&lt;BR /&gt;SET SUBMTWO.Clinicdata29;&lt;BR /&gt;IF CL_PATIENTID='50055' and visdate="11/27/2017" THEN TOC_VIS='1';&lt;BR /&gt;RUN;&lt;BR /&gt;proc print data=SUBMTWO.Clinicdata29_1;&lt;BR /&gt;var cl_patientid toc_viss;&lt;BR /&gt;where cl_patientid="50055";&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Log shows no erreor.&lt;/P&gt;
&lt;P&gt;DATA SUBMTWO.Clinicdata29_1;&lt;BR /&gt;130 SET SUBMTWO.Clinicdata29;&lt;BR /&gt;131 IF CL_PATIENTID='50055' and visdate="11/27/2017" THEN TOC_VISs='1';&lt;BR /&gt;132 RUN;&lt;/P&gt;
&lt;P&gt;NOTE: There were 3414 observations read from the data set SUBMTWO.CLINICDATA29.&lt;BR /&gt;NOTE: The data set SUBMTWO.CLINICDATA29_1 has 3414 observations and 58 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.18 seconds&lt;BR /&gt;cpu time 0.03 seconds&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What am i doing it wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 16:33:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535269#M146959</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-13T16:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying variable value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535270#M146960</link>
      <description>&lt;DIV class="lia-message-heading lia-component-message-header"&gt;
&lt;DIV class="lia-quilt-row lia-quilt-row-standard"&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-20 lia-quilt-column-left"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt;
&lt;DIV class="lia-message-subject"&gt;
&lt;H5&gt;Modifying variable value&lt;/H5&gt;
&lt;/DIV&gt;
&lt;DIV class="lia-message-subject"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="messagebodydisplay_0" class="lia-message-body"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P&gt;You wanted to modify the value (from blank to 1) in one of the records. This is how i coded. Visdate is a character variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Log shows no erreor.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am unable to understand your question&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;EDITed:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Assumption&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;some leading/trailing banks?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If yes use strip&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;IF Strip(CL_PATIENTID)='50055' and strip(visdate)="11/27/2017" THEN TOC_VIS='1';&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 13 Feb 2019 16:36:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535270#M146960</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-02-13T16:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying variable value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535282#M146964</link>
      <description>&lt;P&gt;Reeza,&lt;/P&gt;&lt;P&gt;I ggot this error message and&lt;/P&gt;&lt;P&gt;137 DATA SUBMTWO.Clinicdata29_1;&lt;/P&gt;&lt;P&gt;138 IF CL_PATIENTID='50055' then flag1=1;&lt;/P&gt;&lt;P&gt;139 if visdate="11/27/2017" flag2=1;&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;22&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: !, !!, &amp;amp;, *, **, +, -, /, ;, &amp;lt;, &amp;lt;=,&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;&amp;lt;, &amp;gt;=, AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG, NL, NOTIN, OR, ^=,&lt;/P&gt;&lt;P&gt;|, ||, ~=.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I di d this&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 face="Courier New" size="2"&gt; SUBMTWO.Clinicdata29_1;&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; CL_PATIENTID=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'50055'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; flag1 = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"1"&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;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; visdate=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"11/27/2017"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; flag2 = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"1"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;149 DATA SUBMTWO.Clinicdata29_1;&lt;/P&gt;&lt;P&gt;150 IF CL_PATIENTID='50055' then flag1 = "1";&lt;/P&gt;&lt;P&gt;151 if visdate="11/27/2017" then flag2 = "1";&lt;/P&gt;&lt;P&gt;152 RUN;&lt;/P&gt;&lt;P&gt;NOTE: Variable CL_PATIENTID is uninitialized.&lt;/P&gt;&lt;P&gt;NOTE: Variable visdate is uninitialized.&lt;/P&gt;&lt;P&gt;NOTE: The data set SUBMTWO.CLINICDATA29_1 has 1 observations and 4 variables.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.11 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.06 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CL_Patientid can be repeated, because same patient may have come to the clinic multiple times in a year. That is why I used visdate.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 16:42:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535282#M146964</guid>
      <dc:creator>Dhana18</dc:creator>
      <dc:date>2019-02-13T16:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying variable value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535283#M146965</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/212762"&gt;@Dhana18&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Good morning,&lt;/P&gt;
&lt;P&gt;I wanted to modify the value (from blank to 1) in one of the records. This is how i coded. Visdate is a character variable.&lt;/P&gt;
&lt;P&gt;DATA SUBMTWO.Clinicdata29_1;&lt;BR /&gt;SET SUBMTWO.Clinicdata29;&lt;BR /&gt;IF CL_PATIENTID='50055' and visdate="11/27/2017"&lt;STRONG&gt;&lt;FONT color="#ff0000"&gt; THEN TOC_VIS='1';&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;RUN;&lt;BR /&gt;proc print data=SUBMTWO.Clinicdata29_1;&lt;BR /&gt;var cl_patientid toc_viss;&lt;BR /&gt;where cl_patientid="50055";&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Log shows no erreor.&lt;/P&gt;
&lt;P&gt;DATA SUBMTWO.Clinicdata29_1;&lt;BR /&gt;130 SET SUBMTWO.Clinicdata29;&lt;BR /&gt;131 IF CL_PATIENTID='50055' and visdate="11/27/2017" &lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;THEN TOC_VISs='1';&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;132 RUN;&lt;/P&gt;
&lt;P&gt;NOTE: There were 3414 observations read from the data set SUBMTWO.CLINICDATA29.&lt;BR /&gt;NOTE: The data set SUBMTWO.CLINICDATA29_1 has 3414 observations and 58 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.18 seconds&lt;BR /&gt;cpu time 0.03 seconds&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What am i doing it wrong?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Check your data set. I bet you have now have a variable named toc_viss&amp;nbsp;that only has one value of '1' and blank for the rest. This would likely be the rightmost column if you use the table viewer or the last column in a proc print output.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 16:45:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535283#M146965</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-02-13T16:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying variable value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535285#M146966</link>
      <description>165 DATA SUBMTWO.Clinicdata29_1;&lt;BR /&gt;166 SET SUBMTWO.Clinicdata29;&lt;BR /&gt;167 IF Strip(CL_PATIENTID)='50055' and strip(visdate)="11/27/2017" THEN TOC_VIS='1';&lt;BR /&gt;168 RUN;&lt;BR /&gt;&lt;BR /&gt;NOTE: There were 3414 observations read from the data set SUBMTWO.CLINICDATA29.&lt;BR /&gt;NOTE: The data set SUBMTWO.CLINICDATA29_1 has 3414 observations and 57 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.07 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;BR /&gt;Did not work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;</description>
      <pubDate>Wed, 13 Feb 2019 16:48:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535285#M146966</guid>
      <dc:creator>Dhana18</dc:creator>
      <dc:date>2019-02-13T16:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying variable value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535287#M146967</link>
      <description>It's missing the THEN, add it to the second IF condition. And paste your whole log, including from the PROC PRINT, BallardW is likely correct in his answer.</description>
      <pubDate>Wed, 13 Feb 2019 16:50:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535287#M146967</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-13T16:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying variable value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535297#M146971</link>
      <description>here is the output&lt;BR /&gt;The SAS System&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Obs flag1 flag2 CL_PATIENTID TOC_VIS&lt;BR /&gt;839 1 . 50055&lt;BR /&gt;1085 1 . 50055&lt;BR /&gt;1203 1 . 50055&lt;BR /&gt;same patient visited the clinic multiple times and I only want to have 1 on a specific visdate. Please help.</description>
      <pubDate>Wed, 13 Feb 2019 17:10:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535297#M146971</guid>
      <dc:creator>Dhana18</dc:creator>
      <dc:date>2019-02-13T17:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying variable value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535298#M146972</link>
      <description>&lt;P&gt;Thank you al for trying to help me. I tried all of the suggested codes, &amp;nbsp;but so far it is not working.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 17:13:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535298#M146972</guid>
      <dc:creator>Dhana18</dc:creator>
      <dc:date>2019-02-13T17:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying variable value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535310#M146975</link>
      <description>&lt;P&gt;You'll notice that flag2 is never set.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Show a proc contents on your main data set, how you're specifying the date appears to be part of the issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you've never shown your log including the PROC PRINT step. Include both of these in your next response please.&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/212762"&gt;@Dhana18&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;here is the output&lt;BR /&gt;The SAS System&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Obs flag1 flag2 CL_PATIENTID TOC_VIS&lt;BR /&gt;839 1 . 50055&lt;BR /&gt;1085 1 . 50055&lt;BR /&gt;1203 1 . 50055&lt;BR /&gt;same patient visited the clinic multiple times and I only want to have 1 on a specific visdate. Please help.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 17:31:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535310#M146975</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-13T17:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying variable value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535317#M146976</link>
      <description>&lt;P&gt;Reeza,&lt;/P&gt;&lt;P&gt;Here is the log.&lt;/P&gt;&lt;P&gt;DATA SUBMTWO.Clinicdata29_1;&lt;/P&gt;&lt;P&gt;272 SET SUBMTWO.Clinicdata29;&lt;/P&gt;&lt;P&gt;273&lt;/P&gt;&lt;P&gt;274 IF CL_PATIENTID='50055' then flag1=1;&lt;/P&gt;&lt;P&gt;275 if visdate="11/27/2017" then flag2=1;&lt;/P&gt;&lt;P&gt;276 RUN;&lt;/P&gt;&lt;P&gt;NOTE: There were 3414 observations read from the data set SUBMTWO.CLINICDATA29.&lt;/P&gt;&lt;P&gt;NOTE: The data set SUBMTWO.CLINICDATA29_1 has 3414 observations and 59 variables.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.11 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.03 seconds&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;print&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=SUBMTWO.Clinicdata29_1;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;var&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; flag1 flag2 cl_patientid TOC_VIS;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;where&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; cl_patientid=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"50055"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&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;here is the result&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Obs flag1 flag2 CL_PATIENTID TOC_VIS83910851203&lt;/P&gt;&lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;50055&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;50055&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;50055&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I DONOT want to flag on all visit just one specific date.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 17:42:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535317#M146976</guid>
      <dc:creator>Dhana18</dc:creator>
      <dc:date>2019-02-13T17:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying variable value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535326#M146978</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/212762"&gt;@Dhana18&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you al for trying to help me. I tried all of the suggested codes, &amp;nbsp;but so far it is not working.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Please post Code or log entries by copy from the editor or log and paste into a code box opened using the {I}. That will preserve code and error message formatting.&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;2297  data work.junk;
2298     set sashelp.class;
2299     if sex='F' flag=1;
                    ----
                    22
ERROR 22-322: Syntax error, expecting one of the following: !, !!, &amp;amp;, *, **, +, -, /, ;, &amp;lt;, &amp;lt;=,
              &amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;&amp;lt;, &amp;gt;=, AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG, NL, NOTIN, OR, ^=,
              |, ||, ~=.

2300  run;
&lt;/PRE&gt;
&lt;P&gt;Now we can see the underscore characters under the word FLAG and that gives us the hint that the 'THEN' is missing when you want to assign the value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also when you pasted this bit:&lt;/P&gt;
&lt;PRE&gt;149 DATA SUBMTWO.Clinicdata29_1;
150 IF CL_PATIENTID='50055' then flag1 = "1";
151 if visdate="11/27/2017" then flag2 = "1";
152 RUN;

NOTE: Variable CL_PATIENTID is uninitialized.
NOTE: Variable visdate is uninitialized.
NOTE: The data set SUBMTWO.CLINICDATA29_1 has 1 observations and 4 variables
&lt;/PRE&gt;
&lt;P&gt;There is &lt;STRONG&gt;no&lt;/STRONG&gt; set statement. So there is nothing read. Your output for this data would have 1 record and 4 variables because there was not instruction to create more records and you only use the names of 4 variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you show this output:&lt;/P&gt;
&lt;PRE&gt;proc print data=SUBMTWO.Clinicdata29_1;
var flag1 flag2 cl_patientid TOC_VIS;
where cl_patientid="50055";
run;

Obs flag1 flag2 CL_PATIENTID TOC_VIS83910851203

1 . 50055   
1 . 50055   
1 . 50055 

 I DONOT want to flag on all visit just one specific date.
&lt;/PRE&gt;
&lt;P&gt;The Proc Print output shows that all of your TOC_VIS values are blank for the records where CL_Patientid is 50055.&lt;/P&gt;
&lt;P&gt;Perhaps you need to Print VISDATE instead of TOC_VIS to check your data. That is the variable you are supposedly using to set the Flag2 variable.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 18:05:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535326#M146978</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-02-13T18:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying variable value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535329#M146979</link>
      <description>&lt;P&gt;Reeza,&lt;/P&gt;&lt;P&gt;Proc contents here. I removed the other variables.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Alphabetic List of Variables and Attributes&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;#&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Variable&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Type&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Len&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Format&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Informat&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Label&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;CL_PATIENTID&lt;/TD&gt;&lt;TD&gt;Char&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;$7.00&lt;/TD&gt;&lt;TD&gt;$7.00&lt;/TD&gt;&lt;TD&gt;CL_PATIENTID&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;57&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;TOC_VIS&lt;/TD&gt;&lt;TD&gt;Char&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;$1.00&lt;/TD&gt;&lt;TD&gt;$1.00&lt;/TD&gt;&lt;TD&gt;TOC_VIS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;4&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;VISDATE&lt;/TD&gt;&lt;TD&gt;Char&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;$10.00&lt;/TD&gt;&lt;TD&gt;$10.00&lt;/TD&gt;&lt;TD&gt;VISDATE&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 13 Feb 2019 18:11:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535329#M146979</guid>
      <dc:creator>Dhana18</dc:creator>
      <dc:date>2019-02-13T18:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying variable value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535336#M146982</link>
      <description>&lt;P&gt;I used this datastep&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 face="Courier New" size="2"&gt; SUBMTWO.Clinicdata29_1;&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; SUBMTWO.Clinicdata29;&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; CL_PATIENTID=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'50055'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; flag1=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&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;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; visdate=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'11/27/2017'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; flag2=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&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="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;then &lt;/FONT&gt;used this proc print statement, and this is the output&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;Obs VISDATE CL_PATIENTID83910851203 &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;2017/10/17&lt;/TD&gt;&lt;TD&gt;50055&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2017/11/27&lt;/TD&gt;&lt;TD&gt;50055&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2017/12/11&lt;/TD&gt;&lt;TD&gt;50055&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 18:18:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535336#M146982</guid>
      <dc:creator>Dhana18</dc:creator>
      <dc:date>2019-02-13T18:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying variable value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535338#M146983</link>
      <description>&lt;P&gt;try this and let us know the results&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;SPAN&gt;&amp;nbsp;check&lt;/SPAN&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;SET&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;SUBMTWO.Clinicdata29;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;IF&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;CL_PATIENTID=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;'50055'&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;or&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;visdate=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;'11/27/2017'&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;SPAN&gt;&amp;nbsp;output;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&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;Lets do some tests&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 18:19:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535338#M146983</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-02-13T18:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying variable value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535357#M146987</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/212762"&gt;@Dhana18&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I used this datastep&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; SUBMTWO.Clinicdata29_1;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;SET&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; SUBMTWO.Clinicdata29;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;IF&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; CL_PATIENTID=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;'50055'&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; flag1=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;1&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 face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; visdate=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;'11/27/2017'&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; flag2=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;1&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 face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;then &lt;/FONT&gt;used this proc print statement, and this is the output&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;Obs VISDATE CL_PATIENTID83910851203
&lt;TABLE cellspacing="0" cellpadding="5"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;2017/10/17&lt;/TD&gt;
&lt;TD&gt;50055&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2017/11/27&lt;/TD&gt;
&lt;TD&gt;50055&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2017/12/11&lt;/TD&gt;
&lt;TD&gt;50055&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Show the full log (including the proc print) and include the flags in the PROC PRINT. Without them, you can't see where the issue is coming from.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 18:46:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535357#M146987</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-13T18:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying variable value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535360#M146989</link>
      <description>&lt;P&gt;OR does not work I need both conditions patient id and visit date. Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 18:48:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535360#M146989</guid>
      <dc:creator>Dhana18</dc:creator>
      <dc:date>2019-02-13T18:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying variable value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535361#M146990</link>
      <description>&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 face="Courier New" size="2"&gt; SUBMTWO.Clinicdata29_1;&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; SUBMTWO.Clinicdata29;&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; CL_PATIENTID=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'50055'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; flag1=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&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;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; visdate=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'11/27/2017'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; flag2=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&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="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;12 DATA SUBMTWO.Clinicdata29_1;&lt;/P&gt;&lt;P&gt;13 SET SUBMTWO.Clinicdata29;&lt;/P&gt;&lt;P&gt;14 IF CL_PATIENTID='50055' then flag1=1;&lt;/P&gt;&lt;P&gt;15 if visdate='11/27/2017' then flag2=1;&lt;/P&gt;&lt;P&gt;16 RUN;&lt;/P&gt;&lt;P&gt;NOTE: There were 3414 observations read from the data set SUBMTWO.CLINICDATA29.&lt;/P&gt;&lt;P&gt;NOTE: The data set SUBMTWO.CLINICDATA29_1 has 3414 observations and 59 variables.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.10 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;print&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=SUBMTWO.Clinicdata29_1 ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;var&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; flag1 flag2 CL_patientid toc_vis;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;where&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; cl_patientid=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"50055"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;25 proc print data=SUBMTWO.Clinicdata29_1 ;&lt;/P&gt;&lt;P&gt;26 var flag1 flag2 CL_patientid toc_vis;&lt;/P&gt;&lt;P&gt;27 where cl_patientid="50055";&lt;/P&gt;&lt;P&gt;28 run;&lt;/P&gt;&lt;P&gt;NOTE: There were 3 observations read from the data set SUBMTWO.CLINICDATA29_1.&lt;/P&gt;&lt;P&gt;WHERE cl_patientid='50055';&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.03 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.01 seconds&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 18:55:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535361#M146990</guid>
      <dc:creator>Dhana18</dc:creator>
      <dc:date>2019-02-13T18:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying variable value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535365#M146992</link>
      <description>&lt;P&gt;The idea of OR was to see if there are records actually present in your data&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 19:04:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535365#M146992</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-02-13T19:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying variable value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535391#M147010</link>
      <description>Can you show the PROC PRINT results please as well?</description>
      <pubDate>Wed, 13 Feb 2019 20:18:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modifying-variable-value/m-p/535391#M147010</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-13T20:18:54Z</dc:date>
    </item>
  </channel>
</rss>

