1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| data test&mv_aa. ;
set test&mv_aa.;
classcpt="z";
if nucptpcg in ("65522","6554","655") then classcpt="a";
if nucptpcg in ("647","6481","6483","6488","648") then classcpt="b";
if nucptpcg in ("631","632","633") then classcpt="c";
if nucptpcg in ("60611","60612","60613") then classcpt="d";
if nucptpcg in ("613","614","618") then classcpt="e";
if nucptpcg in ("6256","6257","625","6261","6262","6263","6264","6268","626","627","6281","6282","6283","6284","6286","6288","628") then classcpt="f";
if nucptpcg in ("6351","6378","637") then classcpt="g";
if nucptpcg in ("6511", "65183","65388","653","654","658") then classcpt="h";
if nucptpcg in ("661","671","678") then classcpt="i";
run;
proc sort data=testemerge20&mv_aa. ;by classcpt nucptpcg;run; |
Partager