Hello, I can do this in java, but want to use Rails. How can I connect to our AS/400? Thanks Frank _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
On 12/21/05, Frank <farocco-H+0wwilmMs3R7s880joybQ@public.gmane.org> wrote:> > Hello, > > I can do this in java, but want to use Rails. > How can I connect to our AS/400? >Do you mean with TN5250, or some other kind of protocol, such as directly to a database?
Frank, the only way I know of connecting to an AS/400 db is via ODBC with languages like PHP or Ruby. unfortunately, there is no generic ODBC adapter for Rails. You might be able to create an adapter much like the sqlserver adapter, which utilizes ODBC, i believe. you CAN get ruby to talk to an AS/400. on linux, you''ll need IBM iSeries Access driver for linux unixODBC Ruby ODBC Ruby DBI http://wiki.rubyonrails.com/rails/pages/ODBC http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/153403 On 12/21/05, Frank <farocco-H+0wwilmMs3R7s880joybQ@public.gmane.org> wrote:> > Hello, > > I can do this in java, but want to use Rails. > How can I connect to our AS/400? > > Thanks > > Frank > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
ok, I am on Windows. I just wanted to do simple queries to our AS/400 database. Frank ----- Original Message ----- From: Chris Hall To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Sent: Wednesday, December 21, 2005 1:39 PM Subject: Re: [Rails] How can I taalk to our AS/400? Frank, the only way I know of connecting to an AS/400 db is via ODBC with languages like PHP or Ruby. unfortunately, there is no generic ODBC adapter for Rails. You might be able to create an adapter much like the sqlserver adapter, which utilizes ODBC, i believe. you CAN get ruby to talk to an AS/400. on linux, you''ll need IBM iSeries Access driver for linux unixODBC Ruby ODBC Ruby DBI http://wiki.rubyonrails.com/rails/pages/ODBC http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/153403 On 12/21/05, Frank <farocco-H+0wwilmMs3R7s880joybQ@public.gmane.org> wrote: Hello, I can do this in java, but want to use Rails. How can I connect to our AS/400? Thanks Frank _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails ------------------------------------------------------------------------------ _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
then you''ll want the iSeries Access for Windows driver....but you''re still stuck with the fact there is no generic ODBC adapter for rails On 12/21/05, Frank <farocco-H+0wwilmMs3R7s880joybQ@public.gmane.org> wrote:> > ok, I am on Windows. > I just wanted to do simple queries to our AS/400 database. > > Frank > > ----- Original Message ----- > *From:* Chris Hall <christopher.k.hall-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > *To:* rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > *Sent:* Wednesday, December 21, 2005 1:39 PM > *Subject:* Re: [Rails] How can I taalk to our AS/400? > > Frank, > > the only way I know of connecting to an AS/400 db is via ODBC with > languages like PHP or Ruby. unfortunately, there is no generic ODBC adapter > for Rails. You might be able to create an adapter much like the sqlserver > adapter, which utilizes ODBC, i believe. > > you CAN get ruby to talk to an AS/400. on linux, you''ll need > > IBM iSeries Access driver for linux > unixODBC > Ruby ODBC > Ruby DBI > > http://wiki.rubyonrails.com/rails/pages/ODBC > http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/153403 > > On 12/21/05, Frank <farocco-H+0wwilmMs3R7s880joybQ@public.gmane.org> wrote: > > > > Hello, > > > > I can do this in java, but want to use Rails. > > How can I connect to our AS/400? > > > > Thanks > > > > Frank > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > ------------------------------ > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails