STRPCCMD

From MidrangeWiki
Revision as of 22:04, 3 January 2008 by Starbuck5250 (talk | contribs) (initial entry)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

STRPCCMD is a component of iSeries Access that allows a program running in i5/os to execute a command on the attached PC; that is, the PC associated with the job running on i5/os.

Here are some examples of using STRPCCMD in a CL program taken from the Web400-L list:

{{{1}}}
STRPCCMD PCCMD(&CMD) PAUSE(*NO)

The caret before the ampersand in parameter 2 is an escape character. Without it, CMD.EXE would think you were trying to run two commands. This will open up the black DOS window momentarily, which may be annoying. A way to run a PC command without doing that is:

{{{1}}}
STRPCCMD PCCMD(&CMD) PAUSE(*NO)