KX Community

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

Home Forums kdb+ help understanding a function Reply To: help understanding a function

  • unterrainer_ale

    Member
    May 30, 2024 at 8:09 am

    Hey fav_pa,

    I believe there are a few more mistakes in the code you posted, can you share the source where you have it from?

    First, the part to create the path to save down is missing some code

    q) ` sv (`$":path/toTable";`tableName;`)
    `:path/toTable/tableName/

    Then you also miss the `p in

    @[;pvar;`p#]

    Other than that, the second code you posted makes sense

    `(` sv (tabPath;; table; )) set @[; pvar;`p#] pvar xasc .Q.en[tabPath] get table