Writes the contents of a buffer or the contents of the selected range to a file. Format WRITE [file-spec]
1 – Qualifiers
1.1 /BUFFER
/BUFFER=buffer-name Indicates which buffer is to be written. The default is the current buffer.
1.2 /DIALOG
Instructs LSE to use a dialog box to prompt you for a parameter value. The command parameter is optional if you supply this qualifier. If you specify a command parameter with /DIALOG, LSE uses that parameter to set the initial state of the dialog box.
1.3 /SELECT_RANGE
Indicates that the selected range is to be written.
1.4 /VISIBLE
Indicates that the visible records in the buffer or selected range be written to a file. You must specify the file-spec parameter when you use this qualifier.
2 – Parameter
file-spec Specifies the file to which the buffer will be written. By default, LSE writes the data to the file associated with the buffer. This parameter is required if you specify the /SELECT_ RANGE qualifier.