In reply to Peter.

You wrote:
as ever, your blog demands support and prompts response
Uh, thanks! I think.

Good tip on the NLITERAL function! That would make some of the statements in my PROC SQL easier to read. I might apply that change and I'll give you credit if I do!