<?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 RTDM Data Grid Calculated Variable - Can it be updated? in SAS Customer Intelligence</title>
    <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/RTDM-Data-Grid-Calculated-Variable-Can-it-be-updated/m-p/424654#M735</link>
    <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an RTDM Treatment Campaign that requires several areas of the diagram to reference a single custom data grid. Rather than repeating the same logic across multiple nodes in the campaign, I would like to create a calculated variable that retains the Table Select function that creates the data grid (let's call it "Calc_Custom_DG"), and then reference the "Calc_Custom_DG" where needed in the diagram. This is working great EXCEPT i do not see a location that I can modify the "Calc_Custom_DG" logic. This concerns me a bit because it makes modifying the campaign in the future (if needed) problematic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to edit an existing calculated variable (data type = Data Grid) within a campaign AFTER its creation?&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jan 2018 18:22:52 GMT</pubDate>
    <dc:creator>cleprevost</dc:creator>
    <dc:date>2018-01-03T18:22:52Z</dc:date>
    <item>
      <title>RTDM Data Grid Calculated Variable - Can it be updated?</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/RTDM-Data-Grid-Calculated-Variable-Can-it-be-updated/m-p/424654#M735</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an RTDM Treatment Campaign that requires several areas of the diagram to reference a single custom data grid. Rather than repeating the same logic across multiple nodes in the campaign, I would like to create a calculated variable that retains the Table Select function that creates the data grid (let's call it "Calc_Custom_DG"), and then reference the "Calc_Custom_DG" where needed in the diagram. This is working great EXCEPT i do not see a location that I can modify the "Calc_Custom_DG" logic. This concerns me a bit because it makes modifying the campaign in the future (if needed) problematic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to edit an existing calculated variable (data type = Data Grid) within a campaign AFTER its creation?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 18:22:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/RTDM-Data-Grid-Calculated-Variable-Can-it-be-updated/m-p/424654#M735</guid>
      <dc:creator>cleprevost</dc:creator>
      <dc:date>2018-01-03T18:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: RTDM Data Grid Calculated Variable - Can it be updated?</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/RTDM-Data-Grid-Calculated-Variable-Can-it-be-updated/m-p/424699#M736</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you try an Assign node? This is exactly what it was made for. You use Assign node to assign a value to an Identifier, normally using a calculated function.&amp;nbsp; &amp;nbsp;Then you keep referring to this identifier.&amp;nbsp; It works well&amp;nbsp;with any variable types, including Data Grids.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You did not specify SAS RTDM version you are using. Hopefully, it is recent enough to have an Assign node there. It&amp;nbsp;was only introduced recently.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 19:32:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/RTDM-Data-Grid-Calculated-Variable-Can-it-be-updated/m-p/424699#M736</guid>
      <dc:creator>Dmitry_Alergant</dc:creator>
      <dc:date>2018-01-03T19:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: RTDM Data Grid Calculated Variable - Can it be updated?</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/RTDM-Data-Grid-Calculated-Variable-Can-it-be-updated/m-p/424708#M737</link>
      <description>&lt;P&gt;If I had to take a guess the reason is that you are only presented with the variables of the same data type. If you click on the variable you want to edit, then "Edit Caculated Variable" you should be able to edit it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the example below, you can see that the process input variable is expecting a data grid.&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-inline" image-alt="Screen Shot 2018-01-03 at 2.30.14 PM.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17625iC55B0A59B7EB0D97/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-01-03 at 2.30.14 PM.png" alt="Screen Shot 2018-01-03 at 2.30.14 PM.png" /&gt;&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;If you click on the pencil box next to the value you want to set&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-inline" image-alt="Screen Shot 2018-01-03 at 2.30.29 PM.png" style="width: 451px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17626i038535FDAFC0CB34/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-01-03 at 2.30.29 PM.png" alt="Screen Shot 2018-01-03 at 2.30.29 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will be taken to the area to select the appropriate variable. Because the input type is Data Grid then we are only presented with data grid variables. Select the variable you want to edit, then click the pencil box on the right side.&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-inline" image-alt="Screen Shot 2018-01-03 at 2.30.53 PM.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17627i55C35AC7E2B29FD2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-01-03 at 2.30.53 PM.png" alt="Screen Shot 2018-01-03 at 2.30.53 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now you have the properties box for the calculated variable that you want to set.&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-inline" image-alt="Screen Shot 2018-01-03 at 2.31.14 PM.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17628i1CCDA8D2E3C2D762/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-01-03 at 2.31.14 PM.png" alt="Screen Shot 2018-01-03 at 2.31.14 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make your changes and then click okay all the way back out until you are back to the diagram.&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, 03 Jan 2018 19:39:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/RTDM-Data-Grid-Calculated-Variable-Can-it-be-updated/m-p/424708#M737</guid>
      <dc:creator>williamwash</dc:creator>
      <dc:date>2018-01-03T19:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: RTDM Data Grid Calculated Variable - Can it be updated?</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/RTDM-Data-Grid-Calculated-Variable-Can-it-be-updated/m-p/424715#M738</link>
      <description>&lt;P&gt;Thanks for the replies. We are using version 6.4, so I don't believe the Assign node is available.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the second reply - are there any nodes other than a Process Node that will allow the data type of Data Grid? Our implementation really only leverages Start, Branch, Filter, Cross Table, and Reply nodes in our Treatment Campaigns. If not, is there a "workaround/dummy" Process that could be used that only has the purpose of being able to maintain a Calculated Data Item Data Grid?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 19:58:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/RTDM-Data-Grid-Calculated-Variable-Can-it-be-updated/m-p/424715#M738</guid>
      <dc:creator>cleprevost</dc:creator>
      <dc:date>2018-01-03T19:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: RTDM Data Grid Calculated Variable - Can it be updated?</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/RTDM-Data-Grid-Calculated-Variable-Can-it-be-updated/m-p/424840#M740</link>
      <description>&lt;P&gt;Without an Assign node (in 6.4), your two options to create a DataGrid-type calculated variable which can be reused further in a diagram would be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. A Process Node (may be a dummy SAS process that does nothing).&lt;BR /&gt;&lt;BR /&gt;Its code may look like this (i did not test, but I think that should work)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;package dummy_dgprocess / overwrite=yes;

	method execute( 
			package tap_table DATA_GRID
			);
	end;

endpackage;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Beware though that there is a limitation while working with Data Grids in SAS DS2 code - a data grid cannot be too large to exceed 8192 characters while serialized. If it becomes that large, the&amp;nbsp;diagram will fail - even though your dummy code does nothing with that data grid, it will probably still fail when SAS attempts to pass&amp;nbsp;the data grid over from RTDM Engine to Fed Server and deserialize it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no such limit when using Groovy language instead of DS2. But it does not have a very official support status in current versions (including 6.4):&amp;nbsp;&lt;A href="http://support.sas.com/kb/60/630.html" target="_blank"&gt;http://support.sas.com/kb/60/630.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;2. Subdiagram node to a dummy RTDM diagram that accepts a data grid input.&amp;nbsp; This option should not have a data grid size limit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good Luck!&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 06:59:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/RTDM-Data-Grid-Calculated-Variable-Can-it-be-updated/m-p/424840#M740</guid>
      <dc:creator>Dmitry_Alergant</dc:creator>
      <dc:date>2018-01-04T06:59:57Z</dc:date>
    </item>
  </channel>
</rss>

