<?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=WRITE</id>
	<title>WRITE - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.vmssoftware.com/index.php?action=history&amp;feed=atom&amp;title=WRITE"/>
	<link rel="alternate" type="text/html" href="https://wiki.vmssoftware.com/index.php?title=WRITE&amp;action=history"/>
	<updated>2026-05-02T09:27:11Z</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=WRITE&amp;diff=1620&amp;oldid=prev</id>
		<title>Jane.doe: Created page with &quot;&#039;&#039;&#039;WRITE&#039;&#039;&#039; is a DCL command that writes the specified data as one record to an open file specified by a logical name.  =Syn...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.vmssoftware.com/index.php?title=WRITE&amp;diff=1620&amp;oldid=prev"/>
		<updated>2019-12-02T11:06:17Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;WRITE&amp;#039;&amp;#039;&amp;#039; is a &lt;a href=&quot;/DCL&quot; title=&quot;DCL&quot;&gt;DCL&lt;/a&gt; &lt;a href=&quot;/Command&quot; title=&quot;Command&quot;&gt;command&lt;/a&gt; that writes the specified data as one record to an &lt;a href=&quot;/OPEN&quot; title=&quot;OPEN&quot;&gt;open&lt;/a&gt; &lt;a href=&quot;/File&quot; title=&quot;File&quot;&gt;file&lt;/a&gt; specified by a &lt;a href=&quot;/Logical_Name&quot; title=&quot;Logical Name&quot;&gt;logical name&lt;/a&gt;.  =Syn...&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;WRITE&amp;#039;&amp;#039;&amp;#039; is a [[DCL]] [[Command|command]] that writes the specified data as one record to an [[OPEN|open]] [[File|file]] specified by a [[Logical Name|logical name]].&lt;br /&gt;
&lt;br /&gt;
=Syntax=&lt;br /&gt;
 WRITE  logical-name expression[,...]&lt;br /&gt;
&lt;br /&gt;
==Logical Name==&lt;br /&gt;
 Specifies the logical name assigned to the output file. Use the logical name assigned by the OPEN command. In interactive mode, specify the process-permanent files identified by the logical names [[SYS$INPUT]], [[SYS$OUTPUT]], [[SYS$ERROR]], and [[SYS$COMMAND]]. (The [[OPEN]] command assigns a logical name to a file and places the name in the process logical name table.)&lt;br /&gt;
&lt;br /&gt;
==Expression==&lt;br /&gt;
Specifies data to be written as a single record to the output file. You can specify data items using character [[String|string]] expressions, which may be [[Symbol|symbol]] names, character strings in quotation marks (&amp;quot; &amp;quot;),  literal numeric values, or a [[Lexical functions|lexical function]].  &lt;br /&gt;
&lt;br /&gt;
You can specify a list of expressions separated by commas (,); the command interpreter concatenates the items into one record and writes the record to the output file.&lt;br /&gt;
&lt;br /&gt;
The maximum size of any record that can be written is less than 1024 bytes, and the value of any symbol that is specified as part of a record cannot exceed 255 characters; however, if you specify the /SYMBOL qualifier, the maximum record size is 2048 bytes and the value of a symbol can exceed 255 characters.&lt;br /&gt;
&lt;br /&gt;
==Qualifiers==&lt;br /&gt;
* /ERROR transfers control on an I/O error to the location specified by label (in a command procedure). If no error routine is specified and an error occurs during the writing of the file, the current [[ON]] condition action is taken. The /ERROR qualifier overrides any ON condition action specified. If an error occurs and control passes successfully to the target label, the reserved global symbol [[$STATUS]] retains the error code.&lt;br /&gt;
* SYMBOL Causes the expression to be interpreted and its expanded value placed in a 2048-byte (instead of a 1024-byte) buffer before the write operation is performed. If you specify multiple expressions, their values are concatenated and placed in the 2048-byte buffer. Use the /SYMBOL qualifier to write a very large record. If you do not use the /SYMBOL qualifier, the entire command, including the expression or expressions, is placed in a 1024-byte buffer.&lt;br /&gt;
* /UPDATE replaces the last record read with the record specified with the expression parameter. You must be able to read and write to a file to use the /UPDATE qualifier. Use the WRITE/UPDATE command only after a READ command. The WRITE/UPDATE command modifies the last record you have read. With sequential files, you must replace a record with another record of the same size when you use the WRITE/UPDATE command.&lt;br /&gt;
* /WAIT ([[Alpha]] and [[Integrity]] servers only): if you specify /NOWAIT, the Put service to a [[Mailbox|mailbox]] device uses the IO$M_NOW modifier, which causes the operation to complete immediately instead of synchronizing with another reader of the mailbox.&lt;br /&gt;
&lt;br /&gt;
[[Category:DCL Commands]]&lt;/div&gt;</summary>
		<author><name>Jane.doe</name></author>
	</entry>
</feed>