![]() Chapter Contents |
![]() Previous |
![]() Next |
| SAS Companion for UNIX Environments |
Each new version of the SAS System provides new features for processing data sets. For example, Version 7 introduces integrity constraints. The only way to take advantage of these new features with existing data is to convert data sets that were created with previous versions of the SAS System into Version 7 data sets. Converting Data Libraries describes various methods to convert data libraries between versions of the SAS System.
If you omit the engine name when you assign a libref to a directory that contains data sets that were created with an previous release, then SAS will determine the engine to use for reading the data set as described in Omitting Engine Names From the LIBNAME Statement. However, output will always default to the new format.
| Converting Data Libraries |
/* Release 6.03 SAS program */ filename sascat '/users/myid/mydir/mycat.dat'; libname oldlib '/users/myid/olddir'; proc cport c=oldlib.catalog file=sascat; run; /* Version 7 SAS program */ filename sascat '/users/myid/mydir/mycat.dat'; libname mylib '/users/myid/mydir'; proc cimport c=mylib.catalog infile=sascat; run;
libname old v6 '/users/myid/trans91'; libname new v7 '/users/myid/trans93'; proc copy in=old out=new memtype=data; run;
In this example, a Release 6.09 data set is created using Version 7 of the SAS System:
libname old v6 '/users/myid/trans91'; libname new v7 '/users/myid/trans93'; data old.data; set new.v6data; run;
The OLD.DATA data set could then be processed with Release 6.09 of the SAS System.
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.