<?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: Custom Node CI 6.5 in SAS Customer Intelligence</title>
    <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/Custom-Node-CI-6-5/m-p/651612#M1559</link>
    <description>&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are a couple of problems with your code:&lt;/P&gt;&lt;P&gt;(1) Since you're expecting to have multiple InTables then you need to reference each of those input tables as Intable1, Intable2, Intable3. The macro Intable would have a value of "Intable1, Intable2, Intable3,..."&lt;/P&gt;&lt;P&gt;(2) Since you're expecting an output of multiple OutTables then you need to use the macr %MACntTab; and not %MACount(outtable.); You can only use the %MACount(outtable.); if you're expecting one output table.&lt;/P&gt;&lt;P&gt;(3) Recheck your iterations and make sure they match the given Input and Output table macros&lt;/P&gt;&lt;P&gt;(4) Test your code in EG first before testing in CI Studio (Declare dummy names for the Intable1,Intable2, ..., Outtable1, Outtable2, ...; remove the CI macros first)&lt;/P&gt;</description>
    <pubDate>Fri, 29 May 2020 02:02:57 GMT</pubDate>
    <dc:creator>jcawesome</dc:creator>
    <dc:date>2020-05-29T02:02:57Z</dc:date>
    <item>
      <title>Custom Node CI 6.5</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/Custom-Node-CI-6-5/m-p/644950#M1512</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to buld a new custom node. Similar to the prioritize node it should have multiple outputs. Unfortunately it doesn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here my code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%stpbegin;
%maspinit;


%let anzTab=%sysfunc(count(&amp;amp;inputtablelist.,MATables));
*%let anzTab=3;

%put ANZ: &amp;amp;anzTab.;
%global connectstr;

/* Alle Eingangstabellen in eine Tabelle temp00 schreiben */
%macro oneTab;


%let vartab=intable;
%do i=1 %to &amp;amp;anzTab.;
data temp00 (index=(CUSTOMER_ID));
length INTABLE 8.; 
set &amp;amp;&amp;amp;&amp;amp;vartab.&amp;amp;i.;
intable=&amp;amp;I.;
run;
proc append base=INTABLE data=temp00;
run;
%end;

proc sql;
create table temp02 as 
select i1.INTABLE, 
i1.CUSTOMER_ID,
t2.CUSTOMER_HOUSEHOLD__ID,
from intable i1 
inner join
Table2 t2 on i1.CUSTOMER_ID= t2.CUSTOMER_ID

order by
t2.CUSTOMER_HOUSEHOLD__ID,
i1.INTABLE; 
quit;



data temp03 ;
set temp02;
by CUSTOMER_HOUSEHOLD__ID;
if first.CUSTOMER_HOUSEHOLD__ID then output;
run;




%do i=1 %to &amp;amp;anzTab.;
data &amp;amp;outtable&amp;amp;i. (keep=CUSTOMER_ID);
set temp03 (where=(INTABLE=&amp;amp;i.));
run;

%end;


%mend;
%oneTab;






%let OutSubjectId = &amp;amp;InSubjectId.;
%macount(&amp;amp;outtable.);
%mastatus(&amp;amp;_stpwork.status.txt);
%stpend;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope someone is able to help me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Greetings&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Chris&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 10:44:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/Custom-Node-CI-6-5/m-p/644950#M1512</guid>
      <dc:creator>ChrisLemberg</dc:creator>
      <dc:date>2020-05-04T10:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Node CI 6.5</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/Custom-Node-CI-6-5/m-p/650887#M1543</link>
      <description>&lt;P&gt;Hi Chris&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are updating counts on &amp;amp;outtable which is never created. You are actually creating &amp;amp;outtable1,2,3.&lt;/P&gt;&lt;P&gt;Did you specify output cell keywords while registering the stored process.&lt;/P&gt;&lt;P&gt;Can you share the log when you try to execute your STP?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Vijay&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 18:58:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/Custom-Node-CI-6-5/m-p/650887#M1543</guid>
      <dc:creator>infomevijay</dc:creator>
      <dc:date>2020-05-26T18:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Node CI 6.5</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/Custom-Node-CI-6-5/m-p/651612#M1559</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are a couple of problems with your code:&lt;/P&gt;&lt;P&gt;(1) Since you're expecting to have multiple InTables then you need to reference each of those input tables as Intable1, Intable2, Intable3. The macro Intable would have a value of "Intable1, Intable2, Intable3,..."&lt;/P&gt;&lt;P&gt;(2) Since you're expecting an output of multiple OutTables then you need to use the macr %MACntTab; and not %MACount(outtable.); You can only use the %MACount(outtable.); if you're expecting one output table.&lt;/P&gt;&lt;P&gt;(3) Recheck your iterations and make sure they match the given Input and Output table macros&lt;/P&gt;&lt;P&gt;(4) Test your code in EG first before testing in CI Studio (Declare dummy names for the Intable1,Intable2, ..., Outtable1, Outtable2, ...; remove the CI macros first)&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 02:02:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/Custom-Node-CI-6-5/m-p/651612#M1559</guid>
      <dc:creator>jcawesome</dc:creator>
      <dc:date>2020-05-29T02:02:57Z</dc:date>
    </item>
  </channel>
</rss>

