Chapter Contents |
Previous |
Next |
SAS Companion for the OpenVMS Operating Environment |
[mydir.datasets]
directories, the one in the
[mydir]
directory is printed:
x 'define mysearch [mydir],[mydir.datasets]'; libname mylib 'mysearch'; proc print data=mylib.species; run;
The same would be true if you used the FSEDIT procedure to open the SPECIES data set for update.
[mydir]
:
x 'define mysearch [mydir], sas$samp:[sasdata]'; libname mylib 'mysearch'; data mylib.species; x=1; y=2; run;
If a copy of the SPECIES data set exists in the second directory, it is not replaced.
Accessing Data Sets That Have the Same Name |
x 'define mysearch sys$disk:[sas],mydisk:[mydir]'; libname test 'mysearch'; data test.species; set test.species; if value1='y' then value2=3; run;
The DATA statement opens SPECIES for output according
to the output rules, which indicate that the SAS System opens a data set in
the first of the concatenated directories (
sys$disk:[sas]
).
The SET statement opens the existing SPECIES data set
in the second directory(
mydisk:[mydir]
),
according to the input rules. Therefore, the original SPECIES data set is
not updated. After the DATA step is processed, two SPECIES data sets exist,
one in each directory.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.