ASPL 1> DEF FN cmp2sets := {gU {g\, %%1 %%2}{g\, %%2 %%1}{g&, %%1 %%2}}
define the comparison function cmp2sets
ASPL 2> timeout 60
set timeout to 60 seconds
ASPL 3> displayoff
turn off display
ASPL 4> jar1 = ggjar(jarfile,/tmp/JMX/2281258-wasjmx.jar,calchksum,1,calentropy,1)
jar1 set variable is assigned to the group of files of /tmp/JMX/2281258-wasjmx.jar
ASPL 5> jar2 = ggjar(jarfile,/tmp/JMX/2376115-wasjmx.jar,calchksum,1,calentropy,1)
jar2 set variable is assigned to the group of files of /tmp/JMX/2376115-wasjmx.jar
ASPL 6> displayon
turn on display
ASPL 7> ks chksum size ffl
set ks vector to chksum size ffl
ASPL 8> print # SHOWING SET COMPARISONS BETWEEN JAR FILES
ASPL 9> FN cmp2sets(jar1,jar2)
display the comparison between jar1 and jar2
ASPL 10> print # SHOWING SUBDIRECTORIES UNION BETWEEN JAR FILES
ASPL 11> dU jar1 jar2
blablabla ASPL 11> dU jar1 jar2
display the union of subdirectories between jar1 and jar2
ASPL 12> print # SHOWING SUBDIRECTORIES IN ONE NOT IN THE OTHER
ASPL 13> dD jar1 jar2
display the subdirectories which are in one not in the other
ASPL 14> print # SHOWING FILES IN ONE NOT IN THE OTHER
ASPL 15> fD jar1 jar2
blablabla ASPL 15> fD jar1 jar2
display the files which are in one not in the other
ASPL 16> print # SHOWING FILES UNION BETWEEN JAR FILES
ASPL 17> fU jar1 jar2
display the files union between jar1 and jar2
ASPL 18> print # SHOWING FILES INTERSECTION WITH DIFFERENT CHECKSUMS
ASPL 19> f&`
c~ jar1 jar2
display the files intersection (by the same name) with different checksum
ASPL 20> print # SHOWING FILES INTERSECTION WITH SAME CHECKSUMS
ASPL 21> f&`
c= jar1 jar2
display the files intersection (by the same name) with same checksum
ASPL 22> print # SHOWING SET SIMILARITY BETWEEN BOTH JAR FILES
ASPL 23> sim jar1 jar2
display the similarity between jar1 and jar2
ASPL 24> print # SHOWING SET SIMILARITY CONSIDER FILES CHECKSUMS
ASPL 25> sim`
fflc jar1 jar2
display the similarity between jar1 and jar2 but consider the files checksum