Home › Forums › kdb+ › help understanding a function › Reply To: help understanding a function
-
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