Input ID Date Parameter 1 1_feb-2024 - 1 28-feb-2024 x 1 10-mar-2024 - 1 20-Mar-2024 x 1 31-mar-2024 - 1 01-apr-2024 x 2 1-feb-2024 x 2 28-feb-2024 - 2 10-mar-2024 - 2 20-Mar-2024 - 2 31-mar-2024 x 2 10-apr-2024 x 2 30-apr-2024 - Output--Last populated value of the parameter prior to the month end. So if I run my code as of Feb-2024 month end, the output should be ID Date Parameter 1 28-feb-2024 x 2 28-feb-2024 x So if I run my code as of Mar-2024 month end, the output should be ID Date Parameter 1 31_mar-2024 x 2 31-mar-2024 x So if I run my code as of Apr-2024 month end, the output should be ID Date Parameter 1 1-Apr-2024 x 2 30-apr-2024 x I tried the below, but it only gives me the last row, without considering month data output; update input(obs=0) input; by ID; data output; update input(obs=0) input; by ID; run;
... View more