<?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: Sas 9.4 TS1M3 - Loading Sas Dataset to MySQL using bulkload is not working in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Sas-9-4-TS1M3-Loading-Sas-Dataset-to-MySQL-using-bulkload-is-not/m-p/275446#M55076</link>
    <description>&lt;P&gt;First thing I will preface my comment with: I am not a MySql admin or use the program so specific details (options and parameters) I do not have on hand.&lt;/P&gt;
&lt;P&gt;A friend of my was recently working with SAS connected to MySql and they had some very poor performance issues with time of program running. After an amount of sleuthing they found out that there were apparently 3 data engines involved and the "default" installation picked one that optimizes for some other type of operation. When they switched to use a different MySql engine the process times went from 10 hours to 30 minutes for some SAS related operations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't say which to look for or where to find it, but it may be default MySql setting that is making things run slow.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jun 2016 16:27:20 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-06-06T16:27:20Z</dc:date>
    <item>
      <title>Sas 9.4 TS1M3 - Loading Sas Dataset to MySQL using bulkload is not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-9-4-TS1M3-Loading-Sas-Dataset-to-MySQL-using-bulkload-is-not/m-p/275141#M54982</link>
      <description>&lt;P&gt;Dear Sir,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a large sas dataset which I want to upload to MySql. I have verified that I can write a small sas dataset to it. However, when I try to write the big dataset to it, it takes forever.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I try to use bulkload but encountered the following error. I have tried a few ways to use bulkload but no success. I have increased my memsize to max. How much more memory do I need?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you can help or advice me&lt;/P&gt;&lt;P&gt;Tan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR&lt;BR /&gt;22&lt;BR /&gt;23 GOPTIONS ACCESSIBLE;&lt;BR /&gt;24 proc append data=dp base=mysqllib.dp(bulkload=yes);&lt;BR /&gt;25 run;&lt;/P&gt;&lt;P&gt;NOTE: Appending WORK.DP to MYSQLLIB.dp.&lt;BR /&gt;WARNING: Variable barrid has different lengths on BASE and DATA files (BASE 10 DATA 8).&lt;BR /&gt;MYSQL: Can't create bulkload temporary file: bl_dp_5&lt;/P&gt;&lt;P&gt;ERROR: The SAS System stopped processing this step because of insufficient memory.&lt;BR /&gt;NOTE: There were 2 observations read from the data set WORK.DP.&lt;BR /&gt;NOTE: There were 2 observations read from the data set MYSQLLIB.dp.&lt;BR /&gt;26&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;27 data mysqllib.dp5 (BULKLOAD=yes BL_DEFAULT_DIR="c:\temp\");&lt;BR /&gt;28 set dp;&lt;BR /&gt;29 run;&lt;/P&gt;&lt;P&gt;NOTE: SAS variable labels, formats, and lengths are not written to DBMS tables.&lt;BR /&gt;MYSQL: Can't create bulkload temporary file: c:/temp//bl_dp5_6&lt;/P&gt;&lt;P&gt;ERROR: The SAS System stopped processing this step because of insufficient memory.&lt;BR /&gt;NOTE: There were 2 observations read from the data set WORK.DP.&lt;BR /&gt;WARNING: The data set MYSQLLIB.dp5 may be incomplete. When this step was stopped there were 1 observations and 4 variables.&lt;/P&gt;&lt;P&gt;30&lt;BR /&gt;31 data mysqllib.dp6 (BULKLOAD=yes);&lt;BR /&gt;32 set dp;&lt;BR /&gt;33 run;&lt;/P&gt;&lt;P&gt;NOTE: SAS variable labels, formats, and lengths are not written to DBMS tables.&lt;BR /&gt;MYSQL: Can't create bulkload temporary file: bl_dp6_7&lt;BR /&gt;2 The SAS System 18:29 Friday, June 3, 2016&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ERROR: The SAS System stopped processing this step because of insufficient memory.&lt;BR /&gt;NOTE: There were 2 observations read from the data set WORK.DP.&lt;BR /&gt;WARNING: The data set MYSQLLIB.dp6 may be incomplete. When this step was stopped there were 1 observations and 4 variables.&lt;/P&gt;&lt;P&gt;34&lt;BR /&gt;35 proc options group=memory; run;&lt;/P&gt;&lt;P&gt;SAS (r) Proprietary Software Release 9.4 TS1M3&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Group=MEMORY&lt;BR /&gt;SORTSIZE=1073741824&lt;BR /&gt;Specifies the amount of memory that is available to the SORT procedure.&lt;BR /&gt;SUMSIZE=0 Specifies a limit on the amount of memory that is available for data summarization procedures when class&lt;BR /&gt;variables are active.&lt;BR /&gt;MAXMEMQUERY=0 Specifies the maximum amount of memory that is allocated for procedures.&lt;BR /&gt;MEMBLKSZ=16777216 Specifies the memory block size for Windows memory-based libraries.&lt;BR /&gt;MEMMAXSZ=2147483648&lt;BR /&gt;Specifies the maximum amount of memory to allocate for using memory-based libraries.&lt;BR /&gt;LOADMEMSIZE=0 Specifies a suggested amount of memory that is needed for executable programs loaded by SAS.&lt;BR /&gt;MEMSIZE=9854127360&lt;BR /&gt;Specifies the limit on the amount of virtual memory that can be used during a SAS session.&lt;BR /&gt;REALMEMSIZE=0 Specifies the amount of real memory SAS can expect to allocate.&lt;BR /&gt;NOTE: PROCEDURE OPTIONS used (Total process time):&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2016 02:34:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-9-4-TS1M3-Loading-Sas-Dataset-to-MySQL-using-bulkload-is-not/m-p/275141#M54982</guid>
      <dc:creator>TanQF</dc:creator>
      <dc:date>2016-06-04T02:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sas 9.4 TS1M3 - Loading Sas Dataset to MySQL using bulkload is not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-9-4-TS1M3-Loading-Sas-Dataset-to-MySQL-using-bulkload-is-not/m-p/275146#M54985</link>
      <description>&lt;P&gt;I suggest you try without the BULKLOAD option to start with and experiment with the INSERTBUFF and DBCOMMIT options:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/69039/HTML/default/viewer.htm#p06u7eb5ienq5in1wq9injrz8vh5.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acreldb/69039/HTML/default/viewer.htm#p06u7eb5ienq5in1wq9injrz8vh5.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also try loading to a new temporary first as this should be the least problematic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2016 03:05:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-9-4-TS1M3-Loading-Sas-Dataset-to-MySQL-using-bulkload-is-not/m-p/275146#M54985</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-06-04T03:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sas 9.4 TS1M3 - Loading Sas Dataset to MySQL using bulkload is not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-9-4-TS1M3-Loading-Sas-Dataset-to-MySQL-using-bulkload-is-not/m-p/275150#M54988</link>
      <description>&lt;P&gt;Hi Sir,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Could you teach me how to&amp;nbsp;&lt;SPAN&gt;load to a new temporary first?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc append data=dp base=mysqllib.dp (dbcommit=1000 insertbuff=100000);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is very fast.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc append data=dp base=mysqllib.dp(bulkload=yes BL_METHOD=CLILOAD);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;--&amp;gt; this is very slow but bulkload is working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. How do I check the data in mysql is same as Sas dataset?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2016 03:52:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-9-4-TS1M3-Loading-Sas-Dataset-to-MySQL-using-bulkload-is-not/m-p/275150#M54988</guid>
      <dc:creator>TanQF</dc:creator>
      <dc:date>2016-06-04T03:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sas 9.4 TS1M3 - Loading Sas Dataset to MySQL using bulkload is not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-9-4-TS1M3-Loading-Sas-Dataset-to-MySQL-using-bulkload-is-not/m-p/275172#M54997</link>
      <description>For the bulk load part I think you need to discuss your error/warning messages and performance with your MySQL DBA.&lt;BR /&gt;&lt;BR /&gt;2. For quality assurance? Trust the logs written during load. Try to match samples. Full scale comparisons on large data sets are expensive and not feasible over time if you are building history records.</description>
      <pubDate>Sat, 04 Jun 2016 09:32:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-9-4-TS1M3-Loading-Sas-Dataset-to-MySQL-using-bulkload-is-not/m-p/275172#M54997</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-06-04T09:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sas 9.4 TS1M3 - Loading Sas Dataset to MySQL using bulkload is not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-9-4-TS1M3-Loading-Sas-Dataset-to-MySQL-using-bulkload-is-not/m-p/275409#M55068</link>
      <description>&lt;P&gt;Dear Linus,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am building my own database. Hence there is no IT department to discuss MySQL with.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am scratching my head with the previous comments about using temporary files. Certainly his suggestions on DBcommit and buffer helps overcome bulkload.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the suggestions on using samples to check.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2016 14:50:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-9-4-TS1M3-Loading-Sas-Dataset-to-MySQL-using-bulkload-is-not/m-p/275409#M55068</guid>
      <dc:creator>TanQF</dc:creator>
      <dc:date>2016-06-06T14:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sas 9.4 TS1M3 - Loading Sas Dataset to MySQL using bulkload is not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-9-4-TS1M3-Loading-Sas-Dataset-to-MySQL-using-bulkload-is-not/m-p/275446#M55076</link>
      <description>&lt;P&gt;First thing I will preface my comment with: I am not a MySql admin or use the program so specific details (options and parameters) I do not have on hand.&lt;/P&gt;
