CY) Details concerning the DESL
diff command.The DESL "diff" function allows the user to display, or have written to a file, for two SIF files specified, a report of the named variables from each file whose differences are outside of the specified or implied tolerance bounds.
If a non-aligned ("align" not specified) report is desired then the file with the fewer number of qualifying records will determine the length of the report. There will be one entry in the report per record pair up to the number of records in the file with the fewer number of records. In each instance in which the existing variables exist report entries will be made in which the differences are outside of the tolerance. This type of report should be used when it is known that both of the files being compared have the same number of records.
If an aligned ("align" is specified) report is desired then the variable values whose differences are outside of the tolerance from the two files being compared will be included in the report IF there are corresponding variable values that are equal, as encountered as each file is read sequentially. Since the align variable values need to match for a record to be included in the report and since it is assumed that the align variable values are in an increasing order after the first records are read each file is read, in any alternating order required, in order to find matching values.
| . |
(Begin modifications on 111603)
It is also assumed that the FIRST file of the pair of files is
the one that determines what the "next" value of the align
variable is supposed to be. Therefore, missing records will
always be, if there are any, from the SECOND file of the pair.
(End modifications on 111603) |
Any names enclosed in brackets are required or are in a set of options, one of which must be specified. Any non-blinking names enclosed in brackets are optional or are in a set of options, only one of which can be specified.
In cases where the option name is one of a set each different set number is indicated by a red numeric set number superscript trailing the respectiveright bracket :
CYalign)
(Command :diff) Details for the align option.There is an implicit assumption that both of the files in each pair of files is ALREADY ordered in an INCREASING manner with respect to the values of each of the two alignment variables.
If records in one of the files are skipped in order to
to try to attain an alignment then the label
| . |
(Begin modifications on 111603)
It is also assumed that the FIRST file of the pair
of files is the one that determines what the "next"
value of the align variable is supposed to be.
Therefore, missing records will always be, if there
are any, from the SECOND file of the pair.
(End modifications on 111603) |
Example : align point pt
CYbackward)
(Command :diff) Details for the backward option.
CYcset)
(Command :diff) Details for the cset option.
The item immediately following "cset" is the file sequence number in the "files" list for which the following up-to-20 conditions will be applicable.
Each file-specific 3-item condition, like its global 3-item condition counterpart, is made up of (1) a SIF variable name, (2) a 2-character logical conjunction, and (3) a second SIF variable name or a constant.
Example : cset 3 alpha gt phi mach lt 1.2
Here, the user has indicated that, along with whatever
other GLOBAL conditions may have been specified, the
pertinent DESL function, for the THIRD file specified
or implied by the "files" list, will have its application
ALSO limited to records which satisfy BOTH of the two
conditions :
All file-specific conditions are implicitly joined by
an "and" conjunction; ie, by default, all file-specific
conditions would have to be true SIMULTANEOUSLY for
the applicable record to be retained.
If one or more file-specific conditions following
the file sequence number is to be connected to other
file-specific conditions for the same file number by
an "or" conjunction, then the 2-character item "or"
must immediately follow the file number.
Example : cset 2 or alpha lt 0 alpha gt 4
Here, the user has indicated that, along with whatever
other GLOBAL conditions may have been specified, the
pertinent DESL function, for
the SECOND file specified
or implied by the "files" list, will have its application
ALSO limited to records in which the value of the SIF
variable "alpha" satisfies at least ONE of the conditions :
Additionally, if the file number following the "cset"
option is negative, the absolute value of this negative
file number is used for the actual file number and the
associated "and" or "or" condition(s) are NOT used in the
traditional sense of filtering the records read but
are ONLY used to indicate when READING of the associated
file is to STOP. This ability is useful in preventing
the reading of a long file when it is known that the
data required is relatively near the beginning of the
file.
Example : cset -1 or run eq 3 alpha gt 24
Here, the user has indicated that when a record is
encountered for which either or both of the two conditions
is/are TRUE, reading of the current SIF file should end.
CYeqtol)
(Command :diff) Details for the eqtol option.Example : eqtol .5
CYfiles)
(Command :diff) Details for the files option.
This list of files can be implicitly extended via use of the <list argument which can appear among the specified file names. If one or more of the <list-type arguments are specified, where "list" is a currently defined file name list, the file names contained in the indicated file name list(s) will be included, at their respective point(s) of encounter, in the current file list. The referenced list(s) must have been produced by the "newfiles" and/or "newfilex" argument lists associated with one or more previously executed DESL commands. Each "list" name can be up to 15 characters long. File names can also include the {...} construct. This type specification within a file name implies that the list name given between the curly brackets ( {} ), is to be used to have each of its elements substituted in turn for the { ... }, inclusively, such that an implicit lengthening of the file list is accomplished, up to the maximum number of files allowed. Any time such a {...} usage occurs, all lists mentioned must exist; i.e., must have been previously defined in the current DESL session. Only one {...} construct can be included in a file name. Including more than one such construct will result in unpredictable results.
An example of this type of file name specification is the following :
t43r{runs}.sif
Here, the list "runs" will have its elements used, in turn, in place of the {runs} substring.
Each file name, whether it includes the {...} or not, can be a maximum of 256 characters long. If a file name is more than 16 characters long it must be enclosed in question marks (?) .
Two files must be explicitly or implicitly specified.
Example : files run16 Example : lines 44
Example : dnames alpha alphax beta beta -.01
Example : dnameset 2 alpha beta -.01
Example : output out1
An example of such a file is the following :
Example : pathfile pathA
Example : paths ..\ ..\Main\ sub1\
(Begin modifications on 082606)
(End modifications on 082606)
Example : tags run run point pt
Example : tol .5
DESL Manager at ViGYAN, Inc.
CYlines)
(Command :diff) Details for the lines option.
CYdnames)
(Command :diff) Details for the dnames option.
CYdnameset)
(Command :diff) Details for the dnameset option.
CYnoop)
(Command :diff) Details for the noop option.
CYoutput)
(Command :diff) Details for the output option.
CYpathfile)
(Command :diff) Details for the pathfile option.
*
* Example path file for test xxx
*
* item 1 = path to be translated : MUST
* match VERBATIM with name given
* specified/implied via "paths"
*
* item 2 = resulting name translation
*
data56 ? \usr\home2\ people\test56\ ?
up ?..\?
way-up ? ..\..\..\ Temp46\?
CYpaths)
(Command :diff) Details for the paths option..
CYratio)
(Command :diff) Details for the ratio option.
CYtags)
(Command :diff) Details for the tags option.
CYtol)
(Command :diff) Details for the tol option.
30 Research Drive
Hampton, VA 23666
Voice: (757) 865-1400
Toll Free: (800) 288-3998
FAX: (757) 865-8177
© 1998 ViGYAN, Inc.