SYSCMD (Pass a CL Command to Your Local System)

 

The SYSCMD i5/OS® FTP client subcommand enables you to run a control language (CL) command on your local system without leaving the FTP environment.

 

FTP client subcommand

SYSCmd commandline

commandline

A 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 i5/OS CALL QCMD command.

To get to a Command Entry display, enter the following example:

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 CL commands when you press F21 (CL command line) from the main FTP display. The FTP server does not allow the use of the F21 key when an exit program is an addition to the FTP client request validation exit point.

Notes:

  1. Most FTP servers have a timeout period that ends the session if no activity occurs within a specific time period. If the command runs for longer than the timeout period, the FTP server ends the connection with the client.

  2. The i5/OS operating system supports the exclamation mark (!) as a synonym for the SYSCMD subcommand.

  3. The SYSCMD subcommand passes to the system, as a CL command, exactly what the user enters.