<?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 Intelligent Decisioning CASE in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Intelligent-Decisioning-CASE/m-p/968022#M376485</link>
    <description>&lt;P&gt;Hello All,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to develop a new decision on SAS VIYA ID interface. There are several database tables on teredata. This tables inculudes the some available offers for each customers and I have to assign one offers to one customer randomly. This campaing works weekly. The first 3 offers can not given as new offer to customer next week. How I do that case on ID? How I will made a connection with database? Must it be on python file this all process including connection to db, conditions etc. ? I really appriciated if you guide me.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jun 2025 13:45:58 GMT</pubDate>
    <dc:creator>AliZiya</dc:creator>
    <dc:date>2025-06-03T13:45:58Z</dc:date>
    <item>
      <title>Intelligent Decisioning CASE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Intelligent-Decisioning-CASE/m-p/968022#M376485</link>
      <description>&lt;P&gt;Hello All,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to develop a new decision on SAS VIYA ID interface. There are several database tables on teredata. This tables inculudes the some available offers for each customers and I have to assign one offers to one customer randomly. This campaing works weekly. The first 3 offers can not given as new offer to customer next week. How I do that case on ID? How I will made a connection with database? Must it be on python file this all process including connection to db, conditions etc. ? I really appriciated if you guide me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 13:45:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Intelligent-Decisioning-CASE/m-p/968022#M376485</guid>
      <dc:creator>AliZiya</dc:creator>
      <dc:date>2025-06-03T13:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Intelligent Decisioning CASE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Intelligent-Decisioning-CASE/m-p/968027#M376490</link>
      <description>&lt;P&gt;Hi, you can use that code I shared below. First of all, you should connect to DB and query to your caslib.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;def execute():&lt;BR /&gt;'Output: customer_id'&lt;BR /&gt;import teradatasql&lt;/P&gt;&lt;P&gt;try:&lt;BR /&gt;conn = teradatasql.connect(&lt;BR /&gt;host='&amp;lt;host_name&amp;gt;',&lt;BR /&gt;user='&amp;lt;username&amp;gt;',&lt;BR /&gt;password='&amp;lt;password&amp;gt;',&lt;BR /&gt;database='&amp;lt;your_DB&amp;gt;'&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;cursor = conn.cursor()&lt;BR /&gt;cursor.execute("SELECT TOP 1 customer_id FROM &amp;lt;your_DB&amp;gt;.CUSTOMER")&lt;BR /&gt;row = cursor.fetchall()&lt;BR /&gt;cursor.close()&lt;BR /&gt;conn.close()&lt;/P&gt;&lt;P&gt;return row&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 14:27:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Intelligent-Decisioning-CASE/m-p/968027#M376490</guid>
      <dc:creator>onuroruc</dc:creator>
      <dc:date>2025-06-03T14:27:57Z</dc:date>
    </item>
  </channel>
</rss>

