shirley923 发表于 2014-4-11 22:21 
I will code below in data step:
if value >3 then flag ='yes' ; else flag= ' ';
thank you for your answer!I was casually write this group of data.the max of value >3 is a coincidence so i want to know if classified by value to define the max value,how should i do? such as:
pt visit value flag
1 visit1 3
1 visit1 5
1 visit1 7
1 visit1 9 yes
2 visit2 1
2 visit2 2
2 visit2 3 yes
if i want to creat a flag=yes stay with the max value by every visit .ask for help,thank you very much!