- data b;/*数据b*/
- set a;/*读取a,依npermno date type date1排序*/
- by NPERMNO date type date1;
- retain car1;/*声明car1,在条件语句结束后保持car1的值*/
- if first.type then car1=ri;/*条件语句,first.type指排序后的第一个type*/
- else car1=car1*ri;/*不满足first.type的条件*/
- retain car1_MV;
- if first.type then car1_MV=rmv;
- else car1_MV=car1_MV*rmv;
- retain car1_ME;
- if first.type then car1_ME=rme;
- else car1_ME=car1_ME*rme;
- if last.type then output;/*最后type,则输出*/
- run;/*


雷达卡




京公网安备 11010802022788号







