<div dir="ltr">I think the problem is that you're not displaying a data field in your code. It looks like you're telling Grads just to spit out a sequence of integers. You don't need Grads for that. Also, the gxout print and prnopts probably aren't meant to be used for that. You could easily just do<div><br></div><div>a = 1</div><div>while (a < 400)</div><div> say a</div><div> a = a + 1</div><div>endwhile</div><div><br></div><div>Then copy your screen to a text file, or just use grads -H [<i>logfile</i>] to tell Grads to log commands + output to <i>logfile</i></div><div><i><br></i></div><div>Jeff Duda</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 6, 2020 at 11:47 AM Jan Ising <<a href="mailto:jising@aggies.ncat.edu">jising@aggies.ncat.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>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:</div><div><br></div><div> 'set gxout print'</div><div>'set prnopts %f 200 1'</div><div>a = 0</div><div><br></div><div>while (a < 400)</div><div>a = a + 1</div><div>dummy = write(test_output, a, append)</div><div>endwhile</div><div><br></div><div><br></div><div>Result is:</div><div>1</div><div>2</div><div>3</div><div>4</div><div>5</div><div>...</div><div><br></div><div>Instead of:</div><div>1 2 3 4 5</div><div>6 7 8 9 10</div><div> <br clear="all"><div>any help would be greatly appreciated </div><div><br></div>-Thanks,<br><div dir="ltr"><div dir="ltr"><div>Jon</div></div></div></div></div>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font size="2"><span>Jeff Duda, Research Scientist</span></font></div><div dir="ltr"><font size="2"><span></span></font>University of Colorado Boulder</div><div dir="ltr"><font size="2"><span></span></font>Cooperative Institute for Research in Environmental Sciences</div><div dir="ltr">NOAA/OAR/ESRL/Global Systems Division<br><font size="2"><span>

<span>Boulder, CO<br></span></span></font>



</div></div></div></div></div></div></div></div>