<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: odbc as/400 connect to mysql</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/odbc-as400-connect-to-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/odbc-as400-connect-to-mysql/</link>
	<description></description>
	<lastBuildDate>Wed, 19 Jun 2013 19:19:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: common pool resources Blog &#187; Blog Archive &#187; LINQ to SQL and Connection Pooling</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/odbc-as400-connect-to-mysql/#comment-63375</link>
		<dc:creator>common pool resources Blog &#187; Blog Archive &#187; LINQ to SQL and Connection Pooling</dc:creator>
		<pubDate>Sat, 09 May 2009 12:43:40 +0000</pubDate>
		<guid isPermaLink="false">#comment-63375</guid>
		<description><![CDATA[[...] odbc as/400 connect to mysql [...]]]></description>
		<content:encoded><![CDATA[<p>[...] odbc as/400 connect to mysql [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mcl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/odbc-as400-connect-to-mysql/#comment-63169</link>
		<dc:creator>mcl</dc:creator>
		<pubDate>Tue, 05 May 2009 19:38:28 +0000</pubDate>
		<guid isPermaLink="false">#comment-63169</guid>
		<description><![CDATA[Cheryl,

Take a look &lt;a href=&quot;http://itknowledgeexchange.techtarget.com/itanswers/rretrieving-data-from-as400-tables-with-php/&quot;&gt;here&lt;/a&gt; - for information on an ODBC connection..

But forget that for now. There are probably a bunch of ways to get the data from point a to b.. You could try this one..

Depending on the size of the tables and the complexity of the joins it may be worthwhile building the resulting table on the AS/400 through a scheduled job and then just pulling down that table. 

Assuming you have the result table on the AS/400, use iSeries Access file transfer to download the file from the AS/400 to your Windows box with PHP on it.  You can set up the transfer manually, save the transfer definition and then set up a macro to run it using whatever scheduling mechanism you have for Windows. iSeries access will let you transfer the file as CSV or you could optionally build the the file on the AS/400 with whatever seperator you want and transfer it as TEXT. 

Once you have the file on the windows box you should be able to handle the data.

There is an example &lt;a href=&quot;http://www.weberdev.com/get_example-4375.html&quot;&gt;here&lt;/a&gt; that looks pretty simple that will give you an idea of what to do for that.

Have you considered running PHP on your AS/400? (Get rid of that Windows box!!) Zend core comes with V6R1..  Just sayin...

Regards
Mike]]></description>
		<content:encoded><![CDATA[<p>Cheryl,</p>
<p>Take a look <a href="http://itknowledgeexchange.techtarget.com/itanswers/rretrieving-data-from-as400-tables-with-php/">here</a> &#8211; for information on an ODBC connection..</p>
<p>But forget that for now. There are probably a bunch of ways to get the data from point a to b.. You could try this one..</p>
<p>Depending on the size of the tables and the complexity of the joins it may be worthwhile building the resulting table on the AS/400 through a scheduled job and then just pulling down that table. </p>
<p>Assuming you have the result table on the AS/400, use iSeries Access file transfer to download the file from the AS/400 to your Windows box with PHP on it.  You can set up the transfer manually, save the transfer definition and then set up a macro to run it using whatever scheduling mechanism you have for Windows. iSeries access will let you transfer the file as CSV or you could optionally build the the file on the AS/400 with whatever seperator you want and transfer it as TEXT. </p>
<p>Once you have the file on the windows box you should be able to handle the data.</p>
<p>There is an example <a href="http://www.weberdev.com/get_example-4375.html">here</a> that looks pretty simple that will give you an idea of what to do for that.</p>
<p>Have you considered running PHP on your AS/400? (Get rid of that Windows box!!) Zend core comes with V6R1..  Just sayin&#8230;</p>
<p>Regards<br />
Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ronkoontz</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/odbc-as400-connect-to-mysql/#comment-63146</link>
		<dc:creator>ronkoontz</dc:creator>
		<pubDate>Tue, 05 May 2009 15:23:35 +0000</pubDate>
		<guid isPermaLink="false">#comment-63146</guid>
		<description><![CDATA[Just wondered if you can use the VB example and convert it to PHP or call VB code within PHP.  I&#039;m not a PHP guy so I have no clue. I&#039;m kind of curiouse though. They you can just update it when you want from the 400 and not have lots of extra code to maintain later.  Some day I might need to do a PHP app...]]></description>
		<content:encoded><![CDATA[<p>Just wondered if you can use the VB example and convert it to PHP or call VB code within PHP.  I&#8217;m not a PHP guy so I have no clue. I&#8217;m kind of curiouse though. They you can just update it when you want from the 400 and not have lots of extra code to maintain later.  Some day I might need to do a PHP app&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sunnyday</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/odbc-as400-connect-to-mysql/#comment-63104</link>
		<dc:creator>sunnyday</dc:creator>
		<pubDate>Mon, 04 May 2009 19:22:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-63104</guid>
		<description><![CDATA[Mike, 
I will need the data to update quanities at least once a day.  It will take multiple files so I will need to join them to get the data I need.   I understand how to write the query and create the datafile but not sure on the php code to import to mysql.

If you could at least give me a good idea of where to start searching I would appreciate it.  I tried searching for information to connect the as/400 somehow so the data could be updated automatically but my searching led me to several dead ends.

Thanks Cheryl]]></description>
		<content:encoded><![CDATA[<p>Mike,<br />
I will need the data to update quanities at least once a day.  It will take multiple files so I will need to join them to get the data I need.   I understand how to write the query and create the datafile but not sure on the php code to import to mysql.</p>
<p>If you could at least give me a good idea of where to start searching I would appreciate it.  I tried searching for information to connect the as/400 somehow so the data could be updated automatically but my searching led me to several dead ends.</p>
<p>Thanks Cheryl</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mcl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/odbc-as400-connect-to-mysql/#comment-62956</link>
		<dc:creator>mcl</dc:creator>
		<pubDate>Wed, 29 Apr 2009 19:06:34 +0000</pubDate>
		<guid isPermaLink="false">#comment-62956</guid>
		<description><![CDATA[Cheryl,

So, how often do you need the data? And, are you pulling down data from one AS/400 file or from multiple files using a join?

In WRKQRY, you can create a data file by specifying a database file in the output type selection. You will of course need the proper authority to create the file.

If you don&#039;t want to set up an ODBC connection, there are alternatives. For example, you could use the iSeries Access data transfer to download a file. It allows a SQL selection and will format the downloaded file to a CSV format on a windows box. You can then write a PHP program to read that file and import it into your MySQL database.  All of that could be pretty much automated..

For a one-time shot, you could download the file using iSeries Access data transfer as a CSV file and then import the CSV file into your MySQL database using the &quot;import&quot; function in PHPMyAdmin. 

For help on the import, you could Google &quot;Import CSV file using PHPMyAdmin&quot; - there are a lot of references.

PHPMyAdmin is a tool to manually maintain a MySQL database - if you are looking for some way to automate this you should probably be looking at setting up an ODBC connection.

Regards
Mike]]></description>
		<content:encoded><![CDATA[<p>Cheryl,</p>
<p>So, how often do you need the data? And, are you pulling down data from one AS/400 file or from multiple files using a join?</p>
<p>In WRKQRY, you can create a data file by specifying a database file in the output type selection. You will of course need the proper authority to create the file.</p>
<p>If you don&#8217;t want to set up an ODBC connection, there are alternatives. For example, you could use the iSeries Access data transfer to download a file. It allows a SQL selection and will format the downloaded file to a CSV format on a windows box. You can then write a PHP program to read that file and import it into your MySQL database.  All of that could be pretty much automated..</p>
<p>For a one-time shot, you could download the file using iSeries Access data transfer as a CSV file and then import the CSV file into your MySQL database using the &#8220;import&#8221; function in PHPMyAdmin. </p>
<p>For help on the import, you could Google &#8220;Import CSV file using PHPMyAdmin&#8221; &#8211; there are a lot of references.</p>
<p>PHPMyAdmin is a tool to manually maintain a MySQL database &#8211; if you are looking for some way to automate this you should probably be looking at setting up an ODBC connection.</p>
<p>Regards<br />
Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ronkoontz</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/odbc-as400-connect-to-mysql/#comment-62926</link>
		<dc:creator>ronkoontz</dc:creator>
		<pubDate>Wed, 29 Apr 2009 13:23:25 +0000</pubDate>
		<guid isPermaLink="false">#comment-62926</guid>
		<description><![CDATA[Oops.. you were talking PHP.. I&#039;m sure you can convert the code I just poseted to PHP. Or BIND it in your PHP code.  I really would avoid putting the data in mysql if its already on the 400. It only causes issues down the road when something goes wrong. Its harder to debug.  At least the data you are looking for is on the 400.  Sorry.

Thanks
Ron]]></description>
		<content:encoded><![CDATA[<p>Oops.. you were talking PHP.. I&#8217;m sure you can convert the code I just poseted to PHP. Or BIND it in your PHP code.  I really would avoid putting the data in mysql if its already on the 400. It only causes issues down the road when something goes wrong. Its harder to debug.  At least the data you are looking for is on the 400.  Sorry.</p>
<p>Thanks<br />
Ron</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ronkoontz</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/odbc-as400-connect-to-mysql/#comment-62924</link>
		<dc:creator>ronkoontz</dc:creator>
		<pubDate>Wed, 29 Apr 2009 13:20:10 +0000</pubDate>
		<guid isPermaLink="false">#comment-62924</guid>
		<description><![CDATA[Hree is an example in VB I did just to prove you can get the data from the 400. I did this about 2 month ago for a friend of mine. You will need to add some authentication to the 400. Like user name and password to the connection screen. It currently just pops up the default IE user name and password box when trying to open the database on the 400.

Protected Sub btnget_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnget.Click
        Dim iConn As New IBM.Data.DB2.iSeries.iDB2Connection()
        iConn.ConnectionString = &quot;Data Source=10.1.1.1;&quot;
        Dim OrderIn As String
        OrderIn = txtOrder.Text.ToString()
        Dim iCmd As New IBM.Data.DB2.iSeries.iDB2Command(&quot;SELECT your fields here FROM YOUR LIBRAY.YOUR FILE WHERE ORDER =&quot; + ORDERIn)
        iCmd.Connection = iConn
        Dim iDA As New IBM.Data.DB2.iSeries.iDB2DataAdapter(iCmd)
        Dim lds As New Data.DataSet()
        iDA.Fill(lds)
        Try
            iConn.Open()
            GridView1.DataSource = lds
            GridView1.DataBind()
        Catch ex As IBM.Data.DB2.iSeries.iDB2Exception
            btnget.Text = &quot;ERROR&quot;
        Finally
            iConn.Close()
        End Try

    End Sub]]></description>
		<content:encoded><![CDATA[<p>Hree is an example in VB I did just to prove you can get the data from the 400. I did this about 2 month ago for a friend of mine. You will need to add some authentication to the 400. Like user name and password to the connection screen. It currently just pops up the default IE user name and password box when trying to open the database on the 400.</p>
<p>Protected Sub btnget_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnget.Click<br />
        Dim iConn As New IBM.Data.DB2.iSeries.iDB2Connection()<br />
        iConn.ConnectionString = &#8220;Data Source=10.1.1.1;&#8221;<br />
        Dim OrderIn As String<br />
        OrderIn = txtOrder.Text.ToString()<br />
        Dim iCmd As New IBM.Data.DB2.iSeries.iDB2Command(&#8220;SELECT your fields here FROM YOUR LIBRAY.YOUR FILE WHERE ORDER =&#8221; + ORDERIn)<br />
        iCmd.Connection = iConn<br />
        Dim iDA As New IBM.Data.DB2.iSeries.iDB2DataAdapter(iCmd)<br />
        Dim lds As New Data.DataSet()<br />
        iDA.Fill(lds)<br />
        Try<br />
            iConn.Open()<br />
            GridView1.DataSource = lds<br />
            GridView1.DataBind()<br />
        Catch ex As IBM.Data.DB2.iSeries.iDB2Exception<br />
            btnget.Text = &#8220;ERROR&#8221;<br />
        Finally<br />
            iConn.Close()<br />
        End Try</p>
<p>    End Sub</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sunnyday</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/odbc-as400-connect-to-mysql/#comment-62872</link>
		<dc:creator>sunnyday</dc:creator>
		<pubDate>Tue, 28 Apr 2009 17:13:56 +0000</pubDate>
		<guid isPermaLink="false">#comment-62872</guid>
		<description><![CDATA[Mysql is running on windows.    The data is on the as/400 and the only way I know how to get the data is writing a query using wrkqry and I do know how to to create a data file.   The problem is I am creating a shopping cart that uses phpmyadmin and mysql and I need the data from the as/400 in that database.  So I guess really my question is how to get the data into phpmyadmin.  

Thanks
Cheryl]]></description>
		<content:encoded><![CDATA[<p>Mysql is running on windows.    The data is on the as/400 and the only way I know how to get the data is writing a query using wrkqry and I do know how to to create a data file.   The problem is I am creating a shopping cart that uses phpmyadmin and mysql and I need the data from the as/400 in that database.  So I guess really my question is how to get the data into phpmyadmin.  </p>
<p>Thanks<br />
Cheryl</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mcl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/odbc-as400-connect-to-mysql/#comment-62870</link>
		<dc:creator>mcl</dc:creator>
		<pubDate>Tue, 28 Apr 2009 16:33:46 +0000</pubDate>
		<guid isPermaLink="false">#comment-62870</guid>
		<description><![CDATA[Oh, gee, I just re-read the post and you specified ODBC.. 

OK, is your mySQL running on Windows or Linux? Have you tried searching on Google? There are lots of posts on this - a bunch of people have done it before.

Regards&#039;
Mike]]></description>
		<content:encoded><![CDATA[<p>Oh, gee, I just re-read the post and you specified ODBC.. </p>
<p>OK, is your mySQL running on Windows or Linux? Have you tried searching on Google? There are lots of posts on this &#8211; a bunch of people have done it before.</p>
<p>Regards&#8217;<br />
Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mcl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/odbc-as400-connect-to-mysql/#comment-62869</link>
		<dc:creator>mcl</dc:creator>
		<pubDate>Tue, 28 Apr 2009 16:25:10 +0000</pubDate>
		<guid isPermaLink="false">#comment-62869</guid>
		<description><![CDATA[Well, why is a question we all ask, but really in this case &quot;what&quot; and &quot;how&quot; are better questions.

So what is your data source (&quot;traditional&quot; files in a library in QSYS, data from schemas, something in the IFS?)

How are you looking to import the data to MySQL? Are you looking at ODBC or something like a delimited file?

Regards
Mike]]></description>
		<content:encoded><![CDATA[<p>Well, why is a question we all ask, but really in this case &#8220;what&#8221; and &#8220;how&#8221; are better questions.</p>
<p>So what is your data source (&#8220;traditional&#8221; files in a library in QSYS, data from schemas, something in the IFS?)</p>
<p>How are you looking to import the data to MySQL? Are you looking at ODBC or something like a delimited file?</p>
<p>Regards<br />
Mike</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/8 queries in 0.012 seconds using memcached
Object Caching 395/396 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-19 23:28:35 -->