Syntax:
Unix:
twk_put [-model model_name | -check_only]
[-input file_name] [-config config_file]
[-errorfile file_name] [-all_of_type object_type ...]...
[-object obj_name -type obj_type]... [-keep_note_name]
[-help [help_dir] | -syntax [help_dir] | -version] [-options]
[-arg_input filename] [-noheader] [-quiet] [-ask]
[-unix] [-vms] [-os2]
VMS:
twk_put [/model=model_name | /check_only]
[/input=file_name] [/config=config_file]
[/errorfile=file_name] [/all_of_type=object_type ...]...
[/object=obj_name /type=obj_type]... [/keep_note_name]
[/help[=help_dir] | /syntax[=help_dir] | /version] [/options]
[/arg_input=filename] [/noheader] [/quiet] [/ask]
[/unix] [/vms] [/os2]
OS/2:
twk_put [/model:model_name | /check_only]
[/input:file_name] [/config:config_file]
[/errorfile:file_name] [/all_of_type:object_type ...]...
[/object:obj_name /type:obj_type]... [/keep_note_name]
[/help[:help_dir] | /syntax[:help_dir] | /version] [/options]
[/arg_input:filename] [/noheader] [/quiet] [/ask]
[/unix] [/vms] [/os2]
Program Description:
twk_put loads the ASCII constructs in a CDIF file into a
model as model objects. twk_get creates the CDIF files.
Options:
model <model_name> Specifies a model name
check_only Specifies a syntax check only.
(No objects are written.)
input Specifies the input file (default: stdin)
config <file_name> Specifies a configuration file
(default: /cadre/tsa/config_file)
errorfile <file_name> Specifies an error file (default: stderr)
all_of_type Specifies all of one type (default: all obj types)
Object types include:
ASG Ada Structure Graph
DDE Data Dictionary Entry
DFD Data Flow Diagram
ERD Entity Relationship Diagram
Matrix includes
Decision Table
Process Activation Table
State Event Matrix
M-Spec Module Specification
P-Spec Process Specification
Picture Picture Note
STD State Transition Diagram
SC Structure Chart
Text Text Note
object <obj_name> Specifies the name of the object(s) to be dumped
type <obj_type> Specifies the type of the object(s) to be dumped
keep_note_name Attempts to keep the same note names
in the target model
help <help_dir> Shows the full help screen (this information)
and quits. The optional argument specifies
the help directory.
syntax <help_dir> Shows the short help screen (syntax lines only)
and quits. The optional argument specifies
the help directory.
version Shows the program header with the version
and quits.
options Shows the command line options chosen before
program execution.
arg_input <filename> Indicates more command line options are in
the file 'filename'.
noheader Suppresses display of the program header
before program execution.
quiet Suppresses status messages during
program execution.
ask Prompt user for the entry of command line
options not provided.
unix Allow entry of options in Unix format
(-example_option).
vms Allow entry of options in VMS format
(/example_option).
os2 Allow entry of options in OS2 format
(/example_option).
Examples:
1) Load all objects in the file "myfile" using the model specified in
the same file:
twk_put -input myfile
2) Do a syntax check of the file "myfile":
twk_put -input myfile -check_only
3) Load all objects in file "myfile" into model "mymodel" using config file
"/joe/config":
twk_put -model mymodel -input myfile -config /joe/config
4) Load all objects from file "myfile" sending errors to "/joe/error_log":
twk_put -model mymodel -input myfile -errorfile /joe/config_file
5) Load all DFDs from "myfile" into the model "mymodel":
twk_put -model mymodel -input myfile -all_for_type dfd