Search code examples
j

Get whole result when using J console


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 ... ?


Solution

  • 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