KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums kdb+ Show or 0N! Re: Show or 0N!

  • dcrossey

    Member
    August 2, 2021 at 12:00 am

    Hi @eletrofone,

    As you’ve mentioned, to print strings without the quotes you will need to send the string(s) to the file handle 1 (stdout).

    If you to avoid ambiguity with ‘1’ in your code, you could set a variable for re-use e.g.

     

    q)stdout:1; 
    q)stdout each (("hello";"world"),:"n"); 
    hello world // use negative to append newline by default 
    q)stdout:neg 1; 
    q)stdout ("hello";"world"); 
    hello world // note, trailing semi-colon to supress outputting the file handle

     

    Please see here for more info: Handles to files and processes | Basics | q and kdb+ documentation – Kdb+ and q documentation (kx.com)

    Cheers,

    David