<?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 can you suppress printing of Proc Cas outputs to the log? in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/How-can-you-suppress-printing-of-Proc-Cas-outputs-to-the-log/m-p/927724#M2383</link>
    <description>&lt;P&gt;Leave it, for others to learn.&lt;/P&gt;</description>
    <pubDate>Thu, 09 May 2024 14:47:01 GMT</pubDate>
    <dc:creator>yabwon</dc:creator>
    <dc:date>2024-05-09T14:47:01Z</dc:date>
    <item>
      <title>How can you suppress printing of Proc Cas outputs to the log?</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-can-you-suppress-printing-of-Proc-Cas-outputs-to-the-log/m-p/927688#M2377</link>
      <description>&lt;P&gt;I am running the following code to subset an existing table as part of a data engineering pipeline. I want to reduce outputs to the log from proc cas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc cas ;
	table.Partition/ casout={caslib="mycaslib" name="previous_errors" replace=True} 
	table={caslib="mycaslib" name= "&amp;amp;viewName._DQ" where="DQField= error"};
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This will then print to the log the following:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;{caslib=mycaslib,tableName=PREVIOUS_ERRORS,rowsTransferred=0,shuffleWaitTime=0.000010252,minShuffleWaitTime=0,maxShuffleWaitTime=2.1457672E-6,averageShuffleWaitTime=1.4645713E-6}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;This is very frustrating as this code is part of a macro running close to 100 times, so this message is really unnecessarily clogging up the log.&lt;BR /&gt;&lt;BR /&gt;Does anyone know how to turn it off?&lt;BR /&gt;&lt;BR /&gt;I already have &lt;SPAN&gt;messageLevel &lt;/SPAN&gt;set to "warning", which I have checked using "listsessopts"&lt;BR /&gt;&lt;BR /&gt;I am using SAS Viya 3.5.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 13:48:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-can-you-suppress-printing-of-Proc-Cas-outputs-to-the-log/m-p/927688#M2377</guid>
      <dc:creator>shiney_martin1</dc:creator>
      <dc:date>2024-05-09T13:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can you suppress printing of Proc Cas outputs to the log?</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-can-you-suppress-printing-of-Proc-Cas-outputs-to-the-log/m-p/927696#M2378</link>
      <description>&lt;P&gt;You could try the "proc printto + dummy file" sandwich:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename D dummy;
proc printto log=D;
run;

proc cas ;
	table.Partition/ casout={caslib="mycaslib" name="previous_errors" replace=True} 
	table={caslib="mycaslib" name= "&amp;amp;viewName._DQ" where="DQField= error"};
quit;

proc printto;
run;
filename D clear;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 14:06:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-can-you-suppress-printing-of-Proc-Cas-outputs-to-the-log/m-p/927696#M2378</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2024-05-09T14:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can you suppress printing of Proc Cas outputs to the log?</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-can-you-suppress-printing-of-Proc-Cas-outputs-to-the-log/m-p/927703#M2379</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/35763"&gt;@yabwon&lt;/a&gt;, thanks for that, this does work.&lt;BR /&gt;&lt;BR /&gt;However, then if there were any errors or warnings in this step, I would not see them in the log, so it's not quite the ideal solution. If there is any way to do it while using the main log?&lt;BR /&gt;&lt;BR /&gt;It seems odd as most other parts of SAS have ways of suppressing things being printed to the log.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 14:13:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-can-you-suppress-printing-of-Proc-Cas-outputs-to-the-log/m-p/927703#M2379</guid>
      <dc:creator>shiney_martin1</dc:creator>
      <dc:date>2024-05-09T14:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: How can you suppress printing of Proc Cas outputs to the log?</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-can-you-suppress-printing-of-Proc-Cas-outputs-to-the-log/m-p/927715#M2380</link>
      <description>&lt;P&gt;Apologies everyone, I have resolved my own issue!&lt;BR /&gt;&lt;BR /&gt;If you add in a results=r option, it will store the results in a file called "r" instead of printing to the log.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc cas ;
	table.Partition result=r/ casout={caslib="mycaslib" name="previous_errors" replace=True} 
	table={caslib="mycaslib" name= "&amp;amp;viewName._DQ" where="DQField= error"};
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Pretty new to this forum.. should I delete my post or leave it up as could be useful to others?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 14:28:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-can-you-suppress-printing-of-Proc-Cas-outputs-to-the-log/m-p/927715#M2380</guid>
      <dc:creator>shiney_martin1</dc:creator>
      <dc:date>2024-05-09T14:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can you suppress printing of Proc Cas outputs to the log?</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-can-you-suppress-printing-of-Proc-Cas-outputs-to-the-log/m-p/927724#M2383</link>
      <description>&lt;P&gt;Leave it, for others to learn.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 14:47:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-can-you-suppress-printing-of-Proc-Cas-outputs-to-the-log/m-p/927724#M2383</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2024-05-09T14:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can you suppress printing of Proc Cas outputs to the log?</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-can-you-suppress-printing-of-Proc-Cas-outputs-to-the-log/m-p/927725#M2384</link>
      <description>&lt;P&gt;Leave the question and solution in the forum in case others have a similar issue.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 14:48:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-can-you-suppress-printing-of-Proc-Cas-outputs-to-the-log/m-p/927725#M2384</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-05-09T14:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can you suppress printing of Proc Cas outputs to the log?</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-can-you-suppress-printing-of-Proc-Cas-outputs-to-the-log/m-p/927728#M2386</link>
      <description>&lt;P&gt;Just if you need it for other situations:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename D temp;
proc printto log=D;
run;

proc cas ;
	table.Partition/ casout={caslib="mycaslib" name="previous_errors" replace=True} 
	table={caslib="mycaslib" name= "&amp;amp;viewName._DQ" where="DQField= error"};
quit;

proc printto;
run;
data _null_;
infile D;
input;
if "ERROR:"=:_infile_ or
 "WARNING:"=:_infile_
 then put _infile_;
run;
filename D clear;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;There is also SYSERR macrovariable which keep info about last error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 14:55:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-can-you-suppress-printing-of-Proc-Cas-outputs-to-the-log/m-p/927728#M2386</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2024-05-09T14:55:18Z</dc:date>
    </item>
  </channel>
</rss>

