It doesn't work. However, I found a solution. First, I identify the blank row because with the Len() function will give me the value of 1. Then I use the lag1 function for this newly created variable to identify the start of a new block of text. Knowing the beginning of the new block, define a new variable ID = _N_ where lag1(Len()) = 1. Then using retain statement assign the same _N_ value to the rest of each block's rows. Identifying the number of rows in each block then becomes easy,
... View more