DCL has access to the Process Permanent Files or I/O streams associated with a process. Some of these have parallels in the UN*X and DOS/Windows worlds.
SYS$INPUT is equivalent to the UN*X standard input (stdin) stream.
SYS$OUTPUT is equivalent to the UN*X standard output (stdout) stream.
SYS$ERROR is equivalent to the UN*X standard error (stderr) stream.