cancel
Showing results for 
Search instead for 
Did you mean: 

merge hdb

Isaac
New Contributor
Hi,
   Is there a way to merge sym files, which are for hdb data.     I have two hdb folders, they are same except the date.
2 REPLIES 2

kuentang
New Contributor

Here is a link http://code.kx.com/wiki/Contrib/CompactingHdbSym to help you get started. It will not solve your problem directly but you will get some ideas from this script.

 

HTH,

 

Kim

 

Von: personal-kdbplus@googlegroups.com [mailto:personal-kdbplus@googlegroups.com] Im Auftrag von Isaac
Gesendet: Mittwoch, 6. Januar 2016 07:04
An: Kdb+ Personal Developers
Betreff: [personal kdb+] merge hdb

 

Hi,

   Is there a way to merge sym files, which are for hdb data.     I have two hdb folders, they are same except the date.

--
You received this message because you are subscribed to the Google Groups "Kdb+ Personal Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to personal-kdbplus+unsubscribe@googlegroups.com.
To post to this group, send email to personal-kdbplus@googlegroups.com.
Visit this group at https://groups.google.com/group/personal-kdbplus.
For more options, visit https://groups.google.com/d/optout.


basically, re-enumerate one by the other's symfile, then you can
manipulate the data as you like

should be something like

\l hdb2
\l dbmaint.q
{fncol'[`:.;x;exec c from meta x where
t="s";`:/path/to/hdb1/sym?get@]}each{x where -1h=(type .Q.qp get@)each
x}tables[]