<?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: question about assignment statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/question-about-assignment-statement/m-p/409642#M100079</link>
    <description>&lt;P&gt;This is the MAX operator.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=lrcon&amp;amp;docsetTarget=p00iah2thp63bmn1lt20esag14lh.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=lrcon&amp;amp;docsetTarget=p00iah2thp63bmn1lt20esag14lh.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It works similar to the Max function and takes the max value of the two items on either side.&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, 01 Nov 2017 21:03:19 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-11-01T21:03:19Z</dc:date>
    <item>
      <title>question about assignment statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question-about-assignment-statement/m-p/409619#M100071</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am reading other people's code. But not understand one line of the code as the following. Can anybody help me out? Thanks!&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data trtdate;
	merge trtsdt trtedt;
	by usubjid;
	&lt;STRONG&gt;maxdtc=maxsdtc max maxedtc;&lt;/STRONG&gt;
	TRTEDT=input(maxdtc, yymmdd10.);
	TR01SDT=TRTSDT;
	TR01EDT=TRTEDT;
	format trtedt tr01sdt tr01edt yymmdd10.;
	keep usubjid trtsdt trtedt tr01sdt tr01edt;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;the line of code is highlighted. All &lt;STRONG&gt;maxdtc, maxsdtc&lt;/STRONG&gt; and &lt;STRONG&gt;maxedtc&lt;/STRONG&gt; are character variables. the purpose of this code is to find the maxdtc between&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;maxsdtc&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;maxedtc. &lt;/STRONG&gt;Just do not understand the logic of this assignment statement.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 20:04:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question-about-assignment-statement/m-p/409619#M100071</guid>
      <dc:creator>SAS_John</dc:creator>
      <dc:date>2017-11-01T20:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: question about assignment statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question-about-assignment-statement/m-p/409626#M100072</link>
      <description>&lt;P&gt;I read your post three times, but i don't understand it. Please post the log after executing the datastep.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The line&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;maxdtc&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;maxsdtc &lt;SPAN class="token function"&gt;max&lt;/SPAN&gt; maxedtc&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;looks like a syntax error.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 20:19:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question-about-assignment-statement/m-p/409626#M100072</guid>
      <dc:creator>error_prone</dc:creator>
      <dc:date>2017-11-01T20:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: question about assignment statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question-about-assignment-statement/m-p/409633#M100074</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/119294"&gt;@SAS_John&lt;/a&gt;&amp;nbsp;highlighting doesn't appear in the post&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 20:43:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question-about-assignment-statement/m-p/409633#M100074</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-01T20:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: question about assignment statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question-about-assignment-statement/m-p/409640#M100077</link>
      <description>&lt;P&gt;Thanks for replies.&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;maxdtc&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;maxsdtc &lt;SPAN class="token function"&gt;max&lt;/SPAN&gt; maxedtc&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I run the code and it works. Just want to know the logic behind it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 20:55:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question-about-assignment-statement/m-p/409640#M100077</guid>
      <dc:creator>SAS_John</dc:creator>
      <dc:date>2017-11-01T20:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: question about assignment statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question-about-assignment-statement/m-p/409641#M100078</link>
      <description>&lt;P&gt;Here is the log.&amp;nbsp;&lt;/P&gt;&lt;P&gt;606 data trtdate;&lt;BR /&gt;607 merge trtsdt trtedt;&lt;BR /&gt;608 by usubjid;&lt;BR /&gt;609 maxdtc=maxsdtc max maxedtc;&lt;BR /&gt;610 TRTEDT=input(maxdtc, yymmdd10.);&lt;BR /&gt;611 TR01SDT=TRTSDT;&lt;BR /&gt;612 TR01EDT=TRTEDT;&lt;BR /&gt;613 format trtedt tr01sdt tr01edt yymmdd10.;&lt;BR /&gt;614 keep usubjid trtsdt trtedt tr01sdt tr01edt;&lt;BR /&gt;615 run;&lt;/P&gt;&lt;P&gt;NOTE: There were 232 observations read from the data set WORK.TRTSDT.&lt;BR /&gt;NOTE: There were 232 observations read from the data set WORK.TRTEDT.&lt;BR /&gt;NOTE: The data set WORK.TRTDATE has 232 observations and 5 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 20:57:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question-about-assignment-statement/m-p/409641#M100078</guid>
      <dc:creator>SAS_John</dc:creator>
      <dc:date>2017-11-01T20:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: question about assignment statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question-about-assignment-statement/m-p/409642#M100079</link>
      <description>&lt;P&gt;This is the MAX operator.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=lrcon&amp;amp;docsetTarget=p00iah2thp63bmn1lt20esag14lh.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=lrcon&amp;amp;docsetTarget=p00iah2thp63bmn1lt20esag14lh.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It works similar to the Max function and takes the max value of the two items on either side.&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, 01 Nov 2017 21:03:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question-about-assignment-statement/m-p/409642#M100079</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-01T21:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: question about assignment statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question-about-assignment-statement/m-p/409645#M100081</link>
      <description>&lt;P&gt;Thanks Reeza. Got It&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 21:09:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question-about-assignment-statement/m-p/409645#M100081</guid>
      <dc:creator>SAS_John</dc:creator>
      <dc:date>2017-11-01T21:09:22Z</dc:date>
    </item>
  </channel>
</rss>

