<?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 Function in Data Intergration studio 3.4 in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Retain-Function-in-Data-Intergration-studio-3-4/m-p/72399#M655</link>
    <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
I believe you would have to implement this with a "user written code" node.&lt;BR /&gt;
&lt;BR /&gt;
... and if it comes to this then it's always worth asking if there is also another way to achieve the final result you need.&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
    <pubDate>Sun, 05 Jun 2011 10:34:55 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2011-06-05T10:34:55Z</dc:date>
    <item>
      <title>Retain Function in Data Intergration studio 3.4</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Retain-Function-in-Data-Intergration-studio-3-4/m-p/72398#M654</link>
      <description>Good Morning,&lt;BR /&gt;
&lt;BR /&gt;
Just wondering if someone can help me, i am trying to replicate a Retain Statement in DI studio, but i am struggling to find a method, i am simply wanting to create a new field which holds a value from a field already existing on the previous line,&lt;BR /&gt;
&lt;BR /&gt;
for example:&lt;BR /&gt;
&lt;BR /&gt;
retain ret_bal_cu ret_bal_pl ret_cls_dt amal mth_closed;&lt;BR /&gt;
by pl_accnum pl_open_dt;&lt;BR /&gt;
&lt;BR /&gt;
if first.pl_accnum and first.pl_open_dt then do;&lt;BR /&gt;
	ret_bal_cu=.;&lt;BR /&gt;
	ret_bal_pl=.;&lt;BR /&gt;
	ret_cls_dt=.; &lt;BR /&gt;
end;&lt;BR /&gt;
&lt;BR /&gt;
cu_prev_bal=ret_bal_cu;&lt;BR /&gt;
pl_prev_bal=ret_bal_pl;&lt;BR /&gt;
prev_cls_dt=ret_cls_dt;&lt;BR /&gt;
&lt;BR /&gt;
ret_bal_cu=cu_curr_bal;&lt;BR /&gt;
ret_bal_pl=pl_curr_bal;&lt;BR /&gt;
ret_cls_dt=pl_cls_dt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Can anyone provide any help?&lt;BR /&gt;
&lt;BR /&gt;
cheers!</description>
      <pubDate>Fri, 03 Jun 2011 12:23:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Retain-Function-in-Data-Intergration-studio-3-4/m-p/72398#M654</guid>
      <dc:creator>Sean_Milligan</dc:creator>
      <dc:date>2011-06-03T12:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Retain Function in Data Intergration studio 3.4</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Retain-Function-in-Data-Intergration-studio-3-4/m-p/72399#M655</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
I believe you would have to implement this with a "user written code" node.&lt;BR /&gt;
&lt;BR /&gt;
... and if it comes to this then it's always worth asking if there is also another way to achieve the final result you need.&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
      <pubDate>Sun, 05 Jun 2011 10:34:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Retain-Function-in-Data-Intergration-studio-3-4/m-p/72399#M655</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2011-06-05T10:34:55Z</dc:date>
    </item>
  </channel>
</rss>

