ASPL Manual v 1.00
© 2024 by SetSphere.COM
[Comparing JDBC INFORMIX JAR Files]
WORKSPACE JDBCINFORMIX DESCRIPTION:
This is workspace is used to show how to use ASPL set operators to compare Java JDBC INFORMIX JAR files by using the partitioning set operators. In the tutorial the 'aspl >' refers to the ASPL prompt, and the '#' refers to the shell prompt.
# aspl -wsname JDBCINFORMIX -groupingclass POSIX
start ASPL by loading JDBCINFORMIX workspace
aspl> ifxjdbc1 = ggdir(dir,/tmp/JDBC/ifxjdbc1,nmdir,*,nmfl,*,calchksum,1,calentropy,1)
(ifxjdbc1 is assigned to content of /tmp/JDBC/ifxjdbc1 with labeled group /tmp/JDBC/ifxjdbc1)
aspl> ifxjdbc2 = ggdir(dir,/tmp/JDBC/ifxjdbc2,nmdir,*,nmfl,*,calchksum,1,calentropy,1)
(ifxjdbc2 is assigned to content of /tmp/JDBC/ifxjdbc2 with labeled group /tmp/JDBC/ifxjdbc2)
aspl> ifxjdbc3 = ggdir(dir,/tmp/JDBC/ifxjdbc3,nmdir,*,nmfl,*,calchksum,1,calentropy,1)
(ifxjdbc3 is assigned to content of /tmp/JDBC/ifxjdbc3 with labeled group /tmp/JDBC/ifxjdbc3)
aspl> v
(to view the set variables)
aspl> sim ifxjdbc1 ifxjdbc2 ifxjdbc3
(show similarities between ifxjdbc1 ifxjdbc2 ifxjdbc3)
aspl> sim`fflc ifxjdbc1 ifxjdbc2 ifxjdbc3
(show similarities between the file checksums in ifxjdbc1 ifxjdbc2 ifxjdbc3)
aspl> density ifxjdbc1 ifxjdbc2 ifxjdbc3
(show density of ifxjdbc1 ifxjdbc2 ifxjdbc3)
aspl> ks
(print the ks vector)
We are mainly interested in the files chksum so we can exclude the mtime
aspl> ks chksum ppdd ffl
(set ks vector)
aspl> fP ifxjdbc1 ifxjdbc2 ifxjdbc3
(partition according to the elements ifxjdbc1 ifxjdbc2 ifxjdbc3)
aspl> fP`c= ifxjdbc1 ifxjdbc2 ifxjdbc3
(partition according to the elements (w. equal checksums) ifxjdbc1 ifxjdbc2 ifxjdbc3)
aspl> fP`c~ ifxjdbc1 ifxjdbc2 ifxjdbc3
(partition according to the elements (w. different checksums) fP`c= ifxjdbc1 ifxjdbc2 ifxjdbc3)
aspl> f%&`c= ifxjdbc1 ifxjdbc2
(compare by showing the alignment (w. equal checksums) between ifxjdbc1 and ifxjdbc2)
aspl> f%&`c= ifxjdbc1 ifxjdbc3
(compare by showing the alignment (w. equal checksums) between ifxjdbc1 and ifxjdbc3)
aspl> f%&`c~ ifxjdbc1 ifxjdbc2
(compare by showing the alignment (w. different checksums) between ifxjdbc1 and ifxjdbc2)
aspl> f%U ifxjdbc1 ifxjdbc3
(compare by showing the alignment between ifxjdbc1 and ifxjdbc3)
aspl> gP ifxjdbc1 ifxjdbc2 ifxjdbc3
(partition according to the files and directories ifxjdbc1 ifxjdbc2 ifxjdbc3)
aspl> dP ifxjdbc1 ifxjdbc2 ifxjdbc3
(partition according to subgroups or directories ifxjdbc1 ifxjdbc2 ifxjdbc3)
aspl> f\ ifxjdbc1 ifxjdbc2
(show the difference between ifxjdbc1 and ifxjdbc2)
aspl> f\ ifxjdbc2 ifxjdbc1
(show the difference between ifxjdbc2 and ifxjdbc1)
This example is shown in the following terminal.
terminal for example: Comparing JDBC INFORMIX JAR Files