Chapter Contents

Previous

Next
FDELETE

FDELETE



Deletes an external file

OS/390 specifics: fileref


Syntax
Details
Example
See Also

Syntax

FDELETE (fileref)

fileref
identifies an external file. The fileref must have been previously associated with a sequential file, a PDS, a PDSE, or a UNIX System Services file using a FILENAME statement or FILENAME function. The fileref cannot represent a concatenation of multiple files.


Details

If the fileref specified with FDELETE is associated with a UNIX System Services directory, PDS, or PDSE, then that directory, PDS, or PDSE must be empty. The user that calls FDELETE must also have appropriate privilege to delete the directory or file.


Example

filename delfile 'myfile.test';
  data _null_;
  rc=fdelete('delfile');
  run;

See Also


Chapter Contents

Previous

Next

Top of Page

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