![]() Chapter Contents |
![]() Previous |
![]() Next |
Note: The engine that creates
a SAS catalog determines its format, which is different in Version 6 and Version
8 and therefore not compatible. However, the format of a SAS catalog entry
is determined by the SAS program or application that creates it and may or
may not be compatible between versions.
Using Version 8 to Access Version 6 Catalogs without Converting |
Version 8 can read a Version 6 catalog. Therefore, if you do not need to update a Version 6 catalog, then you do not need to convert it.
In general, Version 8 cannot write to a Version 6 catalog. However, you can use the COPY procedure to write a Version 6 catalog from a Version 6 library to another Version 6 library.
Version 8 cannot create new entries or update existing entries in a Version 6 catalog. You must convert the catalog to Version 8 format.
Using Version 6 to Access Version 8 Catalogs |
Version 6 cannot access Version 8 catalogs, because the file formats are not compatible.
Converting Version 6 Catalogs to Version 8 Format |
For a Version 6 catalog, to create new entries or to update existing ones, you must convert the catalog to Version 8 format. Two methods are available, which produce different results regarding catalog entries:
libname old v6 "v6-SAS-data-library"; libname new v8 "v8-SAS-data-library"; proc copy in=old out=new memtype=catalog; run;
For example, the following program uses PROC CPORT to place the contents of the Release 6.12 catalog OLD.MYCAT in a transport file.
/* Release 6.12 SAS program */ libname old "v6-SAS-data-library"; proc cport cat=old.mycat file='myxpt.xpt'; run;
Then, the following program uses PROC CIMPORT to convert the transport file to the Version 8 catalog NEW.MYCAT:
/* Version 8 SAS program */ libname new "v8-SAS-data-library"; proc cimport cat=new.mycat file='myxpt.xpt'; run;
Creating Version 6 SAS Catalogs in Version 8 |
You cannot create a Version 6 SAS catalog in Version 8, except with SAS/SHARE and SAS/CONNECT software.
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.