|
Home > Archive > Unix questions > September 2006 > rexx to perl
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| dalu.gelu 2006-08-28, 7:31 am |
| Hi,
in my current project is in win 32, DB2 7.2 and rexx
and now it need to be migrating /porting on AIX, PERL with DB2 some new
version, which not finalized(having some added feature)
and most scrips covered databse related features.
i ve find out that using dbi, we can do.
but in my test server its not working.
pls help me on follows.
1 what over all needed for migrating above i.e steps needs to
follow up.
2 where can i find the easier online solutions for PERL to
connect db2, sql querries, debug procedure.
| |
| zentara 2006-08-28, 1:42 pm |
| On 28 Aug 2006 05:20:59 -0700, "dalu.gelu" <dalu.gelu@gmail.com> wrote:
>Hi,
>in my current project is in win 32, DB2 7.2 and rexx
>and now it need to be migrating /porting on AIX, PERL with DB2 some new
>version, which not finalized(having some added feature)
>
>and most scrips covered databse related features.
>i ve find out that using dbi, we can do.
>but in my test server its not working.
>pls help me on follows.
>
>1 what over all needed for migrating above i.e steps needs to
>follow up.
>
>
>2 where can i find the easier online solutions for PERL to
>connect db2, sql querries, debug procedure.
Ask this at http://perlmonks.org
The question is huge, but you basically want the DBI module.
--
I'm not really a human, but I play one on earth.
http://zentara.net/japh.html
| |
| dalu.gelu 2006-08-28, 1:42 pm |
| Hi Zentara,
i got u r point, which really means a lot.
but i need some brief idea (steps involbed) for migrate a rexx script
to perl.
if u can point what the steps needed to follow up,
i ll be greateful to u.
along with this.
also i need the help on DBI module i.e mark some simple online helps if
any?????
thanks,
prangya
| |
| zentara 2006-08-29, 1:35 pm |
| On 28 Aug 2006 06:17:31 -0700, "dalu.gelu" <dalu.gelu@gmail.com> wrote:
>Hi Zentara,
> i got u r point, which really means a lot.
>but i need some brief idea (steps involbed) for migrate a rexx script
>to perl.
>if u can point what the steps needed to follow up,
>i ll be greateful to u.
>
>along with this.
>also i need the help on DBI module i.e mark some simple online helps if
>any?????
>thanks,
>prangya
http://perlmonks.org is your best source of expert PERL advice.
For a starter on DBI, see this:
http://perlmonks.org?node_id=282975
Basically check out the tutorial section there. They also
have a searchbox, and you can type in "DBI" and get
much to read.
Otherwise, just google for "DBI Perl"
It maybe useful to google for "Rexx Perl".
When you are looking for actual code examples, search
http://groups.google.com with appropriate keywords.
Also check out the Rexx modules on CPAN, which is where
all the PERL modules are archived.
http://search.cpan.org/search?query=Rexx&mode=all
Beyond that, I cannot help you anymore.
I was tring to learn Rexx back in the old OS/2 days, but
then came linux and PERL came along, and they satisfied
me.
--
I'm not really a human, but I play one on earth.
http://zentara.net/japh.html
| |
|
| In <1156767659.417677.64070@h48g2000cwc.googlegroups.com>,
"dalu.gelu" <dalu.gelu@gmail.com> mentions:
>Hi,
>in my current project is in win 32, DB2 7.2 and rexx
>and now it need to be migrating /porting on AIX, PERL with DB2 some new
>version, which not finalized(having some added feature)
It's been years since I've worked with DB2, but I do recall it was
fairly complex. Needed to install the client and create some sort
of mapped node for DB2 to the actual real database.
I'd suggest messing about with something like PostgreSQL or mysql
at first, get that working and see how the process works. (it's a
lot easier)
After you do a "hello world" with either of these databases, you'll be better
equipped to narrow down whether or not the problem is PERL centric or DB2
centric. I'm guessing it's DB2-centric, the DBD driver is a bit odd,
you connect to the node instead of a host, which may be throwing you off
track? (it did me at first)
>2 where can i find the easier online solutions for PERL to
>connect db2, sql querries, debug procedure.
It's tricky.. you probably want to ask the folks who have *current*
experience with DB2. My experience was from years ago, and as I recall,
there were a few glitches with the PERL DB2 driver. (they maybe ironed
those out by now?) if you're trying to run the thing under apache, make
sure the general idea works via a plain old command line first.
DBI + Apache + mod_perl had some interesting "properties" and you'd do good
to verify it works outside of apache first.
None of this is really unix-centric except maybe the procedure for installing
the DB2 client on the machine. (you'll need to make sure you've got 'ksh'
available, but that may have been a redhat thing)
Jamie
--
http://www.geniegate.com Custom web programming
guhzo_42@lnubb.pbz (rot13) User Management Solutions
|
|
|
|
|