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. 

 

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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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