Skip to main content

This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRISOpens in a new window, see the InterSystems IRIS Migration Guide and Migrating to InterSystems IRIS, both available on the WRC Distributions pageOpens in a new window (login required).


Issues an operating system command and returns to MVBasic.




cmdstr An operating system command to be issued to the operating system shell (command prompt). Specified as a variable or a quoted string. This string cannot exceed 248 characters in length.
CAPTURING var Optional — a variable used to receive the operating system's response. You can specify a local variable name or the NULL keyword.


The PCPERFORM statement is used to issue an operating system shell command from within Caché MVBasic. If you specify a CAPTURING var clause, the response from the operating system is returned as the value of var. CAPTURING NULL discards the response from the operating system.

Invoking Other Shells

You can use the EXECUTE, PERFORM, and CHAIN commands to issue MultiValue commands from within Caché MVBasic.

You can use the $XECUTE command to issue an ObjectScript command from within Caché MVBasic.

Invoking Operating System Commands from the MV Shell

You can use the DOS or SH MultiValue command line commands to issue an operating system shell command from the MultiValue Shell. For further details refer to the Caché MultiValue Commands Reference.

See Also

FeedbackOpens in a new window