Hi Harsh:
For what I can see in your code, you recreate the cursor every time in the scan, so It seems that the part you are really interested in is not the cursor, but this text file:
Set Textmerge On
Set Textmerge To (m.NEWPATH) Noshow
Scan
\\<< TRIM(POS) >>
\
Endscan
Set Textmerge To
Set Textmerge Off
¿Is this correct?
Fernando D. Bozzo
Madrid / Spain