Hi everyone,
I am looking for a method to check if two (or more) variables are identical to each other (i.e. if the content is identical), independently of the data type (float, byte, str, etc.). I could do the check visually, but on a database with more than 7 million observations, I can't.
Does anyone have a little trick for this? It will save me a lot of time (and less gray hair by the way).
For my variable c, the code is defined as follows. 10 is equivalent to FR, and 2 to BE. In theory, the content in `c` is supposed to be "the same" as the one in `c_cod`.
Thank you in advance!
Best regards,
I am looking for a method to check if two (or more) variables are identical to each other (i.e. if the content is identical), independently of the data type (float, byte, str, etc.). I could do the check visually, but on a database with more than 7 million observations, I can't.
Does anyone have a little trick for this? It will save me a lot of time (and less gray hair by the way).
Code:
* Example generated by -dataex-. For more info, type help dataex clear input long i float t byte c str2 c_cod 1415 724 10 "FR" 1415 725 10 "FR" 1415 726 10 "FR" 1415 727 10 "FR" 1415 728 10 "FR" 1415 729 10 "FR" 1415 730 10 "FR" 1415 731 10 "FR" 1415 732 10 "FR" 1415 733 10 "FR" 1415 734 10 "FR" 1415 735 10 "FR" 1415 736 10 "FR" 1415 737 10 "FR" 1477 712 2 "BE" 1477 713 2 "BE" 1477 714 2 "BE" 1477 727 2 "BE" 1477 728 2 "BE" 1477 729 2 "BE" 1477 730 2 "BE" 1477 731 2 "BE" 1477 732 2 "BE" 1477 733 2 "BE" 1477 734 2 "BE" end format %tm t label values c clab label def clab 2 "BE", modify label def clab 10 "FR", modify label def clab 22 "VD", modify
Thank you in advance!
Best regards,
Comment