Replacer
Model
File Word Replacer
Information
Exchange Group, Inc.
Each
LINC platform has its own set of reserved words
dictated by the underlying database and application language software. When transporting production LINC system
specifications from one platform to another, some names, which were acceptable
on the host platform, become unusable on the target platform.
Although
LDA can help identify the reserved words, some case extract models will not
load properly into LDA due to naming
conflicts.
The
challenge is then to replace words in the model file intelligently and within
usage context. REPLACER reads a parameter file of words and
replacements and applies them throughout a model consistently and in proper
context.
The
parameter file is a plain text file
where each record describes a target word and its replacements in
"comma-quote" delimited format.
The sequence of entries in each record is:
1.
The
"Target" word to replace
2.
The
replacement word if found as an ISPEC data item name
3.
The
replacement word if found as a Global Logic name
4.
The
replacement word if found as an ISPEC name
5.
The
replacement word if found as a Report name
6.
The
replacement word if found as an SD or GSD
Empty
(null) replacement words signify no replacement is to take place for that type
of word. Replacement words cannot be
longer than the target as this could cause line overflow in logic. The target word must not be qualified.
REPLACER
provides an audit of all replacements and summarizes them by target and
replacement type. A special case of the
replacement word being "*****"
for an ISPEC data name causes the word to be shown in the audit, but not
replaced.
"NAME","NAIM","
"," "," ","SNAM"
The example instructs REPLACER to replace all
ISPEC definitions of NAME and all their logic and Report frame paint references
to NAIM, and all SD and GSD definitions of NAME and their logic references to
SNAM.
This text file can also be maintained by Replacer
itself.
This is useful when determining all locations
in the model where certain words are used, such as "START",
"CALL", or "GLB.DESTINATION.".. This can produce a cross
reference of where LINC verbs are used.
When listing a LINC verb the semi-colon ";" is not entered.
"CALL","*****","
"," "," ",""
ã
Copyrighted 1995-2008 Information Exchange Group, Inc.