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

https://learninghub.kx.com/forums/topic/how-to-know-if-sym-file-for-new-update-after-q-en

Hi,

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

Thank you

 

 

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