c2d has asked for the wisdom of the Perl Monks concerning the following question:

I am attempting to run some db2 client sql thru to a db2 system on a mainframe. I have used open2 before so no problem there. What I don't know is how to create the db2 command environment from inside of perl????!!! On a unix box I would just execute the necessary .profile statements. However, I have not found a way to do the equalivalent on Windows!!!! I am using the most recent release of ActiveState's Perl, db2 client 7.1 enterprise on Win2k.
  • Comment on How do I invoke the db2 command process on Windows??

Replies are listed 'Best First'.
Re: How do I invoke the db2 command process on Windows??
by DamnDirtyApe (Curate) on Jul 13, 2002 at 20:23 UTC
Re: How do I invoke the db2 command process on Windows??
by Anonymous Monk on Jul 14, 2002 at 01:40 UTC
    While you really want to use DBI, you can just assign to the %ENV hash within Perl to set environment variables for your kids.