2022.03.24 06:29 AM
Hi,
Is there any way to know if there is new update to sym file after .Q.en?
Thank you
2022.03.24 06:43 AM - edited 2022.03.24 06:45 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
2022.03.24 06:43 AM - edited 2022.03.24 06:45 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
2022.03.27 01:51 AM
Yes i am thinking of checking the timestamp as well. Thanks!
EMEA
Tel: +44 (0)28 3025 2242
AMERICAS
Tel: +1 (212) 447 6700
APAC
Tel: +61 (0)2 9236 5700
KX. All Rights Reserved.
KX and kdb+ are registered trademarks of KX Systems, Inc., a subsidiary of FD Technologies plc.