I had master, transaction and required output tables as mentioned below.
1ST CONDITION: For any ID, If any data is present in the master and if blank value is present in the transaction data for the same id then the value in the master data should not be updated with the blank value from Transaction data.(eg:ID- 1 GENDER:female)
2ND CONDITION: For any ID, If any value is present in the master and if any value is present in the transaction data also for the same id then the value in the master data should be updated with the value from Transaction data.(eg:ID- 2 GENDER:male)
Please help me to implement the following requirement using HASH programming only for updating the data bcoz as the master dataset has millions of records and using of UPDATE statement in SAS programming is time consuming .So please help me ..
Thanks in Advance.
MASTER
ID#
Date
Gender
Code
Class
1
.
female
AB
LOW
2
.
female
CD
LOW
3
1/1/2021
M
CD
TRANSACTION
ID#
Date
Gender
Code
Class
1
7/1/2020
EF
2
7/2/2020
male
3
male
output
ID#
Date
Gender
Code
Class
1
7/1/2020
female
EF
LOW
2
7/2/2020
male
CD
LOW
3
1/1/2021
male
CD
... View more