I want to commence a test script like this: smclear '' clear ''
where 'clear' is of course the library verb to delete all words in locale 'base'. My suggested verb 'smclear' would empty the J602 session window IJX to commence a fresh log of events. Browsing locale 'jijs' suggests the following should work --and indeed it does: smclear=: 3 : 0 wd 'psel ',SMHWNDP_0_ wd 'set e ""' ) but it looks rather fragile to me, since it relies on locale 0 governing the IJX window. Is there a better way? Is there a library verb to do the job? ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm