Yes, I have declared all the variables using matchdeclare. and yes its r(L,S,K,T), even than it does not run. Dileep > Have you declared I,L,J,S,M,K,N,T ? > The rule ignores S. did you mean the RHS to be r(L,S,K,T)? > RJF > > > > >