data vite_b (keep=SID strata1 plaque1 plaque2 trt); set vite nobs=nobs; retain SID 0 strata1 0 plaque1 0 plaque2 0 trt 0; if _N_ EQ 1 then do; sid = ID; strata1 = ID; trt = treatment; end; if SID NE ID then do; output; SID = ID; strata1 = strata; trt = treatment; end; if visit = 0 then plaque1= plaque; if visit = 2 then plaque2=plaque; if _N_ = nobs then output; run; I am new learner of SAS and I encountered issue understanding this chunk of code, if anyone of you could please explain each line of the code as in what's its doing then it will be of very help. Also whats the use of certain statement in this code (nobs, _N_) Again Thanks for your time in advance.
... View more