@Kurt_Bremser @PeterClemmensen @hhinohar
Hi,
Below is an example of data I have.
My requirement is, If my parameter is B then value = Death, but in this case the row is blank however there is a death value in some other row.
It doesnt matter in which row the value is in but the code should look in all rows for an ID and assign the value.
I want this to be in a data step as I have numerous if statements to process and there may be multiple ID's but the transaction rows are always empty, code should look at all rows beyond transaction 3 to find the value.
Data I have
ID
Transaction
Age
Death
Parameter
Value
6
1
.
.
A
6
2
.
.
B
6
3
.
.
C
6
.
3
3.45
Data I want
ID
Transaction
Age
Death
Parameter
Value
6
1
.
.
A
6
2
.
.
B
3.45
6
3
.
.
C
6
.
3
3.45
Please advise.
Thank you
... View more