Functions and CALL Routines under OpenVMS |
Deletes a file.
Category: |
General-Purpose OpenVMS
|
OpenVMS specifics: |
All aspects are host-specific
|
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.
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.
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.