Chapter Contents

Previous

Next
REPLACE=

REPLACE=



Controls replacement of like-named temporary or permanent SAS data sets

Valid in: DATA step and PROC steps
Category: Data Set Control
Restriction: Use with output data sets only.


Syntax
Syntax Description
Comparisons
Examples
See Also

Syntax

REPLACE=NO | YES

Syntax Description

NO
specifies that a new data set with a given name does not replace an existing data set with the same name.

YES
specifies that a new data set with a given name replaces an existing data set with the same name.


Comparisons


Examples

Using the REPLACE= data set option in this DATA statement prevents SAS from replacing a permanent SAS data set named ONE in a library referenced by MYLIB:

 data mylib.one(replace=no);

SAS writes a message in the log that tells you that the file has not been replaced.

See Also

System Options:

REPLACE


Chapter Contents

Previous

Next

Top of Page

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