Hi,
I recently have migrated some sas datasets and catalog files using SAS/CONNECT and PROC DOWNLOAD from AIX to Linux machines.
I was able to compare the sas datasets using PROC COMPARE and PROC CONTENTS to ensure that there are no changes in the data after migration.
How do I compare the catalogs files (sas7bcat) in this case?
Thanks,
VIjay.
PROC CATALOG will allow you to compare the entries in SAS catalogs. There is no equivalent to PROC COMPARE to analyse the contents of catalog entries.
You can indirectly test catalog contents by running the applications that use them, then compare application outputs like datasets. If the outputs are the same, then you can conclude that the catalogs are equivalent.
Hi SASKiwi,
I too have the same scenario. SAS Catalog are created by user and stored centrally using 9.1.3 and 9.2 version (there are few created with 8.2 as well). We are doing a fresh deployment of SAS 9.4 M5 in Linux x64 (RHEL 7.5).
Please clarify if the below approach is correct or kindly suggest alternate: -
1. Identify the catalogs which needs to be migrate from source destination folder,
2. Prepare a Cport procedure to create a intermediate transport file.
3. FTP the file to target destination using binary mode.
4. Prepare a CImport procedure to extract the catalogs in the destination directory.
5. Quick sanity check using Proc Compare to compare the entries.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.