<?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 Multiple Update in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/Multiple-Update/m-p/700580#M3224</link>
    <description>&lt;P&gt;Hi Rob&lt;/P&gt;&lt;P&gt;I tried to post this in other community (SAS Programming and SAS procedures) not OR/MS but i did not get any answers. So I am reaching out to you to see if you have any suggestions .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi I am working in CAS environment (SAS Viya). I want to get the job done, i dont mind if i have to use fedsql or just proc sql or any other thing that you would recommend.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get the SAS way of doing the following SQL code which is super simple. What is the best and easiest way to get this done?&lt;/P&gt;&lt;P&gt;Update CASUSER.MSD&lt;/P&gt;&lt;P&gt;Set RateIncludeOcean = 'YES', RateExcludeReasonOcean = 'XXXX'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my FedSQL way but not successful&lt;/P&gt;&lt;PRE class="language-sas"&gt;&lt;CODE&gt;OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
75 
76 proc fedsql sessref=casauto;
77 update CASUSER.MSD
78 {
79 set
80 RateIncludeOcean='YES',
81 RateExcludeReason='XXXX'
82 }
83 ;
ERROR: Unsupported SQL statement.
ERROR: The action stopped due to errors.
ERROR: The FedSQL action was not successful.
NOTE: PROC FEDSQL has set option NOEXEC and will continue to prepare statements.
84&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here is my proc sql way&lt;/P&gt;&lt;PRE class="language-sas"&gt;&lt;CODE&gt;proc sql;
update CASUSER.MSD
set RateIncludeOcean='YES',
RateExcludeReason='XXXX'
; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and here is the error for proc sql way ERROR: Update access is not supported for file CASUSER.MSD.DATA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Nov 2020 18:18:59 GMT</pubDate>
    <dc:creator>Santha</dc:creator>
    <dc:date>2020-11-20T18:18:59Z</dc:date>
    <item>
      <title>Multiple Update</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Multiple-Update/m-p/700580#M3224</link>
      <description>&lt;P&gt;Hi Rob&lt;/P&gt;&lt;P&gt;I tried to post this in other community (SAS Programming and SAS procedures) not OR/MS but i did not get any answers. So I am reaching out to you to see if you have any suggestions .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi I am working in CAS environment (SAS Viya). I want to get the job done, i dont mind if i have to use fedsql or just proc sql or any other thing that you would recommend.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get the SAS way of doing the following SQL code which is super simple. What is the best and easiest way to get this done?&lt;/P&gt;&lt;P&gt;Update CASUSER.MSD&lt;/P&gt;&lt;P&gt;Set RateIncludeOcean = 'YES', RateExcludeReasonOcean = 'XXXX'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my FedSQL way but not successful&lt;/P&gt;&lt;PRE class="language-sas"&gt;&lt;CODE&gt;OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
75 
76 proc fedsql sessref=casauto;
77 update CASUSER.MSD
78 {
79 set
80 RateIncludeOcean='YES',
81 RateExcludeReason='XXXX'
82 }
83 ;
ERROR: Unsupported SQL statement.
ERROR: The action stopped due to errors.
ERROR: The FedSQL action was not successful.
NOTE: PROC FEDSQL has set option NOEXEC and will continue to prepare statements.
84&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here is my proc sql way&lt;/P&gt;&lt;PRE class="language-sas"&gt;&lt;CODE&gt;proc sql;
update CASUSER.MSD
set RateIncludeOcean='YES',
RateExcludeReason='XXXX'
; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and here is the error for proc sql way ERROR: Update access is not supported for file CASUSER.MSD.DATA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 18:18:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Multiple-Update/m-p/700580#M3224</guid>
      <dc:creator>Santha</dc:creator>
      <dc:date>2020-11-20T18:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Update</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Multiple-Update/m-p/700583#M3225</link>
      <description>&lt;P&gt;Then the reason is clear: you can't do an update in CAS. You will probably need to do the data changes in SAS 9.4 and re-upload the dataset.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 18:23:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Multiple-Update/m-p/700583#M3225</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-11-20T18:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Update</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Multiple-Update/m-p/700607#M3226</link>
      <description>&lt;P&gt;hmm. yes i guess it is clear.&lt;/P&gt;&lt;P&gt;why would update option not available in CAS.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 20:54:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Multiple-Update/m-p/700607#M3226</guid>
      <dc:creator>Santha</dc:creator>
      <dc:date>2020-11-20T20:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Update</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Multiple-Update/m-p/700619#M3227</link>
      <description>&lt;P&gt;If you refer to the FEDSQL doc for CAS you will see there is no UPDATE statement listed:&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=casfedsql&amp;amp;docsetTarget=p01kq5ka44c2l8n1j2yr40apac0n.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=casfedsql&amp;amp;docsetTarget=p01kq5ka44c2l8n1j2yr40apac0n.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DATA step SET and MERGE statements are available. Refer to the same documentation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, please don't post multiple times in different forums. Be patient waiting for answers. If you want a faster response contact SAS Tech Support.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 23:14:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Multiple-Update/m-p/700619#M3227</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-11-20T23:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Update</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Multiple-Update/m-p/701676#M3228</link>
      <description>&lt;P&gt;Thank you for your feedback. I will not post in multiple forums.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to get my answers through CASL update table thing. That worked.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the support&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 19:39:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Multiple-Update/m-p/701676#M3228</guid>
      <dc:creator>Santha</dc:creator>
      <dc:date>2020-11-25T19:39:07Z</dc:date>
    </item>
  </channel>
</rss>

