Process Permanent Files (PPFs)
SYS$COMMAND (No UN*X equivalent)
When interactive, points to your terminal, unless you redirect it:$ DEFINE SYS$COMMAND filespec$ DEFINE/USER SYS$COMMAND filespec
In batch, points to the current procedure unless you redirect it.
Notes:
The SYS$COMMAND stream has no UN*X equivalent.
For an interactive process, SYS$COMMAND always points to your terminal, unless you explicitly redirect it. For a batch job, SYS$COMMAND always points to the current procedure.
SYS$COMMAND can be redirected using DEFINE (or ASSIGN). If DEFINEd in /USER mode, it will be DEASSIGNed when a program is run and that program terminates. If DEFINEd in /SUPERVISOR mode (the default if no access mode is specified in the DEFINE (or ASSIGN) command) or an “inner” (more privileged) mode, it remains in effect until explicitly DEASSIGNed.