SYSCMD (Pass an iSeries CL Command to Your Local iSeries)

FTP client subcommand

To run a control language (CL) command on your local iSeries™ without leaving the FTP environment, use the SYSCMD FTP client subcommand in this format:

SYSCmd commandline

commandline
An iSeries CL command. You can precede the command name with a ? to get the prompt for the CL command. For example, if you enter:
 SYSCMD ? SNDBRKMSG

you get the display for the Send Break Message (SNDBRKMSG) command.

If you want to see low level messages that result from your CL command, or if you want to enter multiple CL commands before returning to the FTP environment, use the iSeries CALL QCMD command.

For example, to get to an iSeries Command Entry display, enter this:

SYSCMD CALL QCMD

From the Command Entry display, you can then call your application programs or enter CL commands. At the completion of your application program or the CL command, you return to the Command Entry display. From there you can display messages, start additional work on the system, or press F3 (Exit) or F12 (Cancel) to return to FTP.

You can enter iSeries CL commands when you press F21 (CL command line) from the main FTP display. The server does not allow the F21 key when an exit program it is an addition to the FTP Client Request Validation exit point.

Notes:
  1. Most server systems have a time-out period that ends the session if no activity occurs within a specific time period. If the command runs for longer than the time-out period, the server ends the connection with the client.
  2. The iSeries server supports the exclamation mark (!) as a synonym for the SYSCMD subcommand.
  3. The SYSCMD subcommand passes to the iSeries as a CL command exactly what the user enters.
Related reference
File Transfer Protocol client syntax conventions