BookmarkSubscribeRSS Feed
Numberlover
Calcite | Level 5
I tried to run a program that is already running fine in other pc.but while running the same process flow from my pc sas eg.i am getting errors.the main error is occured at a portion when a dataset is exported to a table.table seems blank and the end of that process flow shows an error ''duplicate key'' error.what were the reasons for such an error.
1 REPLY 1
Reeza
Super User

Guesses based on on code or data:

 

The input data is not exactly the same and there is a duplicate in one of the data sets that is not accounted for in the code somewhere, given the error, likely a PROC TRANSPOSE. 

 

If the input data is the same, and you've used PROC IMPORT, it's possible the import truncated some data to create duplicate keys which may not have existed in the other version. PROC IMPORT guesses at types and lengths and not always correctly. 

 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 1 reply
  • 749 views
  • 0 likes
  • 2 in conversation