<?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: get rid of  GCONV convergence criterion satisfied. in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/get-rid-of-GCONV-convergence-criterion-satisfied/m-p/977078#M6543</link>
    <description>Are you just trying to turn the log completely off for the IML steps, or do you just want to suppress that particular message?  And are you running multiple PROC IML steps in your code, or just one?</description>
    <pubDate>Wed, 15 Oct 2025 18:41:01 GMT</pubDate>
    <dc:creator>quickbluefish</dc:creator>
    <dc:date>2025-10-15T18:41:01Z</dc:date>
    <item>
      <title>get rid of  GCONV convergence criterion satisfied.</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/get-rid-of-GCONV-convergence-criterion-satisfied/m-p/977061#M6540</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am so desperate to find a way to stop (&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;NOTE: GCONV convergence criterion satisfied)&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;from showing up in my log file. I tried some options with no luck,&amp;nbsp;&lt;/P&gt;&lt;P&gt;options nonotes;&lt;BR /&gt;proc iml;&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;options notes;&lt;/P&gt;&lt;P&gt;quit&lt;/P&gt;&lt;P&gt;I also tried&amp;nbsp;%odsoff. The problem is that it is very time-consuming when I am using 10,000 simulations and 500 bootstraps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 16:45:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/get-rid-of-GCONV-convergence-criterion-satisfied/m-p/977061#M6540</guid>
      <dc:creator>Salah</dc:creator>
      <dc:date>2025-10-15T16:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: get rid of  GCONV convergence criterion satisfied.</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/get-rid-of-GCONV-convergence-criterion-satisfied/m-p/977066#M6541</link>
      <description>&lt;P&gt;There is probably some simple way, but if you're desperate, you could use PROC PRINTTO to redirect the log (right before your IML step) to a separate file (e.g., iml_log.txt), then read in that text file with DATA _NULL_ and use PUT statements to write out all lines that do not contain the offensive message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;** other code here... ;

* redirect log for the IML step;
proc printto log="/your/dir/iml_log.txt"; run;

proc IML;
...;
quit;

* redirect log back to default;
proc printto; run;

* read in your IML log ;
filename iml "/your/dir/iml_log.txt";

* conditionally write out messages from your IML log to the default log ;
data _null_;
infile iml dsd truncover firstobs=1;
length logline $500;
input logline;
if logline^="NOTE: GCONV convergence criterion satisfied" then put logline;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 17:29:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/get-rid-of-GCONV-convergence-criterion-satisfied/m-p/977066#M6541</guid>
      <dc:creator>quickbluefish</dc:creator>
      <dc:date>2025-10-15T17:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: get rid of  GCONV convergence criterion satisfied.</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/get-rid-of-GCONV-convergence-criterion-satisfied/m-p/977075#M6542</link>
      <description>&lt;P&gt;Thank you for your reply. I prefer a shorter way if there is any? I used to use %odson and %odsoff, and it was working fine. I am just so surprised that it stops working, and I don't know why?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 18:13:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/get-rid-of-GCONV-convergence-criterion-satisfied/m-p/977075#M6542</guid>
      <dc:creator>Salah</dc:creator>
      <dc:date>2025-10-15T18:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: get rid of  GCONV convergence criterion satisfied.</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/get-rid-of-GCONV-convergence-criterion-satisfied/m-p/977078#M6543</link>
      <description>Are you just trying to turn the log completely off for the IML steps, or do you just want to suppress that particular message?  And are you running multiple PROC IML steps in your code, or just one?</description>
      <pubDate>Wed, 15 Oct 2025 18:41:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/get-rid-of-GCONV-convergence-criterion-satisfied/m-p/977078#M6543</guid>
      <dc:creator>quickbluefish</dc:creator>
      <dc:date>2025-10-15T18:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: get rid of  GCONV convergence criterion satisfied.</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/get-rid-of-GCONV-convergence-criterion-satisfied/m-p/977080#M6544</link>
      <description>&lt;P&gt;Just&amp;nbsp;GCONV convergence criterion satisfied.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 19:06:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/get-rid-of-GCONV-convergence-criterion-satisfied/m-p/977080#M6544</guid>
      <dc:creator>Salah</dc:creator>
      <dc:date>2025-10-15T19:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: get rid of  GCONV convergence criterion satisfied.</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/get-rid-of-GCONV-convergence-criterion-satisfied/m-p/977081#M6545</link>
      <description>&lt;P&gt;OPTIONS NONOTES;&lt;/P&gt;
&lt;P&gt;should turn off all notes. Here is an example from the documentation, along with the SAS log. You can see that there are no notes associated with the optimization in the log:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc iml;
start F_ROSEN(x);
   y1 = 10 * (x[2] - x[1] * x[1]);
   y2 =  1 - x[1];
   f  = 0.5 * (y1 * y1 + y2 * y2);
   return(f);
finish F_ROSEN;
x = {-1.2 1};
opt = {0 2 . 2};

option nonotes;
do i = 1 to 10;
   call nlpqn(rc, xr, "F_ROSEN", x, opt);
