Chapter Contents

Previous

Next
CLOSE

CLOSE



Closes a SAS data set and returns a value

Category: SAS File I/O


Syntax
Arguments
Details
Examples
See Also

Syntax

CLOSE(data-set-id)

Arguments

data-set-id
specifies the data set identifier that the OPEN function returns.


Details

CLOSE returns 0 if the operation was successful, [ne]0 if it was not successful. Close all SAS data sets as soon as they are no longer needed by the application.

Note:   All data sets opened within a DATA step are closed automatically at the end of the DATA step.  [cautionend]


Examples


See Also

Function:

OPEN


Chapter Contents

Previous

Next

Top of Page

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