×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

AS/400 program

AS/400 program

AS/400 program

(OP)
Does anyone know if there is a way to call an AS/400 program in a Perl script?

RE: AS/400 program

yes -- three ways, would you believe..... (one's a cheat)

1 -- there is actually a version of perl for the AS/400, so I'm told anyway. There's no point in looking for it as I would *never* be allowed to install it!

2 -- Perl::ODBC -- By using the Perl ODBC module you could connect to the AS/400 and use SQL to manipulate data.

3 -- (the cheat) connect using ftp and issue the commands through that.

Any of those help?

Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.

RE: AS/400 program

(OP)
I am already connecting to the 400 with ftp so that would be the way to go. But how can I tell a program to run once I'm connected?

RE: AS/400 program

An ftp command, 'exec' as I remember. You might have to get your AS/400 admin to allow you to run commands from FTP.

Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.

RE: AS/400 program

(OP)
I know the command to call the program from a dos prompt:
rmtcmd call(library/program) //systemname /z

Is there a way I could just call a batch file from the perl script? (I'm not having any luck finding out how to properly put this command in the script itself)

Thanks,
Tim

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close