Chapter Contents |
Previous |
Next |
FDELETE |
Category: | External File |
Syntax | |
Details | |
Example | |
See Also |
Syntax |
sysrc=FDELETE(fileref); |
0 | successful |
0 | not successful |
Type: Numeric
Type: Character
Details |
You can use either the FILENAME statement or the FILENAME function in SCL to assign a fileref. Under some operating environments, you can also use system commands to assign filerefs.
Example |
Generate a fileref for an external file and assign it to the variable FREF. Then call FDELETE to delete the file and call the FILENAME function again to deassign the fileref.
length fref $ 8; fref =_blank_; /* Assign a fileref generated by the system */ /* to the physical filename that is stored */ /* in the variable FNAME. */ rc=filename(fref,fname); if (rc=0) and (fexist(fref)) then rc=fdelete(fref); rc=filename(fref,'');
See Also |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.