DESL


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

( HV) Example(s) of the use of the DESL spawn command.


(See the command details for the spawn command.)

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

spawn
files test10 at polar .5 newforms "run" polar 2
go

This execution of "spawn" will cause the records of file
"test10" to be sequentially examined for changes in the
value of "polar". At the position in the file where the
value of "polar" changes by more than .5, a new file
will be spawned. New files thus generated will be named,
if the values of "polar" encountered were, for example,
10, 11, and 12, "run10", "run11" and "run12", assuming that
these files did not already exist in the current directory.

spawn
files r10 r11 r12 newforms "rx" run 3 sortnames alpha
go

This execution of "spawn" will cause the records of files
"r10", "r11", and "r12" to be sorted on "alpha" before
they are copied to their respective new files which will be
named, if the values of "run" encountered were, for example,
10, 11, and 12, "rx10", "rx11" and "rx12", assuming that
these files did not already exist in the current directory.
This "spawn" example represents a case in which the ONLY
reason for doing the spawn is to sort the records of each of
the three files specified to result in files whose records
contain values of "alpha" which are sequentially increasing.

spawn
files gen1 newformx "Run" run -3 >list
at run sortnames run incr alpha decr
go

This execution of "spawn" will cause the records of file
"gen1" to be sequentially examined for changes in the
value of "run". At the position in the file where the
value of "run" changes by more than the default amount of 5%,
a new file will be spawned. New files thus generated will
be named, if the values of "run" encountered were, for example,
10, 11, and 12, "run10", "run11" and "run12", assuming that
these files did not already exist in the current directory.
more

Since "sortnames" has also been specified, BEFORE the file
"gen1" is read and possibly broken up, its records will
be sorted based on the values of a primary sort variable
"run" and, then, within spans of records where the value
"run" is constant, sorted on the secondary sort variable
"alpha". The order of the file's records after the primary
sort based on "run" has been completed is such that values
of "run" are INCREASING. The order of the records, within
sections of the file where the value of "run" is constant,
is such that values of the secondary sort variable "alpha"
are DECREASING.


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.