Get whole result when using J console

Viewed 104

When using J console ijconsole I get only results up to some. For example,

ijconsole -js "a=.  3 3 5 6 " "echo 200 $ a" "exit''" 
3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 ...

or

ijconsole -js "a=.  3 3 5 6 " "echo 2000 $ a" "exit''" 
3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 3 3 5 6 ...

gives the same result. How to get whole result and not ... ?

4 Answers

This option is controlled by the global parameter 9!:37 y "Output Control". Set the maximum line length (2nd number) to something appropriate to avoid the ...:

9!:37 ] 0 2000 0 222
a =. 3 3 5 6
echo 2000 $ a


9!:37 ] 0 _ 0 222      NB. set maximum lines to infinity

Format the result to a string and use stdout.

stdout ": 200 $ a

Thank you very much. Indeed,

ijconsole -js '9!:37 ] 0 _ 0 222' "a=.3 3 5 6 " "echo 1000 $ a" "exit''"

works!

Related