Hi
Just to pad out that example:
set gbl="^%SYS",x="",file="c:\temp\myfile.txt"
open file:("WNS"):0
else w !,"Unable to open file" quit
for set x=$o(@gbl@(x)) q:x="" zw @$ZR w !
close file
for multiple globals:
set file="c:\temp\text.txt"
open file:"("WNS"):0
for gbl="^ABC,^XYZ,^PQTY,^%Nigel" set x="" for set x=$o(@gbl@(x)) w !!:x="" q:x="" use file zw @$ZR
close file
Nigel
- Log in to post comments

.png)