Hi i want to capture the value of first.sasid , first.cul ,last.sasid,lastcul values into new variables how can i do it if the value of sasid for first.sasid is 3 then i want to move this value to new variable f_s=3 and if last.sasid=2 then l_s=2 if first.cul =14 then i want to move this value to new variable f_c=14 if last.cul =28 then i want to move this value to new variable l_c=28 data a; input sasid cul dt ddmmyy10.; format dt ddmmyy10.; cards; 1 23 12/10/10 1 23 15/10/10 1 23 16/10/10 2 44 15/10/10 2 34 12/10/10 2 44 16/10/10 3 14 12/10/10 3 24 15/10/10 3 56 16/10/10 3 18 10/10/10 run;
... View more