cancel
Showing results for 
Search instead for 
Did you mean: 

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

Summer
New Contributor

Hi,

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

Thank you

 

 

1 ACCEPTED SOLUTION

pmallon
New Contributor III
New Contributor III

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

View solution in original post

2 REPLIES 2

pmallon
New Contributor III
New Contributor III

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

Summer
New Contributor

Yes i am thinking of checking the timestamp as well. Thanks!