Difference between revisions of "SYS$COMMAND"

From VSI OpenVMS Wiki
Jump to: navigation, search
(Created page with "'''SYS$COMMAND''' is a process-permanent logical name that refers to the source of user input. =Defaults= When a user logs in interactivel...")
 
(take care)
 
Line 6: Line 6:
 
Although you can redefine SYS$COMMAND, DCL ignores your definition. DCL always uses the default definition for your initial input stream. However, if you execute an [[Image|image]]  that references SYS$COMMAND, the image can use your new definition.
 
Although you can redefine SYS$COMMAND, DCL ignores your definition. DCL always uses the default definition for your initial input stream. However, if you execute an [[Image|image]]  that references SYS$COMMAND, the image can use your new definition.
  
[[Category:Logical Names]]
+
[[Category:Logical Name]]

Latest revision as of 12:41, 29 May 2022

SYS$COMMAND is a process-permanent logical name that refers to the source of user input.

Defaults

When a user logs in interactively, SYS$COMMAND points to the terminal. When a command procedure is executed interactively, SYS$COMMAND still points to the terminal (while SYS$INPUT points to the command procedure file) so that you can accept user input when necessary. When you submit a batch job, both SYS$INPUT and SYS$COMMAND point to the command procedure file.

Although you can redefine SYS$COMMAND, DCL ignores your definition. DCL always uses the default definition for your initial input stream. However, if you execute an image that references SYS$COMMAND, the image can use your new definition.