<?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: Using Process Node to update a table in the InfoMap in SAS Customer Intelligence</title>
    <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/Using-Process-Node-to-update-a-table-in-the-InfoMap/m-p/524312#M1089</link>
    <description>&lt;P&gt;It is possible to use code in a Process node used within a MA Campaign to update data in a table used in the info map (or virtually any table).&amp;nbsp; Somethings to consider.&lt;/P&gt;
&lt;P&gt;1. I assume you have drop and create rights to the schema associated with the&amp;nbsp;&lt;SPAN&gt;MKTADHOC library.&amp;nbsp; You said this code works in EG, so the Create table&amp;nbsp;MKTADHOC.xxx as should work when the process is run by MA also.&amp;nbsp; However, it may fail due to the Table already existing.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. You likely need to drop the&amp;nbsp;MKTADHOC table prior to recreating it.&amp;nbsp; Although you may just want to delete rows from the table and then insert you're desired rows to ensure you don't change the structure of the table.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3.&amp;nbsp; you should look at the Log tab within the process node.&amp;nbsp; It should provide details around which exact statements are causing errors.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Jan 2019 16:26:04 GMT</pubDate>
    <dc:creator>SteveMarshall</dc:creator>
    <dc:date>2019-01-03T16:26:04Z</dc:date>
    <item>
      <title>Using Process Node to update a table in the InfoMap</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/Using-Process-Node-to-update-a-table-in-the-InfoMap/m-p/524191#M1088</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to use code in a process node to update a table in the InfoMap? I need the table in the infomap to be refreshed before I call data from that table in the comms node. I get an error when I try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The below is an extract from the code I use. The customer_ref table has already been created. These steps work fine in SAS eGuide.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data single_row_data;&lt;BR /&gt;set customer_ref;&lt;BR /&gt;by customer_id TimeStamp;&lt;BR /&gt;if first.customer_id;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;create table MKTADHOC.VOM_CUAD_SINGLE_ROW_DATA&lt;BR /&gt;AS SELECT * FROM WORK.SINGLE_ROW_DATA;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;create table &amp;amp;outTable&lt;BR /&gt;as select&lt;BR /&gt;cdtls.Customer_ID as Customer_ID&lt;/P&gt;&lt;P&gt;from&lt;BR /&gt;SASMAR.MA_CUSTOMER cdtls&lt;BR /&gt;inner join&lt;BR /&gt;SINGLE_ROW_DATA srd&lt;BR /&gt;on cdtls.customer_id=srd.customer_id&lt;BR /&gt;;&lt;BR /&gt;quit;&lt;BR /&gt;%macount(&amp;amp;outTable);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where the MKTADHOC table is readable in the infomap. I need data in this table to be updated as I need to output some data fields in this table relevant for members present in the campaign.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This error comes up: Error in the stored process or a called macro - vendor code: 1012.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not a coder. And not a SAS expert. I've tried to use the below somewhere as well, but I do not think it makes a difference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%stpbegin; %maspinit; options dsnferr;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you can let me know what the problem is that would be great.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;MV&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 23:54:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/Using-Process-Node-to-update-a-table-in-the-InfoMap/m-p/524191#M1088</guid>
      <dc:creator>M_V</dc:creator>
      <dc:date>2019-01-02T23:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using Process Node to update a table in the InfoMap</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/Using-Process-Node-to-update-a-table-in-the-InfoMap/m-p/524312#M1089</link>
      <description>&lt;P&gt;It is possible to use code in a Process node used within a MA Campaign to update data in a table used in the info map (or virtually any table).&amp;nbsp; Somethings to consider.&lt;/P&gt;
&lt;P&gt;1. I assume you have drop and create rights to the schema associated with the&amp;nbsp;&lt;SPAN&gt;MKTADHOC library.&amp;nbsp; You said this code works in EG, so the Create table&amp;nbsp;MKTADHOC.xxx as should work when the process is run by MA also.&amp;nbsp; However, it may fail due to the Table already existing.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. You likely need to drop the&amp;nbsp;MKTADHOC table prior to recreating it.&amp;nbsp; Although you may just want to delete rows from the table and then insert you're desired rows to ensure you don't change the structure of the table.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3.&amp;nbsp; you should look at the Log tab within the process node.&amp;nbsp; It should provide details around which exact statements are causing errors.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 16:26:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/Using-Process-Node-to-update-a-table-in-the-InfoMap/m-p/524312#M1089</guid>
      <dc:creator>SteveMarshall</dc:creator>
      <dc:date>2019-01-03T16:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using Process Node to update a table in the InfoMap</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/Using-Process-Node-to-update-a-table-in-the-InfoMap/m-p/524399#M1090</link>
      <description>&lt;P&gt;Thanks Steve,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your time reading and replying. I've got it working I think! I executed the process node rather than updated the counts. So I should be able to use that updated table in the infomap and thus call fields from there. If there are more issues I'll post and see if anyone has a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 22:33:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/Using-Process-Node-to-update-a-table-in-the-InfoMap/m-p/524399#M1090</guid>
      <dc:creator>M_V</dc:creator>
      <dc:date>2019-01-03T22:33:23Z</dc:date>
    </item>
  </channel>
</rss>

