BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Betsy
Fluorite | Level 6

Hi all, 

 

Sorry for the length of this question. 

 

I have about 20 datasets that I cleaned in their own files. I merged them in a separate file, and had no issues with the database at that time. The process was 1. save completed individual datasets to a library 2. in a separate file, sort and merge all datasets. 

 

I updated individual datasets several times and re-ran the merge to update the database without issue. 

 

However, this most recent update, I the dataset I updated was 73 observations. When I re-ran the merge, half the datasets were truncated to 73 observations. I had to re-run each dataset individually and then merge again. I didn't change any code, either before or after the error; it was corrected just by re-running. 

 

I am wondering if anyone has experience with similar issues. I'd like to avoid this happening again, as it's time consuming and I might not always realize there's missing data right away. 

1 ACCEPTED SOLUTION
4 REPLIES 4
ballardw
Super User

You would have to show the entire code and likely the LOG of the run that created the incomplete data to provide any relevant answer.

 

The most likely thing I would expect to be a sort issue meaning that UPDATE or MERGE would fail, but you don't say if you read the logs after the first problem run.

Betsy
Fluorite | Level 6

Thank you! It appears that command translated to other datasets in separate files, which I had no idea it could do. 

 

Thank you for referencing the maxims, I bookmarked them and found them all extremely helpful. 

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 950 views
  • 2 likes
  • 3 in conversation