BookmarkSubscribeRSS Feed
maheshsompalli
Calcite | Level 5

how to compare two SPDS9 files using SAS Procedures.

 

or

 

how to convert SPDS files to SAS Datasets.

5 REPLIES 5
ChrisNZ
Tourmaline | Level 20

1. proc compare is the data comparison utility in SAS. The underlying data engine does not matter.

2. proc copy from a SPDE library to a V9 library.

SPDE tables tables present many advantages over V9 tables though, so be sure that's actually what you want.

 

 

 

 

 

maheshsompalli
Calcite | Level 5

So this means, we use Proc Copy to convert SPDS files to normal SAS Datasets. or using libname <libref> SPDE <path> can also produce the same result? I have a small doubt in it.

LinusH
Tourmaline | Level 20

You can't compare <files> using PROC COMPARE, it will compare the data set as an object, regardless of the physical files. But perhaps you mean data sets/tables rather than files?

Data never sleeps
maheshsompalli
Calcite | Level 5

So this means, we use Proc Copy to convert SPDS files to normal SAS Datasets. or using libname <libref> SPDE <path> can also produce the same result? I have a small doubt in it.

ChrisNZ
Tourmaline | Level 20

libname A base 'path';

libname B spde 'path'; /* can be the same path */

proc copy from B to A

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 3081 views
  • 1 like
  • 3 in conversation