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.
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.
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.
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.