<?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: How to suppress date warnings when loading a cas table on SAS Viya 3.5? in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/How-to-suppress-date-warnings-when-loading-a-cas-table-on-SAS/m-p/901488#M2080</link>
    <description>&lt;P&gt;Since the procedure may use different options for each data source you might at least mention what you are connecting to so have some chance of helping.&lt;/P&gt;
&lt;P&gt;That link to the help you provided only works with&lt;/P&gt;
&lt;TABLE class="xisDoc-summary"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="xisDoc-dataSource"&gt;&amp;nbsp;&lt;/TH&gt;
&lt;TD class="xisDoc-summaryValue"&gt;DB2, Microsoft SQL Server, ODBC, PostgreSQL&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;If you are using a different source it isn't going to be available.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Nov 2023 20:10:49 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2023-11-03T20:10:49Z</dc:date>
    <item>
      <title>How to suppress date warnings when loading a cas table on SAS Viya 3.5?</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-to-suppress-date-warnings-when-loading-a-cas-table-on-SAS/m-p/901447#M2079</link>
      <description>&lt;P&gt;I am loading data in a CASLIB so that I can import it into my program and analyse it, with the following code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc casutil session=MY_SESS incaslib="&amp;amp;caslib." outcaslib="&amp;amp;caslib.";
   load casdata="&amp;amp;sourceTable." casout="&amp;amp;sourceTable." replace;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I then get the following warning message:&lt;/P&gt;&lt;PRE&gt;WARNING: Invalid date value '209-6-16'&lt;/PRE&gt;&lt;P&gt;This is obviously because the date value should probably be '2019-6-16' and hence is not a valid date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I can see in Viya 4 there is the option of &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/v_044/casref/p0kihju3wwfbv6n0zkbyolze0v3p.htm" target="_blank" rel="noopener"&gt;how to handle invalid dates here&lt;/A&gt;, how would I implement that into my code? I have tried every use of dataSourceOptions I can think of and can't make it work!&lt;BR /&gt;&lt;BR /&gt;I am in Viya 3.5, is the warning suppression not available until Viya 4?&lt;BR /&gt;&lt;BR /&gt;It's not the end of the world, but in our processes we try and minimise warnings so would be nice if anyone has any ideas about how to suppress this warning.&lt;BR /&gt;&lt;BR /&gt;Note - Fixing the date at source isn't an option, we would like to that in SAS!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 17:19:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-to-suppress-date-warnings-when-loading-a-cas-table-on-SAS/m-p/901447#M2079</guid>
      <dc:creator>shiney_martin1</dc:creator>
      <dc:date>2023-11-03T17:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to suppress date warnings when loading a cas table on SAS Viya 3.5?</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-to-suppress-date-warnings-when-loading-a-cas-table-on-SAS/m-p/901488#M2080</link>
      <description>&lt;P&gt;Since the procedure may use different options for each data source you might at least mention what you are connecting to so have some chance of helping.&lt;/P&gt;
&lt;P&gt;That link to the help you provided only works with&lt;/P&gt;
&lt;TABLE class="xisDoc-summary"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="xisDoc-dataSource"&gt;&amp;nbsp;&lt;/TH&gt;
&lt;TD class="xisDoc-summaryValue"&gt;DB2, Microsoft SQL Server, ODBC, PostgreSQL&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;If you are using a different source it isn't going to be available.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 20:10:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-to-suppress-date-warnings-when-loading-a-cas-table-on-SAS/m-p/901488#M2080</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-11-03T20:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to suppress date warnings when loading a cas table on SAS Viya 3.5?</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-to-suppress-date-warnings-when-loading-a-cas-table-on-SAS/m-p/901513#M2081</link>
      <description>&lt;P&gt;As you've suggested that option isn't available in Viya 3.5. You could always read the data into a SAS dataset first, set invalid dates to missing, then load to CAS using the dataset. It just depends if you are OK with having that extra step.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Nov 2023 00:14:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-to-suppress-date-warnings-when-loading-a-cas-table-on-SAS/m-p/901513#M2081</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-11-04T00:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to suppress date warnings when loading a cas table on SAS Viya 3.5?</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-to-suppress-date-warnings-when-loading-a-cas-table-on-SAS/m-p/902031#M2083</link>
      <description>&lt;P&gt;Hi both,&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.&lt;BR /&gt;It's an Oracle connection, so should work, but I think as said there just isn't any way of using in 3.5 sadly.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I will explore the suggested option of loading it into a SAS dataset first, thanks both.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 11:55:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-to-suppress-date-warnings-when-loading-a-cas-table-on-SAS/m-p/902031#M2083</guid>
      <dc:creator>shiney_martin1</dc:creator>
      <dc:date>2023-11-08T11:55:59Z</dc:date>
    </item>
  </channel>
</rss>

