[gradsusr] Printing values to a text file

Jan Ising jising at aggies.ncat.edu
Fri Mar 6 13:14:57 EST 2020


Hello,

How would I display multiple values per line in a .txt file from a
single-valued changing variable (see code)? Based on the code below it is
currently displaying 1 value per line instead of 200 values per line:

 'set gxout print'
'set prnopts %f 200 1'
a = 0

while (a < 400)
a = a + 1
dummy = write(test_output, a, append)
endwhile


Result is:
1
2
3
4
5
...

Instead of:
1 2 3 4 5
6 7 8 9 10

any help would be greatly appreciated

-Thanks,
Jon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20200306/3ac49661/attachment.html>


More information about the gradsusr mailing list