Joined: 23 Nov 2006 Posts: 19270 Location: Inside the Matrix
Thank You...STRING worked...
The code that worked was
INSPECT String-data TALLYING counter FOR ALL ' '.
Not to make too fine a point, but the code that worked is an INSPECT rather than some string/unstring operation. Also, the code posted will find spaces rather than #(s) which i believe was the original requirement.