DESL


DESL Home | Website Outline | Commands | Examples | Download | Contacts

( IS) Example(s) of the use of the DESL diff command.


(See the command details for the diff command.)

Example(s) of the use of the diff command :

diff
files run45 run45x names alpha alpw
output dif45 go

In this example, the two SIF files "run45" and "run45x" will
be compared record by record. If one file has fewer DATA
records than the other, the shorter file will determine the
number of comparable records. Here, the variable "alpha"
from the first file and "alpw" from the second file will
be compared. Since the default tolerance is 0, implying
an exact match is required, only those pairs of records
in which alpha = alpw, from the respective files, are
identical, will NOT be included - i.e., if the DIFFerence
between alpha and alpw is more than tol (=0.) then there
will be a corresponding line written to the output file
"dif45" showing the two values, the tolerance and the
difference.

diff
files r10 r11
dnames alpw alpw mach mach cl cl .01
cd cd cms .2 cms beta beta -.1
tol -3.5
tags point point
output out
lines 10000
go

In this example, the two SIF files "r10" and "r11" will
be compared record by record. If one file has fewer DATA
records than the other, the shorter file will determine the
number of comparable records. Here, the variable "alpw"
from the first file and "alpw" from the second file will
be compared. Additionally, the variables "mach", "cl",
"cd", "cms" and "beta" from both files will be compared.
The values that may follow one or the other of the names
is an overriding tolerance value, superceding the 3.5%
default tolerance value. At the top of each record's
"difference" lines will be one line with the record's
"tag" values of the respective two values of "point" and
"point". The output is desired to be written to a file
named "out" and will be allowed to have 10000 lines per
logical page.

diff
files r10 r11 alpw gt 0
dnameset 1 alpw cl .01 cms beta -.1
dnameset 2 alpw cl xcms beta
tol -2
tags run run point point
align point pt
go

In this example, the two SIF files "r10" and "r11" will
be compared record by record for records in which the values
of "alpw" are greater than 0 and, since there are alignment
variables "point" and "pt", respectively, specified, only
the records in which there is an exact match for "point"
and "pt". The default tolerance value of 2% is overridden
for the variable pairs "cl"/"cl" and "beta"/"beta"


DESL Home | Website Outline | Commands | Examples | Download | Contacts



ViGYAN, Inc.


DESL Manager at ViGYAN, Inc.

30 Research Drive
Hampton, VA 23666
Voice: (757) 865-1400
Toll Free: (800) 288-3998
FAX: (757) 865-8177

© 1998 ViGYAN, Inc.