Difference between revisions of "Foreign Command"

From VSI OpenVMS Wiki
Jump to: navigation, search
(Created page with "A '''foreign command''' is a symbol that represents the file specification of a non-DCL image and can be used to invoke that image. The dollar sign in front of the...")
 
(No difference)

Latest revision as of 11:54, 18 July 2019

A foreign command is a symbol that represents the file specification of a non-DCL image and can be used to invoke that image. The dollar sign in front of the file specification is required since it implies a RUN command.

$ PRINTALL :==   $[ACCOUNTS]PRINTALL
 

For the image file specification, the default device and directory name is SYS$SYSTEM, the default file type is .EXE, and the default file version number is the highest version, so the foreign command above will run PRINTALL.EXE; located in SYS$SYSDEVICE:[ACCOUNTS].

See also