in reply to I-series commands from Windows script

If you are lucky and have the IBM Personal Communications program installed (a quite good 3270 emulator), you can automate that using Win32::OLE. It has the "HLLAPI" which allows you to wait until certain text appears on-screen for example.

If you don't have it but still have 3270-access, maybe you can use s3270 and/or x3270, two other 3270 emulators.

  • Comment on Re: I-series commands from Windows script

Replies are listed 'Best First'.
Re^2: I-series commands from Windows script
by petecm99 (Pilgrim) on Jun 22, 2010 at 15:32 UTC
    Thanks Corion,

    It looks a bit involved, but I'm still slogging through it - I just got the Sourceforge version of the 3270. Even if I get it to work through OLE, not sure how I'd go about making it into a nicely wrapped standalone app. Perhaps I can just bind the 3270 emulator into the perl exe...wish there was an easier way!

    petecm99

      What I really like about the IBM 3270 emulator is that it is interactive so you get to watch where your script gets stuck and you can also easily inspect what your script sees when it makes decisions.

      I have a nicely wrapped 3270 library, but I developed it for $work so I'm not really sure that I can release it onto the CPAN even though the "main" 3270 application just got decommissioned. But the successor application also got 3270 access because deep down it still runs on an IBM host+database, so the framework will still stay in place, just in case the fancy new web interface (or XML interface) doesn't work out...