Advertisement
ZeyadNofal

R032_UV

Jul 28th, 2022 (edited)
611
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SAS 0.36 KB | None | 0 0
  1. if SMH_CLIENT_TRAN_TYPE = 'O' and TBT_TRAN_STATUS = 'A'
  2. then do;
  3.     if RQO_TRAN_DATE = _2_R032_PREV_DT
  4.     then do;
  5.         %set(_2_R032_CUM_AMT) = _2_R032_CUM_AMT + TBT_MOD_AMT;
  6.     end;
  7.     else if RQO_TRAN_DATE ne _2_R032_PREV_DT
  8.     then do;
  9.         %set(_2_R032_CUM_AMT) = TBT_MOD_AMT;
  10.         %set(_2_R032_PREV_DT) = RQO_TRAN_DATE;
  11.         %set(_2_R032_PREV_TIME) = RQO_TRAN_TIME;
  12.     end;
  13. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement