BookmarkSubscribeRSS Feed
vijayanand
Obsidian | Level 7

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.

2 REPLIES 2
SASKiwi
PROC Star

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.

Prakash_Cog
Fluorite | Level 6

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.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 775 views
  • 0 likes
  • 3 in conversation