<?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 Datetime variable for read from Data Process in SAS Customer Intelligence</title>
    <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-RTDM-Datetime-variable-for-read-from-Data-Process/m-p/939203#M2032</link>
    <description>&lt;P&gt;Hi John_Wick,&lt;/P&gt;
&lt;P&gt;Can you try using an assignment node before the data process to set the value of a variable, and then use the variable in the data process intput mapping?&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;James&lt;/P&gt;</description>
    <pubDate>Wed, 14 Aug 2024 10:15:30 GMT</pubDate>
    <dc:creator>JamesAnderson</dc:creator>
    <dc:date>2024-08-14T10:15:30Z</dc:date>
    <item>
      <title>SAS RTDM Datetime variable for read from Data Process</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-RTDM-Datetime-variable-for-read-from-Data-Process/m-p/936398#M2030</link>
      <description>&lt;P&gt;Hello experts!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We using SAS RTDM data process cell for select row from library. And in test-case using Asia/Almaty timezone.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="John_Wick_3-1721406126297.png" style="width: 522px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98541i008C29EF22D7B49A/image-dimensions/522x212?v=v2" width="522" height="212" role="button" title="John_Wick_3-1721406126297.png" alt="John_Wick_3-1721406126297.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;&lt;SPAN&gt;If we enter the date manually or through a calendar in the data processing node, when we run the test case, the date will be set to UTC and ignore the time zone specified in the test case.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="John_Wick_2-1721406003702.png" style="width: 675px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98540i6B89CC00716F9E3D/image-dimensions/675x344?v=v2" width="675" height="344" role="button" title="John_Wick_2-1721406003702.png" alt="John_Wick_2-1721406003702.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;Part of log:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;------------------&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;2024-07-16 20:51:54,281 TRACE sasadm SASDSDesignRepository Test Case 1 com.sas.rtdm.implementation.resource.d bcp.DSPoolingConnection - Create Statement completed :302705 nanos. 2024-07-16 20:51:54,331 TRACE sasadm SASDSDesignRepository Test Case 1 com.sas.rtdm.implementation.TableCache JDBCLoader TableCacheJDBCLoader.select() times (nanos) [Prepare: 943235 Execute: 49175167 SQL: SELECT MONTH, DAY, NPS_SURVEY_DAY FROM EXP_USER.NPS_CALENDAR WHERE DAY = ? Where Clause Values: {java.util.GregorianCalenda r[time=1720983600000, areFieldsSet=true, areAllFieldsSet-false, lenient=false, zone-sun.util.calendar.ZoneInfo[&lt;STRONG&gt;id -"UTC"&lt;/STRONG&gt;, offset-0, dstSavings-0, useDaylight-false, transitions-0, lastRule-null], firstDayOfWeek-1, minimalDaysInFir stWeek=1, ERA=1,YEAR=2024, MONTH=6,WEEK_OF_YEAR=29,WEEK_OF_MONTH=3, DAY_OF_MONTH=14,DAY_OF_YEAR=196, DAY_OF_WEEK= 1, DAY OF WEEK IN MONTH=2,AM PM=1, HOUR=7, HOUR OF DAY=19, MINUTE=0, SECOND=0,MILLISECOND=0, ZONE OFFSET=0,DST OFFS ET=0]} Results: RTDMTable Start&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;------------------&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, if you pass the date as a calculated variable, such as the campaign start date, the timezone specified in the test case will apply.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="John_Wick_1-1721405842847.png" style="width: 684px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98539i6B5D8C0F79827C32/image-dimensions/684x347?v=v2" width="684" height="347" role="button" title="John_Wick_1-1721405842847.png" alt="John_Wick_1-1721405842847.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Part of log:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;------------------&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;2024-07-19 21:02:40,815 TRACE sasadm SASDSDesignRepository Test Case 1 com.sas.rtdm. implementa&lt;BR /&gt;tion. TableCacheJDBCLoader - TableCacheJDBCLoader. select () times (nanos) [Prepare: 95685063 Execu&lt;BR /&gt;te: 48901484 SQL: SELECT MONTH, DAY, NPS SURVEY DAY FROM EXP USER. NPS CALENDAR WHERE DAY = ? W&lt;BR /&gt;here Clause Values: {java.util.GregorianCalendar[time=1720983600000, areFieldsSet=true, areAllFi&lt;BR /&gt;eldsSet=true, lenient=false, zone=sun.util.calendar. ZoneInfo[&lt;STRONG&gt;id="Asia/Almaty"&lt;/STRONG&gt;,offset=18000000,ds&lt;BR /&gt;tSavings=0, useDaylight=false, transitions=54, lastRule=null], firstDayOfWeek=1, minimalDaysInFirst&lt;BR /&gt;Week=1, ERA=1, YEAR=2024, MONTH=6,WEEK OF YEAR=29,WEEK OF MONTH=3, DAY OF MONTH=15, DAY OF YEAR=197&lt;BR /&gt;,DAY OF WEEK=2, DAY OF WEEK IN MONTH=3, AM PM=0, HOUR=0, HOUR OF DAY=0, MINUTE=0, SECOND=0, MILLISECO&lt;BR /&gt;ND=0,ZONE OFFSET=18000000, DST OFFSET=0]} Results: RTDMTable Start&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;------------------&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;How can we enter the date manually with correct datatime from test-case or server timezone?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Maybe this is how it should work. That any date entered manually or through a calendar would always be in UTC. However, it is strange that this is not the case for calculated variables, as it can lead to unexpected results.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We will be grateful for any useful information and any thoughts on this matter!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 16:36:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-RTDM-Datetime-variable-for-read-from-Data-Process/m-p/936398#M2030</guid>
      <dc:creator>John_Wick</dc:creator>
      <dc:date>2024-07-19T16:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS RTDM Datetime variable for read from Data Process</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-RTDM-Datetime-variable-for-read-from-Data-Process/m-p/939203#M2032</link>
      <description>&lt;P&gt;Hi John_Wick,&lt;/P&gt;
&lt;P&gt;Can you try using an assignment node before the data process to set the value of a variable, and then use the variable in the data process intput mapping?&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;James&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 10:15:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-RTDM-Datetime-variable-for-read-from-Data-Process/m-p/939203#M2032</guid>
      <dc:creator>JamesAnderson</dc:creator>
      <dc:date>2024-08-14T10:15:30Z</dc:date>
    </item>
  </channel>
</rss>

