<?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 VA - filter to current year and month by default in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-filter-to-current-year-and-month-by-default/m-p/536560#M11921</link>
    <description>&lt;P&gt;Have you read the CASUTIL documentation?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=casref&amp;amp;docsetTarget=n03spmi9ixzq5pn11lneipfwyu8b.htm&amp;amp;docsetVersion=3.3&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=casref&amp;amp;docsetTarget=n03spmi9ixzq5pn11lneipfwyu8b.htm&amp;amp;docsetVersion=3.3&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you can do an append with the LOAD statement to add to an existing CAS table. A normal LOAD with a WHERE condition to create the table in the first instance should work.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Feb 2019 19:54:19 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2019-02-18T19:54:19Z</dc:date>
    <item>
      <title>SAS VA - filter to current year and month by default</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-filter-to-current-year-and-month-by-default/m-p/498056#M11141</link>
      <description>&lt;P&gt;how to show current year and month data by default on my VA report , but also give user the possibility to filter other year and month. (Note year and month should change dynamically when new month or year come )&lt;/P&gt;</description>
      <pubDate>Sat, 22 Sep 2018 11:14:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-filter-to-current-year-and-month-by-default/m-p/498056#M11141</guid>
      <dc:creator>DharmeshTadvi</dc:creator>
      <dc:date>2018-09-22T11:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA - filter to current year and month by default</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-filter-to-current-year-and-month-by-default/m-p/498142#M11142</link>
      <description>&lt;P&gt;The easiest way to do this is to add a flag in your SAS VA table before loading it. For the current month, set this flag to 0, for the previous month 1, and the month before that 2 and so on. Then you can have a static filter in VA set to month flag = 0.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Sep 2018 01:28:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-filter-to-current-year-and-month-by-default/m-p/498142#M11142</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-09-23T01:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA - filter to current year and month by default</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-filter-to-current-year-and-month-by-default/m-p/535159#M11888</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your quick updates. Could you please suggest how to include and where to include&amp;nbsp;to add a flags.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 12:06:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-filter-to-current-year-and-month-by-default/m-p/535159#M11888</guid>
      <dc:creator>sridhar_m</dc:creator>
      <dc:date>2019-02-13T12:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA - filter to current year and month by default</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-filter-to-current-year-and-month-by-default/m-p/535373#M11898</link>
      <description>&lt;P&gt;Before loading your data into VA a simple DATA step can add this column. I'm assuming you would have a reporting date column in your data. From that you can derive a reporting month column. Based on the logic below Jan 2019 data will be flagged with a reporting month (Reporting_Month) of 0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set have;
  Reporting_Month = intck('MONTH', Reporting_Date, "31Jan2019"d);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Feb 2019 19:19:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-filter-to-current-year-and-month-by-default/m-p/535373#M11898</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-02-13T19:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA - filter to current year and month by default</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-filter-to-current-year-and-month-by-default/m-p/535492#M11900</link>
      <description>&lt;P&gt;Thanks a lot for your quick updates.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 05:25:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-filter-to-current-year-and-month-by-default/m-p/535492#M11900</guid>
      <dc:creator>sridhar_m</dc:creator>
      <dc:date>2019-02-14T05:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA - filter to current year and month by default</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-filter-to-current-year-and-month-by-default/m-p/536234#M11916</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;Could you please help me on the below:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;How to load latest 6 months data into SAS CAS Server.&lt;/DIV&gt;&lt;DIV&gt;and after that how to append 3 more months into it.&lt;/DIV&gt;&lt;DIV&gt;Using with PROC CASUTIL.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks in Advance&lt;/DIV&gt;</description>
      <pubDate>Sun, 17 Feb 2019 07:20:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-filter-to-current-year-and-month-by-default/m-p/536234#M11916</guid>
      <dc:creator>sridhar_m</dc:creator>
      <dc:date>2019-02-17T07:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA - filter to current year and month by default</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-filter-to-current-year-and-month-by-default/m-p/536560#M11921</link>
      <description>&lt;P&gt;Have you read the CASUTIL documentation?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=casref&amp;amp;docsetTarget=n03spmi9ixzq5pn11lneipfwyu8b.htm&amp;amp;docsetVersion=3.3&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=casref&amp;amp;docsetTarget=n03spmi9ixzq5pn11lneipfwyu8b.htm&amp;amp;docsetVersion=3.3&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you can do an append with the LOAD statement to add to an existing CAS table. A normal LOAD with a WHERE condition to create the table in the first instance should work.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 19:54:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-filter-to-current-year-and-month-by-default/m-p/536560#M11921</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-02-18T19:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA - filter to current year and month by default</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-filter-to-current-year-and-month-by-default/m-p/536638#M11922</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your answer.&lt;/P&gt;&lt;P&gt;I am submitting the below code:&lt;/P&gt;&lt;P&gt;proc casutil;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; load casdata=" TRANSACTIONS" casout=" TRANSACTIONS_STG" outcaslib=" FA" incaslib="FA"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; options={where=" dw_processed_date='201902'd " }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; replace ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, I am not able to apply format. Kindly help.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 04:00:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-filter-to-current-year-and-month-by-default/m-p/536638#M11922</guid>
      <dc:creator>sridhar_m</dc:creator>
      <dc:date>2019-02-19T04:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA - filter to current year and month by default</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-filter-to-current-year-and-month-by-default/m-p/536847#M11928</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;have you read the documentation?&lt;/P&gt;&lt;P&gt;what does your log say?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 18:14:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-filter-to-current-year-and-month-by-default/m-p/536847#M11928</guid>
      <dc:creator>34reqrwe</dc:creator>
      <dc:date>2019-02-19T18:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA - filter to current year and month by default</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-filter-to-current-year-and-month-by-default/m-p/536868#M11929</link>
      <description>&lt;P&gt;Please post your SAS log.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 19:10:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-filter-to-current-year-and-month-by-default/m-p/536868#M11929</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-02-19T19:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA - filter to current year and month by default</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-filter-to-current-year-and-month-by-default/m-p/536954#M11930</link>
      <description>&lt;P&gt;82 load casdata="FA_TRANSACTIONS" incaslib="FA2" outcaslib="FA2" casout="FA_TRANSACTIONS_STG"&lt;BR /&gt;83 dataSourceOptions=(dbmswhere="posted_on_dt=201902")&lt;BR /&gt;84 replace;&lt;BR /&gt;NOTE: Action failed during Embedded Process processing. Retrying action without the Embedded Process.&lt;BR /&gt;ERROR: General error org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: RuntimeException Cannot&lt;BR /&gt;convert to Date from: int&lt;BR /&gt;ERROR: The action stopped due to errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 03:34:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-filter-to-current-year-and-month-by-default/m-p/536954#M11930</guid>
      <dc:creator>sridhar_m</dc:creator>
      <dc:date>2019-02-20T03:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA - filter to current year and month by default</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-filter-to-current-year-and-month-by-default/m-p/537022#M11941</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;PFB for your reference:&lt;/P&gt;&lt;P&gt;82 load casdata="FA_TRANSACTIONS" incaslib="FA2" outcaslib="FA2" casout="FA_TRANSACTIONS_STG"&lt;BR /&gt;83 dataSourceOptions=(dbmswhere="posted_on_dt=201902")&lt;BR /&gt;84 replace;&lt;BR /&gt;NOTE: Action failed during Embedded Process processing. Retrying action without the Embedded Process.&lt;BR /&gt;ERROR: General error org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: RuntimeException Cannot&lt;BR /&gt;convert to Date from: int&lt;BR /&gt;ERROR: The action stopped due to errors.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 10:04:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-filter-to-current-year-and-month-by-default/m-p/537022#M11941</guid>
      <dc:creator>sridhar_m</dc:creator>
      <dc:date>2019-02-20T10:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA - filter to current year and month by default</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-filter-to-current-year-and-month-by-default/m-p/537263#M11947</link>
      <description>Sounds like a syntax error .&lt;BR /&gt;"Cannot convert to Date from: int"&lt;BR /&gt;you could confirm if it is syntax by removing this line&lt;BR /&gt;dataSourceOptions=(dbmswhere="posted_on_dt=201902")&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Feb 2019 01:22:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-filter-to-current-year-and-month-by-default/m-p/537263#M11947</guid>
      <dc:creator>34reqrwe</dc:creator>
      <dc:date>2019-02-21T01:22:49Z</dc:date>
    </item>
  </channel>
</rss>

