KX Community

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

Home Forums kdb+ How to know if sym file for new update after .Q.en

  • How to know if sym file for new update after .Q.en

    Posted by summer on March 24, 2022 at 12:00 am

    Hi,

    Is there any way to know if there is new update to sym file after .Q.en?

    Thank you

     

     

    summer replied 6 months, 3 weeks ago 2 Members · 1 Reply
  • 1 Reply
  • pmallon

    Member
    March 24, 2022 at 12:00 am

    Hi,

    You should be able to check by the timestamp on the sym file:

     

    q).z.p 2022.03.24D13:36:35.138809000 
    
    q)t:([]s:`a`b`c)
    q).Q.en[`:.]t s - a b c
    q)ls -lrt sym "-rw-r--r-- 1 pat pat 14 Mar 24 13:36 sym"
    q)/ add a sym to t
    q)t:([]s:`a`b`c`d)
    q).z.p 2022.03.24D13:37:20.140371000
    q).Q.en[`:.]t s - a b c d
    q)ls -lrt sym "-rw-r--r-- 1 pat pat 16 Mar 24 13:37 sym"

     

    If that doesn’t work for you, maybe a simply modified version like:

     

    q)modQen:{s:sym;.Q.en[x]y;sym except s} 
    
    q)t:([]s:`a`b`c`d`e) / add e to t
    q)modQen[`:.;t] ,`e
    q)/ run again to show no update to sym, .i.e empty list returned
    q)modQen[`:.;t] `symbol$()

     

     

     

    Thanks,

    Patrick

Log in to reply.