Hello,
I have the following:
def var i as int.
def stream strma.
output to abc.txt.
for each so_mstr where so_domain = 'us1' no-lock:
display so_nbr with stream strma.
i = i + 1.
export so_nbr.
if i > 5 then leave.
end.
output close.
How do I also display the value of so_nbr on the screen as the program is processing it. I need to use STREAM but not sure how to do so.
Thank you.
I have the following:
def var i as int.
def stream strma.
output to abc.txt.
for each so_mstr where so_domain = 'us1' no-lock:
display so_nbr with stream strma.
i = i + 1.
export so_nbr.
if i > 5 then leave.
end.
output close.
How do I also display the value of so_nbr on the screen as the program is processing it. I need to use STREAM but not sure how to do so.
Thank you.