<?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: Retain values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Retain-values/m-p/530842#M145188</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No I don't want back filled the data&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jan 2019 06:34:33 GMT</pubDate>
    <dc:creator>RajasekharReddy</dc:creator>
    <dc:date>2019-01-29T06:34:33Z</dc:date>
    <item>
      <title>Retain values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retain-values/m-p/529657#M144756</link>
      <description>&lt;P&gt;Hello I am stuck with Retain values for variable ABLFL&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ABLFL value is "Y" where VISITNUM is 10 and 10.1 and i need retain ABLFL values for same PARAMCD&amp;nbsp; by USUBJID&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="retain.png" style="width: 673px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26534iAE326CF8BCC840EC/image-dimensions/673x440?v=v2" width="673" height="440" role="button" title="retain.png" alt="retain.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 11:54:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retain-values/m-p/529657#M144756</guid>
      <dc:creator>RajasekharReddy</dc:creator>
      <dc:date>2019-01-24T11:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Retain values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retain-values/m-p/529662#M144759</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="background-color: transparent; box-sizing: border-box; color: #333333; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 21.33px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;"&gt;Please provide your data in a SAS program, so we don't have to do this for you&lt;/P&gt;
&lt;P style="background-color: transparent; box-sizing: border-box; color: #333333; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 21.33px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="background-color: transparent; box-sizing: border-box; color: #333333; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 21.33px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;"&gt;&lt;A style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; box-sizing: border-box; color: #007dc3; text-decoration: none;" href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank" rel="noopener noreferrer"&gt;How to convert datasets to data steps&lt;/A&gt;&lt;BR style="box-sizing: border-box;" /&gt;&lt;A style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; box-sizing: border-box; color: #007dc3; text-decoration: none;" href="https://gist.githubusercontent.com/statgeek/bcc55940dd825a13b9c8ca40a904cba9/raw/865d2cf18f5150b8e887218dde0fc3951d0ff15b/data2datastep.sas" target="_blank" rel="nofollow noopener noreferrer noopener noreferrer noopener noreferrer"&gt;The macro for direct download&lt;/A&gt;&lt;/P&gt;
&lt;P style="background-color: transparent; box-sizing: border-box; color: #333333; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 21.33px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="background-color: transparent; box-sizing: border-box; color: #333333; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 21.33px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;"&gt;Provide the expected output and the logic&lt;/P&gt;
&lt;P style="background-color: transparent; box-sizing: border-box; color: #333333; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 21.33px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;"&gt;provide your SAS code that you are working with.&lt;/P&gt;
&lt;P style="background-color: transparent; box-sizing: border-box; color: #333333; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 21.33px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="background-color: transparent; box-sizing: border-box; color: #333333; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 21.33px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;"&gt;Help us help you by providing the items needed to answer your request.&lt;/P&gt;
&lt;P style="background-color: transparent; box-sizing: border-box; color: #333333; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 21.33px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 12:36:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retain-values/m-p/529662#M144759</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-01-24T12:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Retain values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retain-values/m-p/529671#M144761</link>
      <description>&lt;P&gt;What should the result be for paramcd "GGT"?&amp;nbsp; It's only at visit 10.01 that ABLFL is "Y".&amp;nbsp; Do you want that backfilled for visit 10 as well?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 13:07:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retain-values/m-p/529671#M144761</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-01-24T13:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Retain values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retain-values/m-p/530842#M145188</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No I don't want back filled the data&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 06:34:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retain-values/m-p/530842#M145188</guid>
      <dc:creator>RajasekharReddy</dc:creator>
      <dc:date>2019-01-29T06:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Retain values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retain-values/m-p/530954#M145224</link>
      <description>&lt;P&gt;It looks like ADT is the variable that can order the observations by date.&amp;nbsp; (If you prefer to use VISITNUM to do this, that's OK.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a way:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sort data=have;&lt;/P&gt;
&lt;P&gt;by usubjid paramcd adt;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;update have have (keep=usubjid paramcd ablfl);&lt;/P&gt;
&lt;P&gt;by usubjid paramcd;&lt;/P&gt;
&lt;P&gt;output;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's untested code, but should be fine.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 13:36:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retain-values/m-p/530954#M145224</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-01-29T13:36:26Z</dc:date>
    </item>
  </channel>
</rss>

