Chapter Contents

Previous

Next
DELETE

DELETE



Deletes a file

Language element: function
Category: general-purpose OpenVMS
OpenVMS specifics: All aspects are host-specific


Syntax
Details
See Also

Syntax

DELETE('file-specification')

'file-specification'
is the name of the file to be deleted. It can be a character variable, a character literal enclosed in double quotation marks, or another character expression. The value for file-specification must be enclosed in single or double quotation marks.


Details

If the DELETE function executes successfully, the return value is 0. Otherwise, the return value is any of the OpenVMS error codes that indicate why it failed.

The following are two common error codes:
98962 File not found.
98970 Insufficient privilege or file protection violation.
The text of the error codes is retrieved using the GETMSG function.

See Also


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.