&lt;P&gt;A friend of my was recently working with SAS connected to MySql and they had some very poor performance issues with time of program running. After an amount of sleuthing they found out that there were apparently 3 data engines involved and the "default" installation picked one that optimizes for some other type of operation. When they switched to use a different MySql engine the process times went from 10 hours to 30 minutes for some SAS related operations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't say which to look for or where to find it, but it may be default MySql setting that is making things run slow.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2016 16:27:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-9-4-TS1M3-Loading-Sas-Dataset-to-MySQL-using-bulkload-is-not/m-p/275446#M55076</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-06-06T16:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sas 9.4 TS1M3 - Loading Sas Dataset to MySQL using bulkload is not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-9-4-TS1M3-Loading-Sas-Dataset-to-MySQL-using-bulkload-is-not/m-p/275509#M55088</link>
      <description>If you don't have a MySQL DBA, why use it? Any specific requirement, from whom ?&lt;BR /&gt;&lt;BR /&gt;Keep the data in SAS if you want performance...</description>
      <pubDate>Mon, 06 Jun 2016 19:50:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-9-4-TS1M3-Loading-Sas-Dataset-to-MySQL-using-bulkload-is-not/m-p/275509#M55088</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-06-06T19:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sas 9.4 TS1M3 - Loading Sas Dataset to MySQL using bulkload is not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-9-4-TS1M3-Loading-Sas-Dataset-to-MySQL-using-bulkload-is-not/m-p/275514#M55090</link>
      <description>&lt;P&gt;Hi Linus&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Sas dataset has a limitation. If a dataset is more than 5G, it becomes very slow in reading and writing to it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. I would be using other programming languages to process the data because I am looking at their toolboxes. Hence, ideally, I would need a database to store the data and retrieve it from sas dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi&amp;nbsp;Ballard&lt;/P&gt;&lt;P&gt;I will take note of engines when it becomes too slow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just that I read bulkload is very good but I cant use it. Its disappointing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your great advices&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2016 20:13:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-9-4-TS1M3-Loading-Sas-Dataset-to-MySQL-using-bulkload-is-not/m-p/275514#M55090</guid>
      <dc:creator>TanQF</dc:creator>
      <dc:date>2016-06-06T20:13:20Z</dc:date>
    </item>
  </channel>
</rss>

