<?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: SAS RTDM: Select a data grid column and convert into a list in SAS Customer Intelligence</title>
    <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-RTDM-Select-a-data-grid-column-and-convert-into-a-list/m-p/479319#M976</link>
    <description>Hi KiKa,&lt;BR /&gt;My apologies - I missed a step. You also need to create an Identifier (of Type Data Grid) and assign the identifier to the Input data grid variable inside the event. So the steps are:&lt;BR /&gt;&lt;BR /&gt;  *   Create an Identifier of type Data Grid, and define each input column&lt;BR /&gt;  *   Modify the event and assign the Identifier to the Data grid variable&lt;BR /&gt;  *   Open the decision campaign, open the Start node and confirm that the identifier is now present against the data grid&lt;BR /&gt;  *   In your decision campaign, downstream from the Start node, add an Assignment Node&lt;BR /&gt;  *   In the assignment node, add a new "list" variable that matches the data type (character list or Date list etc) of a column from the data grid&lt;BR /&gt;  *   In the Value selection dialogue box for this new variable, you can now browse the list of Event variable, and each column in the data grid (that matches the data type of the new variable in the assignment node) will be available for you to choose. For example if you created a Data Grid called&lt;BR /&gt;Regards&lt;BR /&gt;James&lt;BR /&gt;</description>
    <pubDate>Thu, 19 Jul 2018 00:00:42 GMT</pubDate>
    <dc:creator>JamesAnderson</dc:creator>
    <dc:date>2018-07-19T00:00:42Z</dc:date>
    <item>
      <title>SAS RTDM: Select a data grid column and convert into a list</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-RTDM-Select-a-data-grid-column-and-convert-into-a-list/m-p/478369#M971</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data grid as request variable in my event and I want to save the columns as separate lists.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;df =&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ANCILLARY&amp;nbsp; PRICE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ABC"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "DEF"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;should be converted into&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ["ABC","DEF"] (character list)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [20,30] (integer list)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried using a process node with Jython code but I wasn't successful using something like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;list = df.loc(:,"ANCILLARY")&amp;nbsp; or&amp;nbsp; list = df[["ANCILLARY"]].tolist()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would be great to get some input on this problem, thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 14:35:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-RTDM-Select-a-data-grid-column-and-convert-into-a-list/m-p/478369#M971</guid>
      <dc:creator>KiKa</dc:creator>
      <dc:date>2018-07-16T14:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAS RTDM: Select a data grid column and convert into a list</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-RTDM-Select-a-data-grid-column-and-convert-into-a-list/m-p/478591#M973</link>
      <description>HI,&lt;BR /&gt;What version of RTDM are you using ?&lt;BR /&gt;Rgds&lt;BR /&gt;James&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Jul 2018 09:33:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-RTDM-Select-a-data-grid-column-and-convert-into-a-list/m-p/478591#M973</guid>
      <dc:creator>JamesAnderson</dc:creator>
      <dc:date>2018-07-17T09:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS RTDM: Select a data grid column and convert into a list</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-RTDM-Select-a-data-grid-column-and-convert-into-a-list/m-p/478896#M974</link>
      <description>&lt;P&gt;Hi KiKa,&lt;/P&gt;
&lt;P&gt;You can do this without code if you would prefer, with the following steps:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;In your decision campaign, downstream from the Start node, add an Assignment Node&lt;/LI&gt;
&lt;LI&gt;In the assignment node, add a new “list” variable that matches the data type (character list or Date list etc) of a column from the data grid&lt;/LI&gt;
&lt;LI&gt;In the Value selection dialogue box for this new variable, you can now browse the list of Event variable, and each column in the data grid (that matches the data type of the new variable in the assignment node) will be available for you to choose. For example if you created a Data Grid called &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Regards&lt;BR /&gt; James&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 03:34:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-RTDM-Select-a-data-grid-column-and-convert-into-a-list/m-p/478896#M974</guid>
      <dc:creator>JamesAnderson</dc:creator>
      <dc:date>2018-07-18T03:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS RTDM: Select a data grid column and convert into a list</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-RTDM-Select-a-data-grid-column-and-convert-into-a-list/m-p/478941#M975</link>
      <description>&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;thanks for your answer. I tried your suloution and created a new list variable in the assignment node. However, the column of data grids do not appear as a selection option. Maybe this is because RTDM does not recognize the format (character/integer etc) of the columns? Is there a way to assign this for each column of a data grid?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help and best regards,&lt;/P&gt;&lt;P&gt;KiKa&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 07:42:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-RTDM-Select-a-data-grid-column-and-convert-into-a-list/m-p/478941#M975</guid>
      <dc:creator>KiKa</dc:creator>
      <dc:date>2018-07-18T07:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAS RTDM: Select a data grid column and convert into a list</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-RTDM-Select-a-data-grid-column-and-convert-into-a-list/m-p/479319#M976</link>
      <description>Hi KiKa,&lt;BR /&gt;My apologies - I missed a step. You also need to create an Identifier (of Type Data Grid) and assign the identifier to the Input data grid variable inside the event. So the steps are:&lt;BR /&gt;&lt;BR /&gt;  *   Create an Identifier of type Data Grid, and define each input column&lt;BR /&gt;  *   Modify the event and assign the Identifier to the Data grid variable&lt;BR /&gt;  *   Open the decision campaign, open the Start node and confirm that the identifier is now present against the data grid&lt;BR /&gt;  *   In your decision campaign, downstream from the Start node, add an Assignment Node&lt;BR /&gt;  *   In the assignment node, add a new "list" variable that matches the data type (character list or Date list etc) of a column from the data grid&lt;BR /&gt;  *   In the Value selection dialogue box for this new variable, you can now browse the list of Event variable, and each column in the data grid (that matches the data type of the new variable in the assignment node) will be available for you to choose. For example if you created a Data Grid called&lt;BR /&gt;Regards&lt;BR /&gt;James&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Jul 2018 00:00:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-RTDM-Select-a-data-grid-column-and-convert-into-a-list/m-p/479319#M976</guid>
      <dc:creator>JamesAnderson</dc:creator>
      <dc:date>2018-07-19T00:00:42Z</dc:date>
    </item>
  </channel>
</rss>

