m*****8 发帖数: 654 | 1 suppose dataset like this
id date subject value flag(i want my out put var like this)
001 08/01/08 chinese -5
001 08/05/08 chinese -1 y
001 08/01/08 math -5
001 08/05/08 math -1 y
001 08/10/08 chinese 5
001 08/10/08 math 5
002 08/01/08 chinese -5 y
002 08/01/08 math -5 y
002 08/10/08 chinese 5
002 08/10/08 math 5
i want to give a flag to the most recent date record for each negative id-
subje | h*****y 发帖数: 997 | 2 well, it's easy to understand, your data step never get to the last.subject
because of the condition 'if value lt 0;' |
|