Greetings and thank you for responding,
The code listed works, the problem was found in acouple spaces that were buffered into the front of the %msnimaddy variable. Although the output sequential text file didn't show those buffered spaces in front of the corresponding %msnimaddy, each time the !read statement looked for a match, it didn't find it, because the file being written was ignoring those buffered spaces in the output of writing the %msnimaddy variable to that file.
By removing the hidden buffer character spaces in front of what I was trying to save, namely the pure %msnimaddy, I was able to isolate that variable, save and search for that variable correctly.
Example:
%msnimaddy [hidden buffer spaces x2]Testinjay@yahoo.com
Wouldn't find thru that !read routine a search for
@msnimaddy
Testinjay@yahoo.com And the !read-write statement would repeatedly write in that %msnimaddy as a new addition.
Although pulling up IMusers.txt would reveal:
Testinjay@yahoo.comTestinjay@yahoo.comWhich for all purposes appear in the resulting IMusers.txt file to be identical.
Thanks for your feedback and comments previously,
MDA