<?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: Proc compare throws error in EG under specific conditions. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-compare-throws-error-in-EG-under-specific-conditions/m-p/32800#M7927</link>
    <description>Hi:&lt;BR /&gt;
  This seems to be a fairly specific case and anything that results in a Read Access Violation probably should be reported to Tech Support -- especially since it involves PROC COMPARE -and- Enterprise Guide.&lt;BR /&gt;
 &lt;BR /&gt;
  To open a track with Tech Support, fill out the form at this link:&lt;BR /&gt;
&lt;A href="http://support.sas.com/ctx/supportform/createForm" target="_blank"&gt;http://support.sas.com/ctx/supportform/createForm&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Fri, 12 Nov 2010 15:49:55 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2010-11-12T15:49:55Z</dc:date>
    <item>
      <title>Proc compare throws error in EG under specific conditions.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-compare-throws-error-in-EG-under-specific-conditions/m-p/32799#M7926</link>
      <description>Hi,&lt;BR /&gt;
So below I'll step by step reproduce error which occurs after using proc compare with tables which has no-standard sas format.&lt;BR /&gt;
Please open EG(version of mine 4.1(4.1.0.1019), and execute step-by this code below:&lt;BR /&gt;
1.&lt;BR /&gt;
/*create small test dataset*/&lt;BR /&gt;
data testData;&lt;BR /&gt;
input id;&lt;BR /&gt;
datalines;&lt;BR /&gt;
1&lt;BR /&gt;
2&lt;BR /&gt;
3&lt;BR /&gt;
4&lt;BR /&gt;
5&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
2.&lt;BR /&gt;
/*create datastep with fields for format*/&lt;BR /&gt;
data testFormatTable;&lt;BR /&gt;
keep start label FmtName;&lt;BR /&gt;
	fmtname ='testFormatName';&lt;BR /&gt;
    label='test';&lt;BR /&gt;
	start='1';&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
3.&lt;BR /&gt;
/*create format*/&lt;BR /&gt;
	proc format library=work cntlin=testFormatTable;&lt;BR /&gt;
	run;&lt;BR /&gt;
&lt;BR /&gt;
4.&lt;BR /&gt;
/*create two datasets - one use this test format created higher,secon dataset - use standard sas format*/&lt;BR /&gt;
proc sql;&lt;BR /&gt;
	create table dset1 as &lt;BR /&gt;
	select  id  as IdField,&lt;BR /&gt;
				1 format testFormatName. as Status&lt;BR /&gt;
					 &lt;BR /&gt;
	from testData&lt;BR /&gt;
    order by idField&lt;BR /&gt;
;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
	create table dset2 as &lt;BR /&gt;
	select  id  as idField,&lt;BR /&gt;
				2 format 15. as Status&lt;BR /&gt;
					 &lt;BR /&gt;
	from testData&lt;BR /&gt;
    order by idField&lt;BR /&gt;
;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
5&lt;BR /&gt;
/*Run simple proc compare*/&lt;BR /&gt;
proc compare base=dset1      &lt;BR /&gt;
					compare=dset2       &lt;BR /&gt;
					listvar listequalvar &lt;BR /&gt;
					out=difference &lt;BR /&gt;
					outall;        &lt;BR /&gt;
id idField;      &lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
6.&lt;BR /&gt;
So as result you will see normall usual results - html report and "difference" table.You can run this proc compare few times - all will be the same.&lt;BR /&gt;
&lt;BR /&gt;
7.&lt;BR /&gt;
But, if you manually open difference table(for reviewing data), and then close it, for clear lock, and then again run same proc compare - you will have &lt;BR /&gt;
error. &lt;BR /&gt;
Usual error which I had - proc compare runs for a long time, ate 50 % of cpu time, and never ends, so I had to manually kill sas process.&lt;BR /&gt;
In more complicated tasks, when I used sorts procedure before proc compare I had such error(after second run same proc report):&lt;BR /&gt;
&lt;BR /&gt;
ERROR:  Read Access Violation In Task [ SORT (2) )&lt;BR /&gt;
Exception occurred at (00F44786)&lt;BR /&gt;
Task Traceback&lt;BR /&gt;
Address   Frame     (DBGHELP API Version 4.0 rev 5)&lt;BR /&gt;
00F44786  03BAFBD0  sashost:Main+0x1DAF6&lt;BR /&gt;
00F3F8C8  03BAFC20  sashost:Main+0x18C38&lt;BR /&gt;
00F390E1  03BAFC44  sashost:Main+0x12451&lt;BR /&gt;
00F29335  03BAFCA8  sashost:Main+0x26A5&lt;BR /&gt;
67961186  03BAFCDC  sasxkern:mcn_main+0x10186&lt;BR /&gt;
662E2111  03BAFF8C  sassort:mcn_main+0x1111&lt;BR /&gt;
00F32B02  03BAFFA4  sashost:Main+0xBE72&lt;BR /&gt;
00F36C20  03BAFFB8  sashost:Main+0xFF90&lt;BR /&gt;
77E6482F  03BAFFEC  kernel32:GetModuleHandleA+0xDF&lt;BR /&gt;
&lt;BR /&gt;
Also if I tried delete(using simpe proc sql) unneeded tables before runing proc compare again it throws such error:&lt;BR /&gt;
  ERROR: You cannot open SASHELP.TEST1.DATA for output access with&lt;BR /&gt;
          member-level control because SASHELP.TEST1.DATA is in use&lt;BR /&gt;
          by you in resource environment IOM ROOT COMP ENV.&lt;BR /&gt;
&lt;BR /&gt;
Fixing this last error must be possible by instaling hot fix:&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/13/740.html" target="_blank"&gt;http://support.sas.com/kb/13/740.html&lt;/A&gt;&lt;BR /&gt;
But it doesn't help...&lt;BR /&gt;
&lt;BR /&gt;
So looks like proc compare with EG sometimes ,in specific conditions(specific format etc.) lock tables which participate in proc compare as input or output tables.&lt;BR /&gt;
It's not usual lock, I tried create and clear lock using standard SAS tuls, but it didn't help, this "difference" tables treat as no locked(syslckrc macrovar=0).&lt;BR /&gt;
&lt;BR /&gt;
So if someone had same or similar error - please answer.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Fri, 12 Nov 2010 12:11:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-compare-throws-error-in-EG-under-specific-conditions/m-p/32799#M7926</guid>
      <dc:creator>Yuriy2301</dc:creator>
      <dc:date>2010-11-12T12:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc compare throws error in EG under specific conditions.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-compare-throws-error-in-EG-under-specific-conditions/m-p/32800#M7927</link>
      <description>Hi:&lt;BR /&gt;
  This seems to be a fairly specific case and anything that results in a Read Access Violation probably should be reported to Tech Support -- especially since it involves PROC COMPARE -and- Enterprise Guide.&lt;BR /&gt;
 &lt;BR /&gt;
  To open a track with Tech Support, fill out the form at this link:&lt;BR /&gt;
&lt;A href="http://support.sas.com/ctx/supportform/createForm" target="_blank"&gt;http://support.sas.com/ctx/supportform/createForm&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 12 Nov 2010 15:49:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-compare-throws-error-in-EG-under-specific-conditions/m-p/32800#M7927</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-11-12T15:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Proc compare throws error in EG under specific conditions.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-compare-throws-error-in-EG-under-specific-conditions/m-p/32801#M7928</link>
      <description>Thanks!</description>
      <pubDate>Mon, 15 Nov 2010 07:06:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-compare-throws-error-in-EG-under-specific-conditions/m-p/32801#M7928</guid>
      <dc:creator>Yuriy2301</dc:creator>
      <dc:date>2010-11-15T07:06:38Z</dc:date>
    </item>
  </channel>
</rss>

