Use wd 'msgs' to allow messages and other pending events to be processed. For example, try:
foo=: 3 : 0 while. y < 10 do. 6!:3[1 smoutput y NB. wd'msgs' y=. y + 1 end. ) foo 0 ... then uncomment the wd 'msgs' line and try again. On Fri, Dec 16, 2016 at 12:29 PM, Devon McCormick <[email protected]> wrote: > This seems to be a "feature" of JQt - jconsole behaves as expected. Sorry > not to be of more help but I recall looking into modifying JQt's > output-display behavior some time ago and concluding that it was impossible > given its current implementation. > > You should be able to pop up a window and update it, though. > > On Fri, Dec 16, 2016 at 3:22 PM, Michael Berry <[email protected]> wrote: > > > I am looping through a large database table 1,000 rows at a time and I > > would like to show some reassuring output. I tried echo and smoutput > (are > > these different?) but both sat there until the whole explicit definition > > ended and then printed out the progress notes all at once. Do I need > some > > sort of flush output command? > > > > Here is the loop I tried: > > > > while. 0 = _1 -: d=. ddfch sh, 1000 NB. ddfet fails unpredictably so use > > ddfch instead > > > > do. > > > > data=. make_cells d NB. put into ddfet format as expected by run_tests > > > > scores=. run_tests data > > > > r=. make_cols data,. <"1 scores > > > > assert. 0 = ch2 ddins~ ('select * from ',y,'_scored where 0=1');r > > > > echo written=. written + 1{. $data > > > > end. > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > > > -- > > Devon McCormick, CFA > > Quantitative Consultant > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
