Skip to Content
0
Nov 24, 2006 at 10:05 AM

Clearing write statements

149 Views

We are facing a problem with clearing the write statement buffer.

Our aim is to send mail by compressing the list memory, and the mail is sent in a loop. In each loop we have different set of data to be sent. But problem here is in the mails after the first mail, the data is getting appended in the subsequent mails.

For example,

do 10 times.

*****Have to clear buffer here*****

write :/ hi.

perform sendmail.

enddo.

The above code should give ten emails...with only "hi". In other words, the list output should be only one "hi" and not 10 times hi. WE have tried all possibilites to clear the write buffer, Any help in this regard is highly appreciated.