DESL


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

( GA) Example(s) of the use of the DESL copy command.


(See the command details for the copy command.)

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

copy
files r10 thru r15 alpha gt 0
newfiles xr10 thru xr15 go

This execution of "copy" will attempt to produce six new
files : "xr10", "xr11",...,"xr15 Each of the named files,
"r10","r11",..., will be copied to the corresponding new
file . However, only records which correspond to a value of the
variable "alpha" which is greater than 0 will be retained
in the new files. If no records from a file satisfy this
condition, then the corresponding new file will be empty.
Since no "names" are specified, ALL SIF variables will be
retained in the records being copied.

copy
files r16 thru r14 r10 names alpha beta
nf,1 = nf1 run point theta gt -2 theta lt 2 go

This execution of "copy" will attempt to produce four new
files whose names will, implicitly, since no "newfiles" names
were specified, be of the style "gen" plus a unique numeric
suffix. Note that it is perfectly legitimate for an implied
list of names to be decrementing rather than incrementing.
Since "names" is specified, only the variables "alpha",
"beta", "nf1", "run", and "point" will be retained in the
records being copied. Also, the variable "nf1" will have
its name changed to "nf,1" on the new files. Since two global
conditions are specified, only records which satisfy both of
them simultaneously will be copied; ie, only records which
contain values of the variable "theta" which are between -2
and 2, inclusive, will be copied.

copy
nonewfiles files r10 regset 1 alpha 11 2 go

This execution of "copy" will NOT produce any new files
because "nonewfiles" has been specified. The only purpose
of doing this copy is to set User Value register 11 to
the value the variable "alpha" has in the second record of
the file "r10".

copy
files r16 names point config pinf ptinf q
expand xcp cp101 thru cp133 newfiles nr16 go

This execution of "copy" will attempt to produce one new
file whose names will be "nr16".
Since "names" is specified and "expand" is also specified
each record in "r16" will be expanded into 33 new records.
Each of the 33 new records originating from an existing
record will contain "point", "config", "pinf", "ptinf",
"q", and "xcp". All of these variables except "xcp", in each
of the 33 new records will have the SAME respective values.
Only the the value of the "xcp" variable will change per
record. In the first new record "xcp" will have the value
that "cp101" had in the original record. In the second new
record "xcp" will have the value "cp102" had in the original
record, and so on.


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.