<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.vmssoftware.com/index.php?action=history&amp;feed=atom&amp;title=SYS%24INPUT</id>
	<title>SYS$INPUT - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.vmssoftware.com/index.php?action=history&amp;feed=atom&amp;title=SYS%24INPUT"/>
	<link rel="alternate" type="text/html" href="https://wiki.vmssoftware.com/index.php?title=SYS$INPUT&amp;action=history"/>
	<updated>2026-04-19T21:34:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>https://wiki.vmssoftware.com/index.php?title=SYS$INPUT&amp;diff=2505&amp;oldid=prev</id>
		<title>Polluks: Category</title>
		<link rel="alternate" type="text/html" href="https://wiki.vmssoftware.com/index.php?title=SYS$INPUT&amp;diff=2505&amp;oldid=prev"/>
		<updated>2022-06-24T18:46:57Z</updated>

		<summary type="html">&lt;p&gt;Category&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:46, 24 June 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l54&quot;&gt;Line 54:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 54:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;/nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;/nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;When the image is finished, SYS$INPUT resumes with the default input stream (the command file).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;When the image is finished, SYS$INPUT resumes with the default input stream (the command file).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Logical Name]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Polluks</name></author>
	</entry>
	<entry>
		<id>https://wiki.vmssoftware.com/index.php?title=SYS$INPUT&amp;diff=1583&amp;oldid=prev</id>
		<title>Jane.doe: Created page with &quot;&#039;&#039;&#039;SYS$INPUT&#039;&#039;&#039; is a process-permanent logical name that denotes the default file or device from which DCL reads input.  =Default= In an int...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.vmssoftware.com/index.php?title=SYS$INPUT&amp;diff=1583&amp;oldid=prev"/>
		<updated>2019-11-28T15:45:56Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;SYS$INPUT&amp;#039;&amp;#039;&amp;#039; is a &lt;a href=&quot;/Process-Permanent_Logical_Name&quot; title=&quot;Process-Permanent Logical Name&quot;&gt;process-permanent logical name&lt;/a&gt; that denotes the default file or device from which DCL reads input.  =Default= In an int...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;SYS$INPUT&amp;#039;&amp;#039;&amp;#039; is a [[Process-Permanent Logical Name|process-permanent logical name]] that denotes the default file or device from which DCL reads input.&lt;br /&gt;
&lt;br /&gt;
=Default=&lt;br /&gt;
In an interactive process, the default value of SYS$INPUT is the terminal.&lt;br /&gt;
In a command procedure run interactively, the default value of SYS$INPUT is the command procedure file.&lt;br /&gt;
In a command procedure run as a [[Batch Job|batch job]], the default value of SYS$INPUT is the command procedure file.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
If you specify SYS$INPUT as the file specification for a command, you are prompted for the text while still remaining at the DCL level. For example:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
$ mail sys$input jdoe&lt;br /&gt;
Enter your message below. Press CTRL/Z when complete, or CTRL/C to quit:&lt;br /&gt;
hi there&lt;br /&gt;
 Exit&lt;br /&gt;
New mail from JDOE&lt;br /&gt;
$&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also redefine SYS$INPUT so that an [[Image|image]], invoked by a [[Command Procedure|command procedure]], reads input from the terminal or another file. Because [[DCL]] always obtains input from the default input stream, DCL ignores a redefinition of SYS$INPUT. The OpenVMS Help Facility offers the following example of an input file for the [[SORT]] command:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
! PEOPLE.DAT&lt;br /&gt;
! A set of data with embedded key qualifiers for the SORT command.&lt;br /&gt;
!&lt;br /&gt;
! Usage: SORT@PEOPLE.DAT&lt;br /&gt;
!&lt;br /&gt;
/KEY=(POS:10,SIZE:10) sys$input people.out&lt;br /&gt;
Fred     Flintstone    555-1234&lt;br /&gt;
Barney   Rubble        555-2244&lt;br /&gt;
Wilma    Flintstone    555-1234&lt;br /&gt;
Betty    Rubble        555-2244&lt;br /&gt;
George   Slate         555-8911&lt;br /&gt;
Dino     Dinosaur      555-1234&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Calling SORT@PEOPLE.DAT would therefore produce PEOPLE.OUT that would contain the table above sorted by surname.&lt;br /&gt;
&lt;br /&gt;
=Displaying=&lt;br /&gt;
The current value of SYS$INPUT can be displayed with the [[SHOW LOGICAL]] command. It displays only the device portion of the string. In the example below, SYS$INPUT is defined to a file:&lt;br /&gt;
&lt;br /&gt;
   &amp;quot;SYS$INPUT&amp;quot; = &amp;quot;_DSA0:&amp;quot; (LNM$PROCESS_TABLE)&lt;br /&gt;
&lt;br /&gt;
In the example below, SYS$INPUT is defined to a terminal:&lt;br /&gt;
&lt;br /&gt;
   &amp;quot;SYS$INPUT&amp;quot; = &amp;quot;_TNA18:&amp;quot; (LNM$PROCESS_TABLE)&lt;br /&gt;
&lt;br /&gt;
=Redefining=&lt;br /&gt;
SYS$INPUT can be redefined so that an image takes its input from wherever it is redefined to. Most commands, except for those [[CLI#Commands Executed Inside the CLI|executed inside DCL]], invoke images. Because DCL always obtains input from the default input stream, DCL ignores a redefinition of SYS$INPUT. In the following example, SYS$INPUT is redefined to SYS$COMMAND (the terminal) so that the image invoked with the next command ([[EVE|TPU]]) would use the terminal and not the command procedure file as a source of input.&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
$ DEFINE/USER_MODE SYS$INPUT SYS$COMMAND&lt;br /&gt;
$ EDIT/TPU MYFILE.DAT&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
When the image is finished, SYS$INPUT resumes with the default input stream (the command file).&lt;/div&gt;</summary>
		<author><name>Jane.doe</name></author>
	</entry>
</feed>