<?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: Create new empty table in SAS ESP and store values from Source in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Create-new-empty-table-in-SAS-ESP-and-store-values-from-Source/m-p/497739#M132035</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH&lt;/a&gt;&amp;nbsp;Yes, you are right, not sure how can I provide a input/output data/&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is only columns with names I provided, that's all.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I have a more specific question. I have started something on my own and found another approach, but there is a problem with getting the current time. With function today() I can get current datetime, but there is no example to extract hour and minutes from that.&lt;/P&gt;&lt;P&gt;I have tried everything I run into it but nothing really works. Expression language, Data Flux is used in Compute window in ESP.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the documentation, but all examples are about date (year, month, day) not even one is about time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/documentation/onlinedoc/dfdmstudio/2.3/dfU_ELRG.pdf" target="_blank"&gt;https://support.sas.com/documentation/onlinedoc/dfdmstudio/2.3/dfU_ELRG.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you in SAS ESP?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Fri, 21 Sep 2018 09:55:25 GMT</pubDate>
    <dc:creator>jovic92</dc:creator>
    <dc:date>2018-09-21T09:55:25Z</dc:date>
    <item>
      <title>Create new empty table in SAS ESP and store values from Source</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-new-empty-table-in-SAS-ESP-and-store-values-from-Source/m-p/497353#M131797</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help with SAS Event Stream Processing studio programming. Not sure if I select the right location for question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe I will have two or three questions, but also, maybe after this one everything will be more clear for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create some trigger for first call of user in a day. I have phone number, id, call start time, call end time, etc. I have CDRs files (csv format) coming every 3 minutes into Data Source window in ESP.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Was thinking about creating a new, empty table to store USER ID right after some USER appears in CDRs and for each record checking if it's already stored (triggered) or not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;All data in that table need to be deleted in 11:59 PM.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure where to started or which windows to use. Is it possible to create that through Compute or Procedural windows and if someone has any example would be really helpful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope I didn't break any rules of posting a questions in community, if I do, I will edit.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any kind of help is welcomed.&lt;/P&gt;&lt;P&gt;Thanks in advance.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 13:21:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-new-empty-table-in-SAS-ESP-and-store-values-from-Source/m-p/497353#M131797</guid>
      <dc:creator>jovic92</dc:creator>
      <dc:date>2018-09-20T13:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create new empty table in SAS ESP and store values from Source</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-new-empty-table-in-SAS-ESP-and-store-values-from-Source/m-p/497670#M131992</link>
      <description>&lt;P&gt;This&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;I have phone number, id, call start time, call end time, etc. I have CDRs files (csv format) coming every 3 minutes into Data Source window in ESP.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Was thinking about creating a new, empty table to store USER ID right after some USER appears in CDRs and for each record checking if it's already stored (triggered) or not.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;All data in that table need to be deleted in 11:59 PM.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;is not enough information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide example input data and expected output.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 04:07:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-new-empty-table-in-SAS-ESP-and-store-values-from-Source/m-p/497670#M131992</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-09-21T04:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create new empty table in SAS ESP and store values from Source</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-new-empty-table-in-SAS-ESP-and-store-values-from-Source/m-p/497691#M132008</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt; ESP doesn't build upon SAS Foundation so the usual sample input/output data requirement might not be applicable here.&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/179286"&gt;@jovic92&lt;/a&gt; to me it sounds you need direction to get started. The communities might not be the best place to get a wide set of knowledge.  It's more suited for specific problems.&lt;BR /&gt;If you not have already done so, check out all the ESP resources at support.sas.com, like documentation,  training,  demos, papers etc. You can also contact your local SAS they should be more than happy to get you going.</description>
      <pubDate>Fri, 21 Sep 2018 06:32:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-new-empty-table-in-SAS-ESP-and-store-values-from-Source/m-p/497691#M132008</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-09-21T06:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create new empty table in SAS ESP and store values from Source</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-new-empty-table-in-SAS-ESP-and-store-values-from-Source/m-p/497739#M132035</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH&lt;/a&gt;&amp;nbsp;Yes, you are right, not sure how can I provide a input/output data/&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is only columns with names I provided, that's all.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I have a more specific question. I have started something on my own and found another approach, but there is a problem with getting the current time. With function today() I can get current datetime, but there is no example to extract hour and minutes from that.&lt;/P&gt;&lt;P&gt;I have tried everything I run into it but nothing really works. Expression language, Data Flux is used in Compute window in ESP.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the documentation, but all examples are about date (year, month, day) not even one is about time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/documentation/onlinedoc/dfdmstudio/2.3/dfU_ELRG.pdf" target="_blank"&gt;https://support.sas.com/documentation/onlinedoc/dfdmstudio/2.3/dfU_ELRG.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you in SAS ESP?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 09:55:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-new-empty-table-in-SAS-ESP-and-store-values-from-Source/m-p/497739#M132035</guid>
      <dc:creator>jovic92</dc:creator>
      <dc:date>2018-09-21T09:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Create new empty table in SAS ESP and store values from Source</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-new-empty-table-in-SAS-ESP-and-store-values-from-Source/m-p/497757#M132050</link>
      <description>&lt;P&gt;No, I'm not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to that documentation, you can use the &lt;EM&gt;formatdate&lt;/EM&gt; function, and chose a time format.&lt;/P&gt;
