Search code examples
kdb

q file not being executed in KDB


I have downloaded KDB+ from http://code.kx.com/q/tutorials/install/#microsoft-windows and unzipped it to my C: drive.

When I browse into the q\w32 directory and try to run any file I always get the file name printed out with an apostrophe in front of it.

e.g.

cd C:\q\w32>
C:\q\w32>q
q)q trade.q          (I have copied the example trade.q into the w32 folder)
'trade.q             

Why does this not run the file??


Solution

  • You need to use either \l or system "l trade.q" to load a file into your q workspace.

    E.g.

    Loading trade.q for q in Windows

    Also the apostrophe ' means error, i.e. the q process can't interpret 'trade.q'

    Hope this help!