The DATECOPY option in PROC CPORT retains creation and last modified dates for the entries in a catalog


The entries within a catalog retain their original created and last modified dates if you specify the DATECOPY option in the PROC CPORT statement to create a transport file. When the transport file is imported, the catalog's creation and last modified dates display as the current date and time that the catalog was imported into the new library. This same behavior occurs with catalogs that are migrated with PROC MIGRATE because PROC MIGRATE uses the DATECOPY option in PROC CPORT to migrate catalogs. The entries within the catalog should reflect the original creation dates and times.

Selecting Properties in the SAS Explorer window displays the date on which the catalog was created in the new library using PROC CIMPORT. To display the properties of the individual entries rather than the date and time of the imported catalog, you can use PROC CATALOG, as shown in the example code below.


proc catalog cat=library.formats;
   contents;
run;
quit;