I think problem is you are trying to open the same file (test.txt) twice when 2 records changed one by one.
try
def var filename = "test" + STRING(NEXT-VALUE(some-seq)) + ".txt".
output to value (filename) append.
put unformatted tst_mstr.tst_field1 " " tst_mstr.tst_field2 skip.
output close.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.