in reply to Re^2: Undefined Error
in thread Undefined Error

Can you explain "the code is not working" ?.
The missing SRCH=Q means you will not get a line like this in the results with the code and data shown.
User xyz123 had 1 searches on connection 13573
poj