Skip to main content

PCPERFORM

Issues an operating system command and returns to MVBasic.

Synopsis

PCPERFORM cmdstr [CAPTURING {var | NULL}]

Arguments

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.

Description

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 tab