Start PC Command (STRPCCMD)

Where allowed to run:
  • Interactive job (*INTERACT)
  • Interactive program (*IPGM)
  • Using QCMDEXEC, QCAEXEC, or QCAPCMD API (*EXEC)
Threadsafe: No
Parameters
Examples
Error messages

The Start PC Command (STRPCCMD) command allows you to run a single application, a DOS command, or an OS/2 command on an attached personal computer.

Note: Do not precede an entry with an asterisk unless that entry is a "special value" that is shown (on the display itself or in the help information) with an asterisk.

Error messages for STRPCCMD

None

Top

Parameters

Keyword Description Choices Notes
PCCMD PC command Character value Required, Positional 1
PAUSE Pause *YES, *NO Optional
Top

PC command (PCCMD)

Specifies the valid DOS command, OS/2 command, or personal computer application you want to run. If you are using the STRPCCMD command on a server command line and the command or application name contains special characters, you must enclose the command in apostrophes. Special characters include blanks, commas, and colons.

If you select the option to start a PC command from the iSeries Access Organizer menu, you do not need to enclose the command in apostrophes unless it ends in a colon. The ending colon is ignored unless the entire PC command is enclosed in apostrophes.

This is a required parameter.

Top

Pause (PAUSE)

Specifies whether the computer should pause after running a command.

The possible values are:

*YES
The computer will pause after running the command before returning to the iSeries Access Organizer menu.
*NO
The computer returns immediately to the iSeries Access Organizer menu after the command runs.
Top

Examples

None
Top

Error messages

None

Top