Foreign Command

From VSI OpenVMS Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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