Download RMTCALL API source:

There are many "run remote command" type of utilities for the AS/400, but none of them let you pass data back from the called program's parameters.

This utility is intended to fill that void. It furthermore can be used to assist with the chore of writing sockets code to act as a server by doing all the work of accepting new connections, splitting off to a new job, and checking the user's authority.

RMTCALL IS NOT FINISHED. This source is here for developers who'd like to help finish it. Do not expect it to be usable at this time!


 
System Requirements:

  • An AS/400 (iSeries/400) running OS/400 version V4R3??? or later.
  • Your AS/400 needs to be running TCP/IP.
  • You need an ILE RPG/400 compiler.

 
Instructions

  • Log onto your AS/400, and create a save file to store the store the distribution in. To do this, type:
    • CRTSAVF QGPL/RMTCALL

  • Download my RMTCALL distribution and save it to your PC -- or to your AS/400 (directly into the SAVF.)

  • If you sent it to your PC, FTP the distribution from your PC to your AS/400. To do this:
    • Open an MS-DOS Prompt.
    • Type: cd \directory\where\you\put\rmtcall.savf
    • Type: ftp your-as400-name-here
    • Type: (enter your username & password when asked)
    • Type: binary
    • Type: put rmtcall.savf QGPL/RMTCALL
    • Type: quit

  • Back on the AS/400, type:
    • DLTLIB RMTCALL (ignore errors if library doesnt exist)
    • RSTLIB SAVLIB(RMTCALL) DEV(*SAVF) SAVF(QGPL/RMTCALL)
    • CHGCURLIB RMTCALL
    • STRSEU RMTCALL/QRPGLESRC CONFIG_H (edit configuration as needed)
    • CRTCLPGM RMTCALL/BUILDME SRCFILE(RMTCALL/QCLSRC)
    • CALL BUILDME

  • Once that has finished building, launch the server with:
      SBMJOB CMD(CALL LISTENR4) JOBQ(xxx) JOB(RMTCALL)

Client for FreeBSD or Linux:

  • Download the FreeBSD/Linux client distribution.

  • On your FreeBSD/Linux box, type:
    • tar xvzf /path/to/rmtcall.tar.gz
    • cd rmtcall
    • Bring up testpgm.c in your favorite editor, and change the name of your AS/400, userid and password in the "rmtcall_open" statement.
    • make
    • ./testpgm (to try it out)

Support:
First, please remember that RMTCALL IS NOT FINISHED. This is only here for developers who'd like to help with the project. Please do not expect end-user support!

If you're having problems or would like to help with the RMTCALL project, please join the RMTCALL mailing list. This is where I hang out, and is where the other experts on this tool hang out, as well. Once you're subscribed, you can ask your questions to the list.

Subscribe here: RMTCALL List SignUp