end;
options notes;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;8985  proc iml;
NOTE: IML Ready
8986  start F_ROSEN(x);
8987     y1 = 10 * (x[2] - x[1] * x[1]);
8988     y2 =  1 - x[1];
8989     f  = 0.5 * (y1 * y1 + y2 * y2);
8990     return(f);
8991  finish F_ROSEN;
NOTE: Module F_ROSEN defined.
8992  x = {-1.2 1};
8993  opt = {0 2 . 2};
8994
8995  option nonotes;
8996  do i = 1 to 10;
8997     call nlpqn(rc, xr, "F_ROSEN", x, opt);
8998  end;
8999  options notes;
9000  quit;
NOTE: Exiting IML.
NOTE: PROCEDURE IML used (Total process time):
      real time           0.10 seconds
      cpu time            0.06 seconds
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you are seeing something different, then please provide a sample log (for a small number of simulations) and the details about how you are submitting SAS: EG? SAS Studio? ODA? Batch? etc&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 19:10:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/get-rid-of-GCONV-convergence-criterion-satisfied/m-p/977081#M6545</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2025-10-15T19:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: get rid of  GCONV convergence criterion satisfied.</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/get-rid-of-GCONV-convergence-criterion-satisfied/m-p/977082#M6546</link>
      <description>&lt;P&gt;Thank you for your reply. I did use the&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="sas"&gt;options nonotes;
options notes;&lt;/LI-CODE&gt;&lt;P&gt;but unfortunately, it didn't work. This makes me wonder if there's something in my code that's preventing it from working.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 19:18:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/get-rid-of-GCONV-convergence-criterion-satisfied/m-p/977082#M6546</guid>
      <dc:creator>Salah</dc:creator>
      <dc:date>2025-10-15T19:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: get rid of  GCONV convergence criterion satisfied.</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/get-rid-of-GCONV-convergence-criterion-satisfied/m-p/977083#M6547</link>
      <description>&lt;P&gt;Run exactly the code I sent you and report your log.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 19:30:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/get-rid-of-GCONV-convergence-criterion-satisfied/m-p/977083#M6547</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2025-10-15T19:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: get rid of  GCONV convergence criterion satisfied.</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/get-rid-of-GCONV-convergence-criterion-satisfied/m-p/977086#M6548</link>
      <description>&lt;P&gt;You can just create your own versions of those macros, I guess, store them somewhere, and %include them in your programs that contain IML steps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;** the macros (note they've been given default values so the calls are simpler - change as needed) ;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro odsoff2(outdir=%str(/home/xxxxx/sasuser.v94));
	proc printto log="&amp;amp;outdir/_templog.txt" new; run;
%mend; *odsoff2;

%macro odson2(
	indir=%str(/home/xxxxx/sasuser.v94), 
	ignorelist=Division by zero detected|Some other message to ignore|Another msg
	);
	proc printto; run;
	filename tlog "&amp;amp;indir/_templog.txt";
	data _null_;
	infile tlog dsd truncover firstobs=1;
	length logline $500;
	input logline;
	%if %length(&amp;amp;ignorelist) %then %do;
		%let csv=%sysfunc(tranwrd("%sysfunc(tranwrd(%cmpres(&amp;amp;ignorelist),|,%str(,)))",%str(,),%str(",")));
		array T {%sysfunc(countW(&amp;amp;ignorelist,|))} $500 _temporary_ (&amp;amp;csv);
		isOK=1;
		do i=1 to dim(T);
			if prxmatch(cats("/" || strip(T[i]) || "/i"),logline) then do;
				isOK=0;
				leave;
			end;
		end;
		if isOK then put logline;
	%end;
	run;
%mend;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;** testing them (in another program) ;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%include "/home/xxxx/sasuser.v94/ods_onoff.sas";

data test;
do i=1 to 5;
	y=ranuni(0);
	output;
end;
run;

%odsoff2;

data no_log;
do i=1 to 15;
	x=i/mod(i,3);  * this will produce some division by zero notes ;
	output;
end;
run;

%odson2;

data more;
do i=1 to 10;
	x=ranuni(0);
	output;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;** take a look at the log - there should be no 'Division by zero' type notes.&amp;nbsp; But if you highlight and run that specific data step (DATA NO_LOG...), you will get those notes.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 19:52:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/get-rid-of-GCONV-convergence-criterion-satisfied/m-p/977086#M6548</guid>
      <dc:creator>quickbluefish</dc:creator>
      <dc:date>2025-10-15T19:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: get rid of  GCONV convergence criterion satisfied.</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/get-rid-of-GCONV-convergence-criterion-satisfied/m-p/977105#M6549</link>
      <description>&lt;P&gt;I ran your code, and my log is an exact replica of yours.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2025 07:01:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/get-rid-of-GCONV-convergence-criterion-satisfied/m-p/977105#M6549</guid>
      <dc:creator>Salah</dc:creator>
      <dc:date>2025-10-16T07:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: get rid of  GCONV convergence criterion satisfied.</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/get-rid-of-GCONV-convergence-criterion-satisfied/m-p/977143#M6550</link>
      <description>&lt;P&gt;Great. That shows that&amp;nbsp;&lt;BR /&gt;OPTIONS NONOTES;&lt;/P&gt;
&lt;P&gt;is working correctly. You can use it in conjunction with &lt;A href="https://blogs.sas.com/content/iml/2013/05/24/turn-off-ods-for-simulations.html" target="_self"&gt;other statements that suppress output&lt;/A&gt;&amp;nbsp;during your simulation.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2025 09:58:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/get-rid-of-GCONV-convergence-criterion-satisfied/m-p/977143#M6550</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2025-10-16T09:58:43Z</dc:date>
    </item>
  </channel>
</rss>

