![]() Chapter Contents |
![]() Previous |
![]() Next |
| SAS Companion for the CMS Environment |
As with SAS files on tape, each tape-format SAS file on disk is stored as a single file, as long as each SAS file has a unique libref. If you write multiple SAS files on disk in tape format using the same libref, they are all written to one sequential file, making access to a particular SAS file difficult.
To force tape format for a SAS library on disk, specify the sequential engine in the LIBNAME statement. The form of the LIBNAME statement to use is
| LIBNAME libref TAPE <'physical-name'>; |
| Examples |
libname raisins tape;
libname raisins tape 'm';
libname day1 tape 'a';
data day1.earn;
input branch $ 1-20
dept 22-24 @26 revenue 10.;
cards;
...more data lines...
;
libname day2 tape 'a';
data day2.earn;
input branch $ 1-20
dept 22-24 @26 revenue 10.;
cards;
...more data lines...
;
proc print data=day1.earn; id branch; var revenue dept; run; proc print data=day2.earn; id branch; var revenue dept; run;
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.