Difference between revisions of "CLOSE"

From VSI OpenVMS Wiki
Jump to: navigation, search
(Created page with "'''CLOSE''' is a DCL command that closes a file opened with the OPEN command and deassigns the associated logical name. =Syntax= CLOSE...")
 
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
'''CLOSE''' is a [[DCL]] [[Command|command]] that closes a file opened with the [[OPEN]] command and deassigns the associated [[Logical Name|logical name]].
+
'''CLOSE''' is a [[DCL]] [[Command|command]] that closes a file opened with the [[OPEN]] command and deassigns the associated [[Logical Name|logical name]]. [[CLOSE]] is a command that is executed inside of [[DCL]], which means no image is invoked.
  
 
=Syntax=
 
=Syntax=
Line 10: Line 10:
 
** PRINT: [[PRINT]] the fle
 
** PRINT: [[PRINT]] the fle
 
** SUBMIT: [[SUBMIT]] the file.
 
** SUBMIT: [[SUBMIT]] the file.
* /LOG Generates a warning message when you attempt to close a file that  was not opened by DCL. If you specify the /ERROR qualifier, the /LOG qualifier has no effect. If the file has not been opened by DCL, the error branch is taken and no message is displayed.
+
* /LOG generates a warning message when you attempt to close a file that  was not opened by DCL. If you specify the /ERROR qualifier, the /LOG qualifier has no effect. If the file has not been opened by DCL, the error branch is taken and no message is displayed.
  
 
[[Category:DCL Commands]]
 
[[Category:DCL Commands]]

Latest revision as of 10:31, 2 December 2019

CLOSE is a DCL command that closes a file opened with the OPEN command and deassigns the associated logical name. CLOSE is a command that is executed inside of DCL, which means no image is invoked.

Syntax

 CLOSE  logical-name[:]

Qualifiers

  • /DISPOSITION=option specifies what action to take when the file is closed. The options are:
    • DELETE: DELETE the file
    • KEEP (default): keep the file
    • PRINT: PRINT the fle
    • SUBMIT: SUBMIT the file.
  • /LOG generates a warning message when you attempt to close a file that was not opened by DCL. If you specify the /ERROR qualifier, the /LOG qualifier has no effect. If the file has not been opened by DCL, the error branch is taken and no message is displayed.