BookmarkSubscribeRSS Feed
Reem97
Calcite | Level 5

SCD2 table have more than one current record  row (change current indicator) with flag "Y" per business key which is an odd behaviour looking for the root cause, any help please.

2 REPLIES 2
Patrick
Opal | Level 21

Duplicate business keys in your source table could potentially cause such a situation. To really know you would have to investigate the DIS generated code.

LinusH
Tourmaline | Level 20

Also, analyze your source and target data.

Take you code and change the debug flag, which will keep the work table from being deleted, and then execute the code in an interactive SAS session, like EG.

 

Data never sleeps

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 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
  • 2 replies
  • 1581 views
  • 2 likes
  • 3 in conversation