&lt;P&gt;Even if there is no example for time, I would guess that you use the parameters you want, and format accordingely (similar to the date examples). I would try "HH:MM" for instance if you want to extract that part.&lt;/P&gt;
&lt;P&gt;Can you show what you have tried, and result/how it's not working?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 10:39:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-new-empty-table-in-SAS-ESP-and-store-values-from-Source/m-p/497757#M132050</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-09-21T10:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create new empty table in SAS ESP and store values from Source</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-new-empty-table-in-SAS-ESP-and-store-values-from-Source/m-p/497760#M132053</link>
      <description>&lt;P&gt;I have tried with:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Time_flag =&amp;nbsp;today()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;formatdate('Time_flag',"hh:mm")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;formatdate('Time_flag',"mm")&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;formatdate(today()',"mm")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;formatdate('Time_flag',"hh")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I got empty cells. Only Time_flag = today() works as expected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 10:57:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-new-empty-table-in-SAS-ESP-and-store-values-from-Source/m-p/497760#M132053</guid>
      <dc:creator>jovic92</dc:creator>
      <dc:date>2018-09-21T10:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Create new empty table in SAS ESP and store values from Source</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-new-empty-table-in-SAS-ESP-and-store-values-from-Source/m-p/497805#M132085</link>
      <description>&lt;P&gt;And it's not that simple that you need to supply upper case literals...?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 13:02:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-new-empty-table-in-SAS-ESP-and-store-values-from-Source/m-p/497805#M132085</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-09-21T13:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Create new empty table in SAS ESP and store values from Source</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-new-empty-table-in-SAS-ESP-and-store-values-from-Source/m-p/497806#M132086</link>
      <description>&lt;P&gt;Actually, here is docs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Details&lt;/P&gt;&lt;DIV class="xis-topicContent"&gt;&lt;DIV class="xis-paragraph"&gt;The format parameter can include any string, but the following strings are replaced with the specified values:&lt;/DIV&gt;&lt;DIV class="xis-paragraph"&gt;YYYY: four-digit year&lt;/DIV&gt;&lt;DIV class="xis-paragraph"&gt;YY: two-digit year&lt;/DIV&gt;&lt;DIV class="xis-paragraph"&gt;MMMM: full month in proper case&lt;/DIV&gt;&lt;DIV class="xis-paragraph"&gt;MMM: abbreviated three-letter month&lt;/DIV&gt;&lt;DIV class="xis-paragraph"&gt;MM: two-digit month&lt;/DIV&gt;&lt;DIV class="xis-paragraph"&gt;DD: two-digit day&lt;/DIV&gt;&lt;DIV class="xis-paragraph"&gt;hh: hour&lt;/DIV&gt;&lt;DIV class="xis-paragraph"&gt;mm: minute&lt;/DIV&gt;&lt;DIV class="xis-paragraph"&gt;ss: second&lt;/DIV&gt;&lt;DIV class="xis-paragraph"&gt;ms: millisecond&lt;/DIV&gt;&lt;DIV class="xis-paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="xis-note"&gt;&lt;SPAN class="xis-noteGenText"&gt;Note:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;The format parameters are case sensitive.&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 21 Sep 2018 13:05:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-new-empty-table-in-SAS-ESP-and-store-values-from-Source/m-p/497806#M132086</guid>
      <dc:creator>jovic92</dc:creator>
      <dc:date>2018-09-21T13:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create new empty table in SAS ESP and store values from Source</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-new-empty-table-in-SAS-ESP-and-store-values-from-Source/m-p/497815#M132092</link>
      <description>&lt;P&gt;Ah, sorry.&lt;/P&gt;
&lt;P&gt;if you are following the documentation thoroughly, try open a ticket to SAS tech support.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 13:36:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-new-empty-table-in-SAS-ESP-and-store-values-from-Source/m-p/497815#M132092</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-09-21T13:36:36Z</dc:date>
    </item>
  </channel>
</rss>

