JPH10301921A - Method for synthesizing character string group selected from character string data file with another data and computer-readable recording medium having recorded program - Google Patents

Method for synthesizing character string group selected from character string data file with another data and computer-readable recording medium having recorded program

Info

Publication number
JPH10301921A
JPH10301921A JP9126464A JP12646497A JPH10301921A JP H10301921 A JPH10301921 A JP H10301921A JP 9126464 A JP9126464 A JP 9126464A JP 12646497 A JP12646497 A JP 12646497A JP H10301921 A JPH10301921 A JP H10301921A
Authority
JP
Japan
Prior art keywords
character string
variable
line
item
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP9126464A
Other languages
Japanese (ja)
Inventor
Katsuro Sasai
克郎 佐々井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to JP9126464A priority Critical patent/JPH10301921A/en
Publication of JPH10301921A publication Critical patent/JPH10301921A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PROBLEM TO BE SOLVED: To obtain document data to which a character string of another data is inserted or connected. SOLUTION: In the method, the variable names or the like of character variables are included in any of items of a data file consisting of plural lines each of which consists of plural items including one or more character string storinig items, and required lines less than a condition to be satisfied are extracted or selected. The values of character string variables having the variable names included in the data of the data file are substituted for a series of sequential character string variables separately prepared. The substituted values are inserted or connected into/with the other part of a character string to be obtained finally in fixed order. The method includes the execution of a program including these processes. These processes are recorded in a computer-readable recording medium.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、コンピュータを用いて
データの差込みされた定型文等を得る為の方法、又はそ
の為のプログラム又は構造を有するデータとプログラム
とを記録したコンピューター読み取り可能な記録媒体に
関する。より詳しくは、本発明は、定型文が複雑な可変
部を含んでいる場合や、その全体の長さが大きく変化す
る場合や、多種類の定型文を扱わなければならない場合
などに適した、データの差込みされた定型文等を得るた
めの方法、又は、そのためのプログラムを記録したコン
ピューター読み取り可能な記録媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for obtaining a fixed phrase or the like in which data is inserted by using a computer, or a computer-readable recording in which data and a program having the program or structure for the method are recorded. Regarding the medium. More specifically, the present invention is suitable for a case where a fixed phrase includes a complicated variable portion, a case where the entire length greatly changes, and a case where a large variety of fixed phrases must be handled. The present invention relates to a method for obtaining a fixed phrase or the like into which data is inserted, or a computer-readable recording medium on which a program for the method is recorded.

【0002】[0002]

【従来の技術】コンピュータの処理速度がますます速く
なり、処理に時間がかかっていた市販のパソコン用のリ
レーショナルデータベースソフトウェア等による大規模
かつ複雑な事務処理が、処理速度の面でも実施可能とな
ってきた。一方、時代の変化はめまぐるしく、種々のデ
ータを取り込んだ定型文の自動打ち出し用のソフトウェ
アシステム等を構築しても、頻繁に内容が変り得る。こ
のため、開発に時間を要し、変更するにも専門知識を有
する人員及び時間と手間を要するプログラミング言語の
システム構築は、コンピューターのユーザーにとり次第
に不都合なものとなりつつある。
2. Description of the Related Art The processing speed of computers has become faster and faster, and large-scale and complicated office work using relational database software for commercially available personal computers, which took a long time, can now be performed in terms of processing speed. Have been. On the other hand, the era is changing rapidly, and even if a software system or the like for automatically launching fixed phrases incorporating various data can be changed frequently. For this reason, the development of a programming language system that requires time for development and has specialized knowledge to change and a programming language that requires time and effort is becoming increasingly inconvenient for computer users.

【0003】外部記憶装置に記録されたデータファイル
のデータを、定型文作成用のデータファイルに差込んで
文書データをプログラムにより自動的に出力することは
多くの表計算ソフトウェア、及びデータベースソフトウ
ェアで可能である。又市販のワードプロセッサのあるも
のは、別途用意したデータを文書ファイルの指定場所に
差込んで半自動的に出力する機能を有している。このよ
うな使い方は事務処理上の省力化に於いて、依然コンピ
ューターを用いるのが最も有効となる分野の一つであ
る。
[0003] Many spreadsheet software and database software can automatically insert document data into a data file for creating fixed phrases and automatically output document data by using a program. It is. Some commercially available word processors have a function of inserting separately prepared data into a designated location of a document file and outputting semi-automatically. Such usage is one of the fields where the use of a computer is still most effective in labor saving in paperwork.

【0004】[0004]

【発明が解決しようとする課題】しかし上記のようなや
り方は、差込みされるデータの加工はある程度可能であ
るかもしれないが、データが差込みされる一つの文書書
式に基づいて、準備してある差込み部分のみしか変化し
ないという意味に於いては、1種類の形式の文書しか作
成出来ない。一方、定型の手紙や申請書類は、沢山ある
形式のなかの一つの形式にも、少しづつ異なる部分が沢
山ある場合が多く、僅かに様式の異なるいくつもの形式
の文書が必要となる場合が多い。
However, although the above-mentioned method may be capable of processing the data to be inserted to some extent, it is prepared based on one document format into which the data is to be inserted. In the sense that only the insertion portion changes, only one type of document can be created. On the other hand, fixed letters and application documents often have slightly different parts in one of many formats, and often require documents in several formats with slightly different formats. .

【0005】印刷機で印刷したした定型の手紙等を用い
る場合には、内容が多種多様の印刷物を作れば、コスト
もかかり、在庫管理も面倒で、また印刷したものの保管
場所に多くの空間を要し、従って多目的を一種類の書式
ですまそうとして、余分な記載を含めた択一方式のもの
を作成とすると、必要な情報の不足や余分な文章の存在
の為に、受け取った顧客その他に誤認を生じやすいか、
又は不快感を与えやすいものとなりがちである。
[0005] In the case of using a standard letter or the like printed by a printing machine, if a variety of printed matters are produced, it is costly, inventory management is troublesome, and a lot of space is required in a storage place for the printed matter. Therefore, if you try to use a single format for multi-purpose, and create an alternative method that includes extra information, you will not receive the necessary information or the presence of extra text, Are misleading,
Or it tends to give discomfort.

【0006】そこで、そのようないくつもの文書が必要
な場合にソフトウェアにより手紙その他の種々の文書の
自動打ち出しシステムを構築しようとすると、その数だ
けのおびただしい種類のデータ差込みされる文書書式が
必要となり、その作成作業は煩雑又は場合によっては困
難であって、外部メモリーをいたずらに使用し、又は目
的の文書書式を選び出すためにも、プログラム中に多く
のファイル名の異なる文書書式のファイルを記載してお
く必要があって、ファイル名が多い分だけプログラムは
複雑化し、また、それだけ別の目的にはファイル名選択
が制限されてしまう。
[0006] Therefore, if an attempt is made to construct a system for automatically publishing letters and other various documents by software when a number of such documents are required, a number of document formats in which a large number of types of data are inserted are required. In order to use the external memory unnecessarily or to select the desired document format, a lot of document formats with different file names must be described in the program. The more files there are, the more complicated the program becomes, and the more restrictive the file name selection is for other purposes.

【0007】更には、ある形式の文書に差込まなければ
ならないデータの数が可変であるときは、最大数の差込
み場所を準備する必要があるので、印刷するときの紙の
スペースの無駄や、必要情報だけを出力することが出来
ない等の欠点を生じてしまう。従って、そのような理
由、及び多くの文書書式の準備と選択のやっかいさの理
由から、データ数が可変の場合や、文書書式の数が多く
なりすぎる場合には、結局人手によりワードプロセッサ
を編集しながら可変部分を書き換えるほうが体裁がよ
く、またそのほうが簡単となる場合さえも多い。
Further, when the number of data to be inserted into a document of a certain format is variable, it is necessary to prepare the maximum number of insertion sites, so that waste of paper space when printing is made, There are disadvantages such as the inability to output only necessary information. Therefore, if the number of data is variable or the number of document formats becomes too large for such a reason and the difficulty of preparing and selecting many document formats, it is necessary to edit the word processor manually after all. However, it is better to rewrite the variable part, and it is often easier.

【0008】プログラムにより自動的に作成される文書
を、出来た時点で更にワードプロセッサで書き加えをす
る場合には、実行中のプログラムを操作する人とワード
プロセッサで書き加えをする人が同じであるのが一般的
であるから、ワードプロセッサに於いて何のメッセージ
も無しに書き加えが出来且つ書き加えることを忘れるこ
とがないほど、その分野に熟知し且つ抜け目の無い人で
ないとプログラムを操作出来ないということになってし
まう。書き加えの文章の要不要がメッセージのあるプロ
グラムに於いて選択できれば、それほど熟知していない
人でも操作が可能となる。
When a document automatically created by a program is further added by a word processor at the time of completion, the person who operates the program being executed and the person who adds by a word processor are the same. Is so common that you can add to it without any message in a word processor and remember that you can only operate the program if you are familiar with the field and a savvy person It will be. If it is possible to select the necessity of additional text in a program with a message, even a person who is not very familiar can operate.

【0009】このように、従来、ただ一つの定型文書に
データを差込みして多様な文章を自動出力するには、差
込み箇所の個数の変化に対する対応が不十分な問題、不
要部分の削除が不可能である問題、定型文書のデータ差
込みされるべき部分にプログラミングで用いられるあら
ゆる文字列変数や関数を割り当てることが可能でない問
題等があった。
As described above, conventionally, in order to automatically output various texts by inserting data into a single fixed document, there is an insufficient response to a change in the number of insertion points, and it is not necessary to delete unnecessary portions. There was a problem that was possible, a problem that it was not possible to assign all the string variables and functions used in programming to the data insertion part of the standard document.

【0010】本発明者は、前に、変数名と変数の差込み
場所が記録されているテキストファイル(文字列のシー
ケンシャルファイル)にランダムファイルからのデータ
を、変数代入式を含む子プログラムを作成して子プログ
ラムを実行させることにより変数に代入しそのテキスト
ファイルへ差込むベーシックプログラムを作成した。こ
のプログラムは、差込みデータ部分に値がない行を削除
することは出来るものの、多くのテキストファイルから
必要なテキストファイルのみを条件に従って選択するこ
とをしなかった為に、例えば種々の定型文の手紙は一つ
一つ別々のシーケンシャルファイル等が必要となった。
しかし、シーケンシャルファイルはワードプロセッサに
より容易に編集、訂正が可能であるにも拘らず、定型文
一つをとってみてもそれが微妙に変化した修飾形の文書
を沢山作る必要があり、特に、場合に応じてあるべきパ
ラグラフ、あるべきでないパラグラフの処理がプログラ
ム上非常にやっかいである。
The inventor previously created a child program including a variable file and data from a random file in a text file (sequential file of character strings) in which variable names and variable insertion locations are recorded. By executing the child program, we created a basic program that substitutes variables and inserts them into the text file. This program can delete lines with no value in the insertion data part, but did not select only necessary text files from many text files according to the conditions. Required separate and sequential files.
However, although sequential files can be easily edited and corrected by a word processor, it is necessary to create a large number of modified documents that are slightly changed even if one fixed phrase is taken. The processing of paragraphs that should be and paragraphs that should not be is very troublesome in a program.

【0011】また、プログラミングの段階に於いては、
目的とする文書を作成すると共にプログラムも作成しな
ければならない。これら文書とプログラムとは、別々の
ソフトウェアにより作成されるのが一般である。一方、
定型文書について言えば、多少の違いがあるだけで別の
ファイルにならざるを得ない為に沢山の定型文書の為の
ファイルが存在することとなる。従って、プログラミン
グ中に、プログラムリストをディスプレイ上で見て、次
にワードプロセッサに切り換えて幾つもの定型文書用の
ファイルを次々に開いては閉じ、ということを繰返して
はじめて、プログラムが完成出来る。この作業は、実際
に行うと想像以上にやっかいなものであり、内容が複雑
になってくると、プログラミングの意欲を挫き得る程に
もなり得る。
In the programming stage,
A program must be created along with the target document. These documents and programs are generally created by separate software. on the other hand,
Speaking of fixed documents, there are many files for fixed documents because there is no other way but to make a separate file with a slight difference. Therefore, the program can be completed only by repeatedly viewing the program list on the display, switching to the word processor during programming, and opening and closing a number of files for the standard document one after another. This task is more troublesome than you might imagine when it is actually done, and as the content gets more complicated, it can frustrate the willingness of programming.

【0012】また、定型文の一つ一つが時代の変化に応
じて書き換える必要があるので、幾つもの定型文用のシ
ーケンシャルファイルと、変化に対応して幾つもの分岐
を生じるプログラムとを、特にプログラムのメモリ領域
が限られる場合では、整合させることは非常に困難をき
わめる。
Further, since each of the fixed phrases needs to be rewritten in accordance with the change of the times, a sequential file for a plurality of fixed phrases and a program which generates a number of branches in response to the change, particularly a program In the case where the memory area is limited, matching is very difficult.

【0013】これらの困難は、一つには、プログラムを
実行していない状態に於いて、多数の文字列のシーケン
シャルファイルを上下に並べて比較しつつ、それらの文
字列から所望の少数の文字列を、プログラムの実行で行
うと同じ方法で、選び出して表示してみることを、簡単
な操作で行っていなかったことによる。このような操作
は、市販されている表形式の表示が可能なリレーショナ
ルデータベースソフトウェア等の表ファイルを利用すれ
ば可能であったものであるが、それを使用する便利さは
予測出来ず、そのようなソフトウェアには書式型のファ
イル(帳票ファイル)が準備されているため、表ファイ
ルに格納されたデータをもとにして文書を作ることも一
般にだれも考えず、また別のファイルからのデータ等を
差込むことの実現可能性、及びそれらのデータを迅速に
印刷することの実現可能性についても予測が出来なかっ
た。
One of the difficulties is that, while a program is not being executed, a sequential file of a large number of character strings is compared side by side, and a desired small number of character strings are extracted from the character strings. Was selected and displayed in the same way as when the program was executed, because it was not done by a simple operation. Such an operation could be performed by using a table file such as a relational database software capable of displaying a table in a commercially available format, but the convenience of using the file cannot be predicted. Software has a format file (form file), so nobody generally considers creating a document based on the data stored in a table file, or data from another file. It was not possible to predict the feasibility of inserting the data and the feasibility of printing the data quickly.

【0014】[0014]

【課題を解決する手段】本発明により、上記の課題が、
以下に記載の本発明の方法、及び本発明のコンピュータ
読み取り可能な記録媒体に記録されているプログラムと
データファイルを用いて、解決できることが発見され
た。即ち、本発明は、(1)『各行が1以上の文字列格
納用項目を含めた複数の項目からなっている、複数の行
からなる構造を有するデータであって、且つ、少なくと
も1以上の行に於いて、文字列変数類{但し文字列変数
類には、プログラム言語で許される文字列変数、該デー
タと異なる別のデータファイルの項目の値を示す記号、
文字列値をとる関数を含むものとする}の変数名、関数
名、項目値を表わす記号等{以下変数名類と呼ぶ}の1
以上を、該文字列格納用項目のいずれかに含んでいる、
予めデータファイル記憶手段に記憶されているデータフ
ァイルのデータから、入力手段により入力された1以上
の入力データに基づく条件式を所定の1以上の項目の値
が満たしている、より少ない行数の所望の行であって、
該変数名類の1以上を含む行が1以上含まれている行だ
けに抽出又は選択することにより、選択行からなるデー
タを得る手順、該選択行の各行につき、該文字列格納項
目に格納されていた値に由来する目的とする文字列を出
力するにあたって、該選択行からなるデータのうちの変
数名類を含む行に於いては、又は変数名類を含む行及び
合成に用いられるべき文字列定数を含む行に於いては、
それらの行中の、文字列格納用項目のうちの少なくとも
1項目に格納されている変数名類が示す文字列変数類の
値又は合成に用いられるべき文字列定数と、他の文字列
格納用項目に格納されている文字列及び/又は同じ文字
列格納用項目に格納されている文字列の他の部分とによ
って、文字列を合成して目的の文字列とし、生じた文字
列群データをファイルに記録及び/又は印刷及び/又は
ディスプレイに表示する手順、をプログラムが含んでお
り、ここで該合成が、 1)イ)親プログラム実行中に、該文字列変数類又は該
文字列定数から別途準備した一連の順番の文字列変数へ
の代入式を有する子プログラムファイルを、子プログラ
ムファイル記録手段に記録した後、該子プログラムに実
行を移し、次いで親プログラムに実行を戻すことによ
り、又は、 ロ)該データファイルの変数名類を示す文字列又は合成
に用いられるべき文字列定数をいずれかの項目中に記録
している各行の、その項目値文字列から、変数名類を示
す文字列又は合成に用いられるべき文字列定数を、メモ
リ上に記録して、それと一致する文字列を、文字列変数
類記録手段に文字列変数類の値とある関係付を有するよ
うに記録されている変数名類のなかから検索し、該当す
るものにつき該関係付けから求められる文字列変数類の
値を、また該当しないものにつき単なる文字列としてそ
のままの文字列値を、別途準備した一連の順番の文字列
変数に代入することにより、一定の順序で、該データフ
ァイルのデータ中に含まれている該変数名類を有してい
る文字列変数類の値及び存在する場合の合成に用いられ
るべき文字列定数値を、該別途準備した一連の順番の文
字列変数に代入し、 2)該代入された別途準備した一連の順番の文字列変数
の値を、文字列格納用項目に格納されている文字列と共
に、該目的とする文字列群を生じる為に、該一定の順序
に従う、置き換え及び/又は連結からなる合成に用いる
こと、からなることを特徴とする、種々の目的の文字列
群の原型を含む該データファイルのデータと、それ以外
のデータとに基づいて、コンピュータプログラムを用い
て特定目的の文字列群を合成する方法』、及び、上記の
方法に含まれる手順を含んでいるプログラム、又は該プ
ログラムと該データファイルのデータとを記録している
コンピュータ読み取り可能な記録媒体、からなる。ここ
で、「合成に用いられるべき文字列定数」が変数名類の
他に所望文字列に合成するのに用いられ得るようにして
いるのは、便宜上データファイル中に削除しない行を示
す記号等を代入できるようにする為であり、この機能は
なくても本発明の効果は実現可能である。以下、「合成
に用いられるべき文字列定数」の点は省略して、変数名
類を所望文字列に合成するのに用いるものとして説明す
る。
According to the present invention, the above-mentioned problems have been solved.
It has been discovered that the problem can be solved by using the method of the present invention described below and the program and data file recorded on the computer-readable recording medium of the present invention. That is, the present invention provides (1) “data having a structure including a plurality of lines, each line including a plurality of items including one or more character string storage items, and at least one or more In the line, character string variables, where character string variables include character string variables permitted in the programming language, symbols indicating values of items of another data file different from the data,
Variable names, function names, symbols representing item values, etc., which include functions that take character string values, etc. {hereafter referred to as variable names} 1
The above is included in any of the character string storage items.
From the data of the data file stored in advance in the data file storage means, the value of the predetermined one or more items satisfies the conditional expression based on the one or more input data input by the input means, The desired line,
A procedure for obtaining data consisting of selected rows by extracting or selecting only those rows that contain one or more rows containing the variable names, storing each row of the selected rows in the character string storage item In outputting the target character string derived from the value that was set, it should be used in the line including the variable names among the data of the selected line, or in the line including the variable names and the combination. On a line containing a string constant,
In those lines, the value of the character string variable indicated by the variable name stored in at least one of the character string storage items or the character string constant to be used for synthesis, and the other character string storage item The character string is combined with the character string stored in the item and / or another part of the character string stored in the same character string storage item to obtain a target character string, and the generated character string group data is obtained. The program includes a procedure for recording and / or printing in a file and / or displaying on a display, wherein the compositing includes: 1) a) during execution of the parent program, from the string variables or the string constants. After recording a separately prepared child program file having an assignment expression to a series of character string variables in a sequence, the child program file recording means transfers the execution to the child program, and then returns the execution to the parent program. Or b) From the item value character string of each line that records a character string indicating a variable name of the data file or a character string constant to be used for synthesis in any of the items, Is recorded in a memory, and a character string corresponding to the character string is stored in a character string variable recording means so as to have a certain relation with the value of the character string variable. A search was made among the recorded variable names, and for those that corresponded, the values of the character string variables obtained from the association were prepared, and for those that did not correspond, the character string value as it was as a simple character string was separately prepared. By substituting into a series of string variables, in a certain order, the values of the string variables having the variable names included in the data of the data file and the synthesis when they exist Should be used for The string constant value is assigned to the separately prepared sequence of string variables, and 2) the substituted value of the separately prepared series of string variables is stored in a string storage item. Character strings for various purposes, in order to generate the group of target character strings together with the character strings that are used, in accordance with the predetermined order, and for use in a composition consisting of replacement and / or concatenation. A method of synthesizing a character string group of a specific purpose using a computer program based on the data of the data file including the prototype of the group and the other data ”, and the procedures included in the above method. Or a computer-readable recording medium that records the program and the data of the data file. Here, the "character string constant to be used for synthesis" can be used for synthesizing a desired character string in addition to the variable names because, for convenience, a symbol indicating a line not deleted in the data file, etc. Can be substituted, and the effect of the present invention can be realized without this function. Hereinafter, the point of “character string constant to be used for composition” will be omitted, and the description will be made assuming that the variable names are used to compose a desired character string.

【0015】利用出来るソフトウェアの一例 上記の様な本発明の方法を実施する為のプログラムを作
成し実行する為には、具体例によっては、それに適した
一部の又は特定の市販ソフトウェアを使用することがで
き、また具体例によっては、任意の市販ソフトウェア又
は市販ソフトウェアの組合わせを使用し得る。本発明の
プログラム実行中に子プログラムを発生する具体例に対
して必要な条件は、次のような条件のリレーショナルデ
ータベースソフトウエアにより実現可能である。 『 (i) プログラムファイルを発生し外部記憶装置に
記憶させること及び実行させることが出来、かつ、各行
の各項目それぞれに文字列を含めたデータを含むことが
出来る、1以上の項目と1以上の行からなるデータ群を
格納するデータファイルを発生し外部記憶装置に記憶さ
せることが出来、かつ、(ii) プログラムの実行中に、
上記の様なデータファイルを取り扱っている旨の指定が
出来、データを含むデータファイルを取り扱っている場
合には、その任意の指定された行の項目値を、メモリ上
の所定のバッファーに記録出来、従ってその行の各項目
に対するデータ値を項目名に対応する所定の記号を用い
て変数へ代入可能であり、(iii) プログラムの実行中
に、発生済の上記の様なデータファイルの全行のうちか
ら、指定する条件式に合致する任意の1以上の行を選択
又は抽出し、そしてその選択行からなるデータ群格納形
態を内部メモリに一時記憶させることができ及び/又は
その選択行からなるデータファイルを外部記憶装置に記
憶させることが出来、かつ、(iv) プログラムの一つの
指定するステップから別のプログラムの一つの指定する
ステップへ実行を移すことが可能であり、かつ、(v)
あるプログラムの実行中に、そのプログラムの命令に従
って、実行可能な別のプログラムファイルを外部記憶装
置に書込み可能であるか、又はプログラムを含んでいる
実行できないデータファイルを外部記憶装置に書込みし
た後そのデータファイルをプログラムファイルに変更可
能である。』
One Example of Available Software In order to create and execute a program for implementing the method of the present invention as described above, some specific or specific commercially available software is used in some embodiments. Any commercial software or combination of commercial software may be used, depending on the specific embodiment. The conditions necessary for the specific example of generating a child program during the execution of the program of the present invention can be realized by relational database software under the following conditions. "(I) One or more items and one or more items capable of generating and storing a program file in an external storage device and executing the same, and including data including a character string in each item of each line. A data file for storing a data group consisting of the following rows can be generated and stored in an external storage device, and (ii) during execution of the program,
It is possible to specify that a data file is handled as described above, and if a data file containing data is handled, the item value of any specified line can be recorded in a predetermined buffer in memory. Therefore, the data value for each item on the line can be assigned to a variable using a predetermined symbol corresponding to the item name. (Iii) During the execution of the program, all lines of the data file that have been generated as described above And selecting or extracting any one or more rows that match the designated conditional expression, and temporarily storing the data group storage form of the selected rows in the internal memory and / or from the selected rows And (iv) transfer execution from one designated step of a program to one designated step of another program. Are possible, and, (v)
During execution of a program, another executable program file can be written to the external storage device according to the instructions of the program, or an unexecutable data file containing the program is written to the external storage device, and then Data files can be changed to program files. 』

【0016】更に、データファイルを容易に所望の書式
で印刷するには、後のプリンターへの出力方法のところ
で述べるように、使用するソフトウェアにおいて、m
行、1項目のデータファイルを、1行、m項目のデータ
ファイルに「転置」する機能があると便利である。
Further, in order to easily print a data file in a desired format, as described in a method of outputting to a printer later, it is necessary to use m.
It is convenient to have a function to "transpose" a data file of one line and one item into a data file of one line and m items.

【0017】そのようなアプリケーションソフトウェア
の例は、株式会社管理工学研究所製のリレーショナルデ
ータベースソフトである「桐(登録商標)Ver.5」(又
は「桐Ver.4」)を挙げることが出来る。本明細書で
は、「桐Ver.5」に含まれている一括処理ファイル及び
表ファイルのモデルにより説明する(説明が不足の為に
不明な用語については、桐Ver.5に添付されるマニュア
ル、株式会社管理工学研究所発行を参照)。
An example of such application software is "Kiri (registered trademark) Ver.5" (or "Kiri Ver.4"), which is relational database software manufactured by Management Engineering Laboratory Co., Ltd. In this specification, explanations are given based on the model of the batch processing file and table file included in "Tungsten Ver.5". Refer to Management Engineering Laboratory Co., Ltd.).

【0018】「桐Ver.5」を用いて、「表ファイル」、
及び「一括処理ファイル」を作成し、外部記憶装置に記
録できる。その一括処理ファイルにおいて、上記のプロ
グラムを作成することが可能である。また、表ファイル
において、本発明に述べるデータファイルを作成するこ
とが可能である。その一括処理ファイルとは、実行可能
なインタプリタのプログラムのファイルである。インタ
プリタのプログラムは、出来たものが直に実行可能であ
るから、一般にプログラムの実行中に、別の簡単なプロ
グラム(本明細書で子プログラムと呼ぶ)を作り、作っ
たプログラムに実行を移すことが可能であるものが多
く、「桐Ver.5」の場合も1項目の「表ファイル」中に
プログラムを記載し、その表ファイルの名称を実行可能
な名称に変えさえすれば、プログラムを実行出来る。
Using "Tungsten Ver.5", "table file",
And a “batch processing file” can be created and recorded in an external storage device. The program can be created in the batch processing file. In the table file, a data file described in the present invention can be created. The batch processing file is a file of an executable interpreter program. Because the interpreter program can be executed immediately, it is generally necessary to create another simple program (called a child program in this specification) during execution of the program, and to transfer the execution to the created program. In many cases, "Kiri Ver.5" can be executed by writing the program in one table file and changing the name of the table file to an executable name. I can do it.

【0019】「桐Ver.5」で作られる表ファイルとは、
行、即ちレコードの集まりであって、各行又はレコード
が共通して複数の項目(その値は項目の名称を[ ]で囲
んだもので示される)を含み、各項目はデータを含まな
いか又は記録される文字列データ又は数値データ(デー
タはコード化された形態であり得る)を含み得る。この
ようにして1以上の項目を含む行の複数行からなるデー
タ群を形成出来る。
The table file made with "Tungsten Ver.5"
A row, that is, a collection of records, where each row or record contains a plurality of items (the value of which is indicated by the item name enclosed in []), and each item contains no data or It may include recorded string data or numerical data (the data may be in coded form). In this manner, a data group consisting of a plurality of rows including one or more items can be formed.

【0020】一方、プログラミングに関して、本発明
は、上記の「桐Ver.5」を使用することに限定されるも
のではなく、条件を満たすあらゆるプログラム言語の使
用を含む。また、後で述べるように、本発明は、子プロ
グラムを作れるもの以外の言語の使用、及びインタプリ
タ以外の言語の使用も含む。即ち、プログラム実行中に
子プログラムの発生を伴わない本発明の別の具体例、特
に、文字列の合成に際し、データファイルの変数名類と
一致する文字列を、それらの文字列変数類への代入が済
んでいるプログラム実行の途中で予め準備した文字列変
数類記録手段の変数名類のなかから検索して文字列変数
類の値を得ることにより行う場合には、任意の言語ソフ
トウェアを使用できることが明らかである。従って、例
えば、ODBC(open database connectivity)を備え
たデータベースソフトウェアとプログラム言語の専用ソ
フトウェアとを組み合わせて、本発明を実施出来る。
On the other hand, with respect to programming, the present invention is not limited to the use of "Tungsten Ver.5", but includes the use of any programming language that satisfies the conditions. Also, as described below, the present invention includes the use of languages other than those capable of creating child programs and the use of languages other than the interpreter. That is, another specific example of the present invention that does not involve generation of a child program during program execution, in particular, when synthesizing a character string, assigns a character string that matches the variable names of the data file to those character string variables. Use any language software if you want to obtain the values of the string variables by searching from the variable names of the string variable recording means prepared in advance during the execution of the substituted program. It's clear what you can do. Therefore, for example, the present invention can be implemented by combining database software provided with open database connectivity (ODBC) and dedicated software of a programming language.

【0021】別途準備した一連の文字列変数への代入方
1) データファイルから得た変数名類を用いて、代入
式を有する子プログラムを親プログラム実行中に作成す
る方法 子プログラムを作ることが出来るプログラム言語に於い
ては、この方法を使用出来る。この方法は例えば次のや
りかたがある。 イ)コンピュータの主メモリ上等に設けたバッファに、
ある行(以下現在行と述べる)の項目値が保存され、そ
の行の項目値が得られる場合に、選択行からなるデータ
の変数名類を含む行の1行から末行まで現在行を移動さ
せて、そのバッファを介して変数名類を示す文字列変数
を得、同時にそれに別途準備した一連の文字列変数への
代入式を連結しながら子プログラムを作るための項目に
記録していき、その項目を子プログラムファイルとして
書き出す方法。
How to assign to a series of string variables prepared separately
Method 1) Substitution using variable names obtained from the data file
Create a child program with an expression during execution of the parent program
It is In the programming language that can make a that way the child program, can be used this way. This method has the following method, for example. B) In a buffer provided on the main memory of the computer,
When the item value of a certain line (hereinafter referred to as the current line) is saved and the item value of that line is obtained, the current line is moved from the first line to the last line of the line including the variable names of the data consisting of the selected line Then, through the buffer, obtain a string variable indicating the variable name, and at the same time, record it in the item for creating a child program while linking a series of separately prepared assignment expressions to the string variables, How to write out the item as a child program file.

【0022】ロ)変数名類を含む項を、その項目値の選
択された変数名類を含む全行に対する「置換」コマンド
(例えば上記「桐 ver.5」の「リファレンス2」(一括
処理のマニュアル)を参照)により、そして、「#連
番」関数("#連番")(同書参照:置換を実行すると行
順に連続番号を与える関数)の使用により、別途準備し
た一連の文字列変数への代入式部分を各変数名類に連結
し、書き出しする方法。ここで、書き出しされる項が変
数名類以外の文字列を含んでおりかつその変数名類以外
の文字列が上記「置換」コマンドにより無文字列(ヌル
ストリング)に置換できない場合には、この方法は使用
できない。ここで、1行に2以上の変数名類の項目が存
在する場合には、例えば上記「桐 ver. 5」をプログラ
ム作成で使用する場合には、書き出すときの区切り記号
をプログラムのステップの区切り記号としてテキストフ
ァイルに書き出し、次に中身を空にした1項目の表ファ
イルに読み込むことにより、1項目の表ファイルに子プ
ログラムを記録出来る。
B) A term including a variable name is replaced with a “replace” command for all the lines including the selected variable name of the item value (for example, “Reference 2” (“Kiri ver. Manual)), and the use of the "#serial number" function ("#serial number") (refer to the same book: a function that gives a sequential number in line order when performing substitution), a series of string variables prepared separately Method to concatenate the assignment expression part to each variable name and write it out. If the term to be written includes a character string other than the variable names, and the character string other than the variable names cannot be replaced with a non-character string (null string) by the “replace” command, The method cannot be used. If there are two or more variable name items on one line, for example, when using the above-mentioned “Kiri ver. The child program can be recorded in a one-item table file by writing it to a text file as a symbol and then reading it into a one-item table file with empty contents.

【0023】2) データファイルから得た変数名類に
基づいて、文字列変数類の値の格納されているメモリ上
の番地を探し、データを得る方法、又は因数が文字列変
数の変数名を示す文字列である場合にその文字列変数の
値を返す関数を準備して、それを利用する方法
2) On the basis of the variable names obtained from the data file, an address on the memory where the values of the character string variables are stored is searched for, and the method of obtaining the data, or the factor Prepare a function that returns the value of the string variable if it is the string shown, and use it

【0024】この方法では、プログラム言語が、子プロ
グラムを作成することは出来なくてもよい。
In this method, the programming language may not be able to create a child program.

【0025】プログラム言語によっては、変数名を手掛
かりにして文字列変数の値が格納されている番地を知る
ことができる(16ビット機初期のパソコンのベーシッ
ク言語の解説書等を参照)。
Depending on the programming language, it is possible to know the address where the value of the character string variable is stored by using the variable name as a clue (refer to a manual in a basic language of a personal computer in an early 16-bit machine).

【0026】また、プログラム言語の開発者は、当然そ
の言語で用いられる変数名がどこに記録されるかを、直
接的又は間接的に知ることが出来る。そのような場合に
は、この方法で別途準備した一連の文字列変数への代入
が可能である。
Also, a developer of a programming language can directly or indirectly know where a variable name used in the language is recorded. In such a case, it is possible to assign to a series of string variables separately prepared by this method.

【0027】当業者が一旦変数がどの様なコードを用い
てメモリ上のどこに格納されるかを知ることが有用であ
ることを知り且つ変数がメモリ上のどこにどのようなコ
ード及び規則を用いて格納されるかがわかれば、変数名
により示される文字列変数の値を知ることは容易であ
る。
It will be useful to those skilled in the art to know once what type of variable is stored in memory using what code and where the variable is stored in memory using what code and rules. It is easy to know the value of the character string variable indicated by the variable name if it is stored.

【0028】また、同じ理由で、因数が文字列変数の変
数名を示す文字列である場合にその文字列変数の値を返
す関数を準備することが有用であることを当業者が知る
ならば、そのような関数を準備することは当業者に容易
なことである。同様なことが、項目値を示す記号、及び
関数についても言える。 3)予め使用許可文字列変数類を決め値を文字列変数類
記録手段に記録する方法
For the same reason, if a person skilled in the art knows that it is useful to prepare a function that returns the value of a string variable when the factor is a character string indicating the variable name of the string variable. Preparing such a function is easy for those skilled in the art. The same can be said for the symbol indicating the item value and the function. 3) A method in which use permitted character string variables are determined in advance, and the values are recorded in the character string variable recording means.

【0029】この方法でも、使用するプログラム言語の
ソフトウェアに於いては、子プログラムを作成すること
は出来なくてもよい。
Even in this method, it is not always necessary to create a child program in software of a programming language to be used.

【0030】プログラム言語のユーザーが上記の2)で
述べた様な関数を利用出来ない場合、又はそのプログラ
ム言語に於ける変数の格納番地を知ることが出来ない場
合には、そのプログラム言語によるプログラム作成者
は、文書等の原型を保存しているデータファイルへの差
込みの為に用いることが出来るプログラムで使用する文
字列変数類を予め決定しておき、それらの文字列変数類
の必要なものに対し所望の値の代入が済んでいるプログ
ラムのある実行段階で、使用する全ての文字列変数類の
変数名類を示す文字列と文字列変数の値とを、空きメモ
リ上又は外部記憶装置上のファイル等の、文字列変数類
記録手段に記録しておく。そうすれば、データファイル
から変数名類を示す文字列を得た段階で、その文字列変
数類記録手段に記録されたデータの変数名を示す文字列
の部分を検索し、上記の関連づけの方法に従って、対応
する文字列変数類の値を得ることが可能であり、速度の
多少の相違はあれ、あたかも変数の格納番地を知ってい
るのと同じ効果が得られる。文字列変数類記録手段とし
て、外部記憶装置上にファイルを作る場合でも、RAM
ディスクやハードディスク等の使用により、実行速度は
さほど遅くはならない。例えば、最も速度の遅いプログ
ラミングの例として、「桐 ver.5」に於いて、変数名類
を示す文字列を格納する項目とその文字列変数類の値を
格納する項目とを有する変数格納用表ファイルに、プロ
グラム実行中の代入が済んだ段階で、変数を全部で37個
記録し、8個の変数名を示す文字列を記録している差込
みされる文書データファイルについて、各行につき各変
数名を示す文字列を取り出して一連の文字列変数に代入
し、それらの文字列変数の各々について、変数格納用表
ファイルで該当行の検索を行って、その行の文字列変数
値を上記一連の文字列変数に代入しなおした場合でも、
この方法を用いることによる余分な所用時間は、90メガ
ヘルツで動作するパソコンにおいて12秒程度であった。
If the user of the programming language cannot use the function as described in the above 2) or cannot know the storage address of the variable in the programming language, the program in the programming language is used. The creator decides in advance the character string variables used in the program that can be used for insertion into the data file storing the prototype of the document, etc., and needs those character string variables In a certain execution stage of a program in which a desired value has been assigned to a program, a character string indicating the variable names of all the character string variables to be used and the value of the character string variable are stored in an empty memory or an external storage device. It is recorded in character string variable recording means such as the above file. Then, when the character string indicating the variable names is obtained from the data file, the character string indicating the variable name of the data recorded in the character string variable recording means is searched, and the above-described association method is performed. , It is possible to obtain the values of the corresponding character string variables, and with a slight difference in speed, the same effect as if the storage address of the variable is known can be obtained. Even if a file is created on an external storage device as a character string variable recording means, a RAM
The execution speed does not decrease much by using a disk or a hard disk. For example, as an example of the slowest programming, in "Kiri ver.5", for storing a variable having an item to store a character string indicating a variable name and an item to store the value of the character string variable In the table file, at the stage of substitution during program execution, 37 variables were recorded in total, and a character string indicating eight variable names was recorded. The character string indicating the name is taken out and assigned to a series of string variables, and for each of these string variables, the corresponding row is searched in the variable storage table file, and the string variable value of that row is Even if it is reassigned to the string variable of
The extra time required by using this method was about 12 seconds on a personal computer operating at 90 MHz.

【0031】ここで、上記変数名類を示す文字列と文字
列変数類の値の関係付けの方法及び一致する変数名類を
示す文字列の検索方法は、すぐ上に一例が示される通
り、当業者に自明であるか、市販のソフトウェアにより
容易に実現出来る。即ち、上記「桐 ver.5」で例を示す
と、変数名類を示す文字列の項目と、文字列変数類の値
の項目とを有する「表ファイル」を作成して、変数名類
を示す文字列の項目を一致する文字列に対し検索し、そ
の行の文字列変数類の値の項目から項目値を得ることが
出来る。
Here, the method of associating the character strings indicating the variable names with the values of the character string variables and the method of retrieving the character strings indicating the matching variable names are as shown in the example immediately above. It is obvious to those skilled in the art or can be easily realized by commercially available software. That is, as shown in the example of "Kiri ver.5", a "table file" having a character string item indicating a variable name and a value item of a character string variable is created, and the variable name is changed. The item of the indicated character string is searched for a matching character string, and the item value can be obtained from the item of the value of the character string variable in the line.

【0032】また、空きメモリ上での文字列変数類記録
手段の作成は当業者に容易である。外部記憶装置上での
文字列変数類記録手段の作成は市販のどのようなソフト
ウェアでも準備されていて容易に実現出来る。
Further, it is easy for those skilled in the art to create character string variable class recording means on an empty memory. The creation of the character string variable recording means on the external storage device can be easily realized by preparing any commercially available software.

【0033】行選択専用の項目 本発明の好ましい態様では、文章等の原型を格納するデ
ータファイルの各行が1以上の文字列格納用項目と行選
択用数字・文字・記号類を含む1以上の行選択専用の項
目とを有している複数の行からなる構造を有する。この
ような態様では、行選択用項目の値そのものを用いて、
その値を加工することなしに、条件に合致する行を選択
することが出来、また多数の行からの複雑な選択を可能
にするために幾つでも行選択用項目を造ることが出来
る。
Items Dedicated to Line Selection In a preferred embodiment of the present invention, each line of a data file storing a prototype of a sentence or the like includes one or more character string storage items and one or more line selection numbers, characters, and symbols. It has a structure consisting of a plurality of rows having items dedicated to row selection. In such an embodiment, the value of the row selection item itself is used,
A row that meets the conditions can be selected without processing the value, and an unlimited number of row selection items can be created to enable complicated selection from a large number of rows.

【0034】条件に従って行を選択又は抽出する方法 市販のリレーショナルデータベースソフトウエアや、表
計算ソフトウェアはほとんどこのような機能をそなえて
いるか、又は別の言語ソフトウエアで処理する場合に
も、行の選択抽出自体は当業者に容易であり、市販のソ
フトウェア以外のデータファイルについても多数のレコ
ード又は行から、ある項目やインデックスについて一定
の条件を満たすレコード又は行を選択することは、種々
の方法で普通に行われていることであり、当業者に自明
であるものが多数存在するはずであるから、本明細書に
於いては、具体的にコンピュータがどのように行を選択
するかについては、記載しない。詳細な内容は本発明の
構成に欠くことの出来ない事項ではないが、一例として
は、特許請求の範囲の請求項1〜13に関して言えば、
『該入力手段により入力された1以上の入力データに基
づく条件式を所定項目の値が満たしている所望の行だけ
に抽出又は選択する段階が、 イ)該データファイル記憶手段に記憶されているデータ
の全部又は該所定項目を含む一部を第一のメモリ手段に
一度に又は順次読み込むこと、 ロ)該入力手段により入力された1以上の入力データの
それぞれに基づく1以上の条件を第二のメモリ手段に記
録すること、 ハ)該データファイルの全行のうち、該読み込まれた第
一のメモリ手段上のデータに於ける検索項目値に該当す
る部分のそれぞれと、入力手段により入力された1以上
の入力データのそれぞれに基づく1以上の条件を記録し
ている第二のメモリ手段の値とを必要回比較して、真で
ある行のみについて、行の全部を、又はその行同定情報
を第三のメモリ手段に記録すること、 ハ)該第三のメモリ手段に記録されている行について、
全データを一時データファイルとして記録することを含
む、特許請求の範囲の請求項1〜13のいずれか一に記
載の方法。』と記載できると考えられる。
Method for Selecting or Extracting Rows According to Conditions Most of the commercially available relational database software and spreadsheet software have such a function, or even if they are processed by another language software, the rows can be selected. The extraction itself is easy for those skilled in the art, and it is common in various ways to select records or rows that satisfy certain conditions for a certain item or index from a large number of records or rows even for data files other than commercially available software. Since there are many things that should be obvious to those skilled in the art, in this specification, specifically, how a computer selects a row is described. do not do. Although the detailed contents are not indispensable to the configuration of the present invention, as an example, regarding
"The step of extracting or selecting a conditional expression based on one or more input data input by the input means only in a desired row satisfying a value of a predetermined item is stored in the data file storage means. Reading all or part of the data including the predetermined item into the first memory means at a time or sequentially; b) setting at least one condition based on each of the at least one input data inputted by the input means to the second memory means; C) out of all the rows of the data file, each of the portions corresponding to the search item value in the read data on the first memory means, and input by the input means. The value of the second memory means, which records one or more conditions based on each of the one or more input data, is compared with the value of the second memory means as many times as necessary. Emotion For that to be recorded in the third memory means, c) the row recorded in said third memory means,
14. A method according to any one of the preceding claims, comprising recording all data as a temporary data file. ].

【0035】一時データファイル 本発明の別の好ましい態様は、入力手段により入力され
た1以上の入力データに基づく条件と項目の値が合致す
る所望の行だけに抽出又は選択する段階が、該所望の行
だけに抽出又は選択されたデータを一時データファイル
として記録することを含んでいる。このような態様で
は、一時データファイルが外部記憶装置に記録されるの
で、一時データファイルにその後必要な種々の書き込み
を行い、もとのデータファイルに変更を加えることなし
に、その後の処理を行うことが出来る。
In another preferred embodiment of the present invention, the step of extracting or selecting only desired rows whose conditions and item values match conditions based on one or more pieces of input data input by the input means is performed in the desired data file. And recording the extracted or selected data only as a temporary data file. In such an embodiment, since the temporary data file is recorded in the external storage device, various necessary writes are subsequently performed on the temporary data file, and the subsequent processing is performed without changing the original data file. I can do it.

【000036】子プログラムを生じる具体例での「一
定の順序」の実現法−1予備項目への子プログラムの
一時記録と"一定の順序" 本発明の別の好ましい態様は、上記の一時データファイ
ルが外部記憶装置に記録された場合に、子プログラムフ
ァイルを生じる段階が、記録された一時データファイル
の変数名類が含まれる行の予備項目に、子プログラムに
含める該別途準備した一連の順番の文字列変数に代入す
る命令を変数名類の出現数だけ記録し、必要な行のそれ
らの予備項目中での記録と親プログラムへの復帰命令の
追加で完成した子プログラムをプログラムファイルとし
て書き込み記録することを含んでいる。この態様によ
り、子プログラムファイルを生じる場合に、記録された
一時データファイルの変数名類が含まれているものに更
に選択された行に、対応する代入命令(その文字列変数
値→別途準備した一連の順番の文字列変数)が記載され
るので、「一定の順序」で別途準備した一連の順番の文
字列変数に代入する手順が余分なプログラミングなしに
実現出来る。更にその際に一連の順番の文字列変数の変
数名を、上記更に選択された行の行番号(変数名類を含
む行のなかの行の順番)及び変数名類の出現順番とに関
係付けて、子プログラムファイルの各代入命令を作る
と、上記の「一定の順序」はその行番号と、出現順の番
号とを数えておくだけで全く自動的に実現出来る。これ
を行う一つの方法の例は以下の通りである。
In the specific example of generating a child program,
Method of “constant order” -1 : child program to spare item
Temporary Recording and "Constant Order" Another preferred embodiment of the present invention is that when the temporary data file is recorded on an external storage device, the step of generating a child program file is performed by using the variable name of the recorded temporary data file. In the spare item of the line containing the class, record the number of occurrences of the variable names and the instructions to be assigned to the series of separately prepared string variables to be included in the child program. And writing a child program completed by adding a return instruction to the parent program as a program file. According to this aspect, when a child program file is generated, a corresponding assignment instruction (the character string variable value → separately prepared) is added to a line further selected in the variable including the variable names of the recorded temporary data file. Since a series of character string variables) is described, a procedure of substituting into a series of character string variables separately prepared in a “certain order” can be realized without extra programming. Further, at that time, the variable names of the string variables in the series are associated with the line number of the further selected line (the order of the lines including the variable names) and the appearance order of the variable names. Then, when each assignment instruction of the child program file is created, the above-mentioned "constant order" can be realized completely automatically only by counting the line numbers and the numbers in the order of appearance. An example of one way to do this is as follows.

【0037】上記の態様に於いて、「一定の順序」を次
のような例で実現することが出来る。第一出現変数名の
ある行を選択した後に現在行を1〜末行まで変化させ
て、それぞれの行で、第一出現変数名を記録した項目
(即ち、現在行の各項目の項目値を記録しているメモリ
ー上のバッファ領域の該当項目場所)からその値を得
て、「別途準備した一連の順番の文字列変数」の選択行
の行順と第一出現とに関連づけて決まる変数名とを対応
させて、予備項目に代入命令を記録することを繰り返
し、次に第二出現変数名のある行を選択した後に現在行
を1〜末行まで変化させて、それぞれの行で、第二出現
変数名を記録した項目からその値を得て、「別途準備し
た一連の順番の文字列変数」の選択行の行順と第二出現
とに関連づけて決まる変数名と対応させて、予備項目に
その代入命令を先に記録されている代入命令の次のステ
ップとして追加することを繰り返し、この手順を以下、
第三出現変数名〜最も出現順の遅い変数名までくりかえ
すことにより、該別途準備した一連の順番の文字列変数
の変数名との対応を、第一出現変数名類の1〜最後、第
二出現変数名類の1〜最後のような順とし、最後に最も
出現順の遅い変数名の1〜最後の順に行う。一般に、第
一出現変数名のある行数は、第二番目以降の出現変数名
のある行数よりも圧倒的に多いことが考えられるので、
プログラムの最初にここで使用される「別途準備した一
連の順番の文字列変数」の変数宣言が要求されるプログ
ラムに於いては、宣言する変数の数を減らすために、上
記の手順で対応させることが好ましい。
In the above embodiment, the "certain order" can be realized by the following example. After selecting a line with the first occurrence variable name, the current line is changed from 1 to the last line, and in each line, the item in which the first occurrence variable name is recorded (that is, the item value of each item of the current line is changed) Variable name obtained from the corresponding item location in the buffer area on the recorded memory), and associated with the selected line and the first appearance of the "sequentially prepared series of character string variables" And repeatedly record the assignment instruction in the spare item, then select the line with the second occurrence variable name, change the current line from 1 to the last line, and in each line, Obtain the value from the item in which the second occurrence variable name is recorded, and associate it with the variable name determined in relation to the line order of the selected line of the "separately prepared series of character string variables" and the second occurrence, and reserve The assignment instruction in the item is the next step of the assignment instruction recorded earlier. Repeat to add, this procedure below,
By repeating the third appearance variable name to the variable name of the latest appearance order, the correspondence with the variable names of the separately prepared series of character string variables is changed to the first to last, second, The order is such that the variable names appear in the order of 1 to last, and finally, the variable names appearing in the latest order are the first to last. In general, the number of lines with the first occurrence variable name can be overwhelmingly greater than the number of lines with the second and subsequent occurrence variable names,
For programs that require a variable declaration of a "sequence of separately prepared string variables" used at the beginning of the program, use the above procedure to reduce the number of declared variables. Is preferred.

【0038】但し、変数名類の出現を順次カウンター用
の変数で数えておく場合や、予めの変数宣言が要求され
ないプログラムの場合には、最初に第一出現変数名のあ
る行を選択した後に現在行を1〜末行まで変化させ、そ
れぞれの行で、第一出現変数名を記録した項目(即ち、
現在行即ち処理行の各項目の項目値を記録しているメモ
リー上のバッファ領域の該当項目場所)からその値を得
て、「別途準備した一連の順番の文字列変数」の、上記
カウンターの数又は選択行の行順と第一出現とに関連づ
けて決まる変数名とを対応させて、予備項目に代入命令
を記録し、以下その行に第二以降の出現の変数名のある
場合には、上記カウンターの数又は選択行の行順と第二
以降の出現とに関連づけて決まる変数名とを対応させ
て、予備項目にすでにある代入命令の次のステップとし
ての代入命令をその後に追加することを繰り返す。この
場合は、場合により処理速度的には前の手順よりもやや
速くなり得る。但し、一行中の変数の出現数が非常に多
くなると、その数だけプログラム中に分岐が生じること
になり、プログラムが非常に長くなってしまう。また、
上記カウンターなし、変数宣言ありの場合には出現順の
遅い変数が最後近くの行にあるとき、出現順の遅い変数
の準備数もずっと数の多い第一出現順の変数と同じ準備
数でなくてはならない。
However, in the case where the occurrences of the variable names are sequentially counted by the variable for the counter, or in the case of a program which does not require a variable declaration in advance, after selecting the line with the first occurrence variable name first, The current line is changed from 1 to the last line, and in each line, the item in which the first occurrence variable name is recorded (ie,
The value is obtained from the current line, that is, the corresponding item location in the buffer area on the memory that records the item value of each item of the processing line), and the above-mentioned counter of "separately prepared series of string variables in order" is obtained. The assignment order is recorded in the spare item by associating the number or the line order of the selected line with the variable name determined in association with the first occurrence, and if the line has a variable name of the second or later occurrence in the line, The number of the counter or the line order of the selected line is associated with a variable name determined in association with the second and subsequent occurrences, and an assignment instruction as a step next to the assignment instruction already in the spare item is added after that. Repeat that. In this case, in some cases, the processing speed may be slightly faster than the previous procedure. However, if the number of occurrences of a variable in one line is extremely large, branching occurs in the program by the number, and the program becomes extremely long. Also,
If there is no counter and the variable is declared, and the variable with the slowest appearance is in the line near the end, the prepared number of the variable with the slowest appearance is not the same as the variable with the much larger number in the first appearance. must not.

【0039】同じ一時ファイルの予備項目中に子プログ
ラムの代入命令のステップを記録していくことにより、
上記の様に対応の順序が容易に達成される。
By recording the steps of the substitution instruction of the child program in the spare item of the same temporary file,
The corresponding order is easily achieved as described above.

【0040】子プログラムを生じる具体例での「一定の
順序」の実現法−2「置換」コマンドと「#連番」関
数の使用
The "constant"
Method of realizing "order" -2 : "Replace" command and " #serial number"
Use of numbers

【0041】変数名類のみを格納する専用の項目をつく
れば、上記のような現在行を変化させていくことにより
変数名類を得るのではなく、「桐Ver.5」に設けられて
いる置換コマンド及び置換をすると最終の選択行の行順
に連続番号を与える「#連番」関数を用いて、一連の順
番の文字列変数に代入する式を、プログラムの実行中に
ある一つの項目に於いて実現出来る。親プログラムの実
行中にこれを書き出して子プログラムをつくることが出
来る。「一定の順序」は、データファイルの選択行のう
ちの変数名類を含むもののみに選択された行の行順番
と、連番関数により実現される別途準備する文字列変数
の変数名に含まれる数字文字の、行順に応答した順番に
よって容易に達成出来得る。実際に「桐Ver.5」により
モデル的なプログラムで試験した結果では、この方法は
同一条件で前期1の方法と比較して子プログラム作成段
階に於ける実行速度が速かった(1の方法5秒に対しこ
の方法3秒程度)。
If an item dedicated to storing only the variable names is created, the variable names are not obtained by changing the current line as described above, but are provided in "Tungsten Ver.5". Using the replacement command and the `` # serial number '' function that gives a sequential number to the line of the last selected line, the expression to be substituted into a series of character string variables in one item during execution of the program Can be realized in. This can be written out during the execution of the parent program to create a child program. "Constant order" is included in the line order of the selected lines of only the selected lines of the data file that include the variable names, and the variable names of the separately prepared string variables realized by the serial number function Can be easily achieved by the order in which the numeric characters are responded in line order. According to the results of actual testing with a model program using “Tungsten Ver.5”, the execution speed of this method in the child program creation stage was faster than the method of the first period under the same conditions (method 5 in the first case). This method is about 3 seconds per second).

【0042】文字列群の合成方法 イ)文字列中の置換記号を置き換えする場合 本発明の好ましい態様は、『 該選択行からなるデータ
のうちの変数名類を含む行中の、文字列格納用項目のう
ちの少なくとも1項目に格納されている変数名類が示す
文字列変数の値と、文字列格納用項目に格納されている
文字列とによって、目的とする文字列群を合成すること
が、何れかの文字列格納用項目の文字列中の任意の位置
に含まれかつそれらの該変数名類を格納している項目に
対応している置換記号を、該変数名類が示す文字列変数
の値で置き換えることからなる処理を行うことにより、
又はその処理と別の文字列格納用項目の項目値との連結
及び/又は予め置換する為に指定しておいた記号部分の
置換及び/又は不要行の削除とを組み合わせた処理を行
うことにより、該選択行又は該選択行のうち不要行の削
除された行からなり、一つの項目中に処理された最終的
所望文字列群を含んでいるデータを得ることからなり、
ここで該処理に含まれる、該変数名類が示す文字列変数
の値での置き換えが、 1)一定の順序で、子プログラムの中に、該選択行から
なるデータに変数名類が含まれる文字列変数類に値が与
えられていればそれらの値のそれぞれを別途準備した一
連の順番の文字列変数に代入する命令を含んでいる、子
プログラムファイルを生じることと、 2)該文字列変数類に所定の値が与えられている状態
で、その子プログラムへプログラムの実行を移し該命令
を実行させることにより上記文字列変数類のそれぞれが
とっている値のそれぞれを、該別途準備した一連の順番
の文字列変数に代入することと、 3)該代入された別途準備した一連の順番の文字列変数
の値で、該一定の順序に従って、該選択行からのデータ
の文字列格納項目値の文字列中の該置換記号の部分を、
置き換えるることからなること、を特徴とする上記
(1)に記載の、種々の目的の文字列群の原型を含む該
データファイル及びその他のデータに基づいて、特定目
的の文字列群を合成する方法。』からなる。
A method of synthesizing a character string group a ) When replacing a substitution symbol in a character string: A preferred embodiment of the present invention is as follows: [Character string storage in a line containing variable names among data of the selected line] Combining a target character string group with the value of a character string variable indicated by a variable name stored in at least one of the character string items and the character string stored in the character string storage item Is a character that is included in an arbitrary position in the character string of any of the character string storage items and indicates a substitution symbol corresponding to the item storing the variable name by the character indicated by the variable name. By performing the process of replacing with the value of the column variable,
Alternatively, by performing a process that combines the process with the connection of the item value of another character string storage item and / or the replacement of the symbol part designated in advance and / or the deletion of the unnecessary line. Obtaining data including a final desired character string group processed in one item, the data being composed of the selected line or the line in which the unnecessary line is deleted from the selected line.
Here, the replacement with the value of the character string variable indicated by the variable name included in the processing is as follows: 1) The variable name is included in the data of the selected line in the child program in a certain order. Producing a child program file containing instructions for substituting each of these values, if any, for the string variables into a series of separately prepared string variables; 2) the string In a state in which predetermined values are given to the variables, the execution of the program is transferred to the child program and the instructions are executed, whereby each of the values taken by each of the character string variables is converted into the series prepared separately. And 3) the value of the assigned series of separately prepared character string variables, and the character string storage item value of the data from the selected row according to the fixed order. In the string of A portion of the issue 換記,
A specific purpose character string group based on the data file including prototypes of various target character string groups and other data according to the above (1), wherein Method. ].

【0043】この態様に於いては、1行中の文字列の1
以上の任意の場所のそれぞれに対して文字列変数類を指
定し、それらの場所に指定した文字列変数類の値、即
ち、例えば別の何等かのデータファイルの1レコードが
選ばれている場合にそのレコードのある項目値を表す記
号、値の代入されている文字列変数、それらを含む関数
の値、又は特定の文字列を差込むことが出来る。即ち、
1行あたりに複数の変数値を差込みする場所を設けるこ
とが出来る。文字列変数類が差込まれる場所の指定は主
たる表示内容を含む項目に於いてなされるが、各変数名
類は、出現順序に従って、別の複数の文字列格納項目中
に順次記録しておくのがよい。そうすることにより、全
行について、変数の出現について、一定の方法による順
序付けをすることが出来、最終的に選択文字列群の置き
換える指定がされている場所を、正しい順序で転送先文
字列変数で置き換えることが出来る。
In this embodiment, one of the character strings in one line
When character string variables are specified for each of the above optional locations, and the value of the character string variables specified for those locations, that is, for example, one record of some other data file is selected Can be inserted with a symbol representing a certain item value of the record, a character string variable to which a value is substituted, a value of a function including the variable, or a specific character string. That is,
A place for inserting a plurality of variable values per line can be provided. Although the designation of the place where the character string variables are inserted is made in the item including the main display content, each variable name is sequentially recorded in another character string storage item according to the appearance order. Is good. By doing so, the order of occurrence of variables can be ordered in a fixed manner for all lines, and finally the place where the selected character string group is to be replaced is specified in the correct order Can be replaced by

【0044】但し、文字列中の特定の文字列の場所の検
索が出来るのなら、上記の一つの主たる表示内容を含む
項目のどこかに文字列変数類の値が差込まれるべき場所
も変数名類も両方とも含めることも、更に、文字列変数
類の値が差込まれるべき場所にじかに変数名類を記入し
ておくことも当然可能である。
However, if the location of a specific character string in the character string can be searched, the place where the value of the character string variable should be inserted in any of the items including the one main display content is also a variable. Naturally, it is possible to include both names, and to enter the variable names directly in the place where the value of the character string variable is to be inserted.

【0045】ロ)文字列格納用項目と変数とを一定の順
序で連結する場合 本発明の別の好ましい態様は、『 該選択行からなるデ
ータのうちの変数名類を含む行中の、文字列格納用項目
のうちの少なくとも1項目に格納されている変数名類が
示す文字列変数の値と、文字列格納用項目に格納されて
いる文字列とによって、目的とする文字列群を合成する
ことが、該変数名類が示す文字列変数の値を、1以上の
文字列格納用項目と共に決められた順序で連結すること
からなる処理を行うことにより、又はその処理と別の文
字列格納用項目の項目値との連結及び/又は指定記号部
分の置換及び/又は不要行の削除とを組み合わせた処理
を行うことにより、該選択行又は該選択行のうち不要行
の削除された行からなり、一つの項目中に処理された最
終的所望文字列群を含んでいるデータを得ることからな
り、ここで該変数名類が示す文字列変数の値と1以上の
文字列格納用項目との決められた順序での連結が、 1)一定の順序で、子プログラムの中に、該選択行から
なるデータに変数名類が含まれる文字列変数類に値が与
えられていればそれらの値のそれぞれを別途準備した一
連の順番の文字列変数にそれぞれ代入する命令を含んで
いる、子プログラムファイルを生じることと、 2)該文字列変数類に所定の値が与えられている状態
で、その子プログラムへプログラムの実行を移し該命令
を実行させることにより上記文字列変数類のそれぞれが
とっている値のそれぞれを、該別途準備した一連の順番
の文字列変数に代入することと、 3)該代入された別途準備した一連の順番の文字列変数
の値と、該選択行からのデータの1以上の決められた文
字列格納項目の項目値文字列とを、該一定の順序に従っ
て、決められた方法で連結することからなること、を特
徴とする上記(1)に記載の、種々の目的の文字列群の
原型を含む該データファイル及びその他のデータに基づ
いて、特定目的の文字列群を合成する方法。』からな
る。
B) The character string storage items and variables are stored in a certain order.
In the case of concatenation in the introduction , another preferred embodiment of the present invention provides a method in which “variable stored in at least one of character string storage items in a line including variable names of data of the selected line” By synthesizing the target character string group by the value of the character string variable indicated by the name and the character string stored in the character string storage item, the value of the character string variable indicated by the variable name is By performing processing consisting of concatenating with one or more character string storage items in a predetermined order, or by concatenating the processing with the item value of another character string storage item and / or By performing processing in combination with replacement and / or deletion of unnecessary lines, the final desired character string composed of the selected line or a line from which the unnecessary lines have been deleted among the selected lines and processed in one item Consists of obtaining data containing groups Here, the concatenation of the value of the character string variable indicated by the variable name and one or more character string storage items in a predetermined order is as follows: 1) In the child program, the selected line If a value is given to a character string variable whose variable name is included in the data consisting of, a child program including an instruction to substitute each of those values into a series of character string variables prepared separately. Generating a file; and 2) transferring the execution of the program to the child program in a state where a predetermined value is given to the character string variables and executing the instruction, whereby each of the character string variables is taken. And 3) substituting each of the stored values into the separately prepared sequence of string variables, and 3) the value of the substituted separately prepared series of string variables and the data from the selected row. One or more fixed sentences The character string group for various purposes according to (1), characterized in that the character string groups are connected to the item value character strings of the column storage items in a predetermined manner according to the predetermined order. A method of synthesizing a character string group for a specific purpose based on the data file and other data including the following. ].

【0046】この態様は、「氏名:○○○○」の様に、
例えば左側にある各行の表題文字列に対して、例えば右
側に対応するデータが記入されるべき形式のような、書
式に有用であり、1行あたりの出現する文字列変数類は
1であるが、値が与えられない行を削除することによっ
て、余計な行が残らないようにすることが可能である。
In this embodiment, like "Name: OOOO",
For example, for a title character string in each line on the left side, it is useful for a format such as a form in which data corresponding to the right side is to be entered. It is possible to eliminate unnecessary rows by deleting rows for which no value is given.

【0047】加工されたデータファイルのプリンター出
力方法 更に、市販のデータベースソフトウェアが、任意のデー
タファイルの1行毎に一つの文書を印字出力するため
の、各項目の表示場所を有することが出来る印刷出力用
書式ファイルを生じることができ、且つ2項目からなる
m行のファイルをm項目からなる1行のファイルに転置
できる能力を有する場合には、本発明で、最終的に得ら
れたデータファイルの文字列群を、所望の書式で容易に
印刷することが出来る。所定の方法で書式を設定した印
刷出力用書式ファイルに、印刷しようとする1頁あたり
の行数分だけの項目数の、そしてその各行に許される最
大限の幅を有する、表示場所を設ける。これにより、m
項目からなる1行のファイルは、スピーディーに印刷が
可能である。また、このような印刷出力用書式ファイル
を、書式を変えて幾つか作っておけば、幾つかの行数及
び幅に対応出来る。
Output of the processed data file to the printer
In addition, commercially available database software can produce a printout format file that can have a location for each item to print out one document per line of any data file; In addition, in the case of having the ability to transpose an m-line file composed of two items into a one-line file composed of m items, the present invention converts the character string group of the finally obtained data file into a desired format. It can be printed easily. A printout format file formatted in a predetermined manner is provided with a display area having the number of items corresponding to the number of lines per page to be printed and having the maximum width allowed for each line. This gives m
A one-line file composed of items can be printed quickly. Further, if several such print output format files are created with different formats, it is possible to cope with several line numbers and widths.

【0048】実際のプログラムに於いては、該最終的所
望文字列群を含んでいるデータがn行ある場合に、それ
らの行の最初から順に、設定行最大幅の位置を越える行
を、又は英文にあっては設定行最大幅に最も近い行最大
幅以下のワードの区切り位置を越える行を、行最大幅内
のそのような位置で順次改行させて、複数行に分けるこ
とにより、n行をn’行に増やし、それらのn’行を順
番にm行づつ取り出して、取り出した各行を、該転置を
させることにより、項目数mの1〜mの項目を有する一
時ファイルの1行に変換して、上記の用に一時ファイル
用の1〜m項目表示部を含んでいる予め準備した印刷用
書式ファイルを利用して、1行の1〜m項目の内容を印
刷し、m行づつの印刷を繰り返す。
In an actual program, when there are n lines of data including the final desired character string group, the lines exceeding the position of the set line maximum width are sequentially arranged from the beginning of those lines, or For English sentences, lines that exceed the line delimiter that is less than or equal to the maximum line width that is closest to the set line maximum width are sequentially wrapped at such positions within the line maximum width, and divided into multiple lines. Is increased to n ′ lines, the n ′ lines are sequentially extracted m lines at a time, and each of the extracted lines is transposed to one line of a temporary file having 1 to m items with the number of items m. After conversion, the contents of 1 to m items in one line are printed by using a prepared printing format file including a 1 to m item display section for a temporary file for the above, and m lines are printed. Repeat printing.

【0049】このような態様は、例えば図5に示すフロ
ーチャートに従って容易に実現可能である。この手順
は、もともとデータファイルが変数類名を一切含んでい
ないような文字列群を印刷する場合にも利用出来る。
Such an embodiment can be easily realized according to, for example, a flowchart shown in FIG. This procedure can also be used when printing a character string whose data file originally does not include any variable class names.

【0050】勿論、最終的に得られた文字列群をテキス
トファイルとして書き出した後、子プロセスを起動させ
て、ワードプロセッサを動かせば、プログラムの途中か
ら得られた文書をワードプロセッサで更に詳細な編集を
行ったり又は印刷することも容易に出来る。例えば、
「桐ver.5」に於いては、環境設定で、実行番号1にワ
ードプロセッサプログラムファイルのパス名と書き出し
て編集しようとするする文書名のパラメーターを記録し
ておけば、”システム 1”を実行することにより、そ
のワードプロセッサプログラムを実行出来る。又は、環
境設定に於いてそれらを記録していなくとも、”システ
ム <プログラム名><パラメータ>”の書式で一括処理プ
ログラムの実行中に別の例えばワープロのプログラムを
起動することが可能である。従って、プログラム実行中
にワープロ起動を行うようにすれば、上に記載のプリン
ター出力方法はなくてもよい。但し、印刷書式が幾つも
要らなければ、上記の方法は他のプログラムの再起動が
不要であり、非常に簡便で便利である。
Of course, after the character string group finally obtained is written out as a text file, the child process is started and the word processor is operated, so that the document obtained from the middle of the program can be edited in more detail by the word processor. It can also be easily done or printed. For example,
In "Kiri ver.5", if you record the path name of the word processor program file and the parameter of the document name to be written out and edited in the execution number 1 in the environment setting, "System 1" will be executed By doing so, the word processor program can be executed. Alternatively, even if they are not recorded in the environment setting, it is possible to start another program such as a word processor during execution of the batch processing program in the format of “system <program name><parameter>”. Therefore, if the word processor is activated during the execution of the program, the printer output method described above may not be required. However, if a number of print forms are not required, the above method does not require restarting other programs, and is very simple and convenient.

【0051】より具体的形でのプログラミングの説明 理解しやすいように、好ましい一具体例では、データフ
ァイルの文字列格納用項目の一つとして、中に1以上の
文字列変数類の値で置き換えられるべき置換記号部分を
有することもある文字列を格納する項目名「文章」の項
目、及び文字列変数類がその行に存在する場合に出現順
にそれぞれの変数名類を格納する項目名「変数1」、
「変数2」、「変数3」………を設けると仮定する。好
ましい別の具体例では、文字列格納項目(左側項目、右
側項目)として、項目名「左側文章」と「右側文章」と
の項目を設けると仮定して、以下話を進める。また、ど
ちらの具体例に於いても、行選択用項目として、項目名
「選択1」、「選択2」……… 等を設けるものと仮定
する。このような多数行からなるデータ群をデータ群A
とする。このうちの該行選択用項目が一定の条件を満た
す行だけが選択された複数行のデータ群をA'とする。
Description of Programming in a More Specific Form To facilitate understanding, in one preferred embodiment, one of the items for storing character strings in a data file is replaced by the value of one or more character string variables in the data file. The item name "sentence" that stores a character string that may have a replacement symbol part to be replaced, and the item name "variable" that stores each variable name in the order of appearance when character string variables exist in the line 1 ",
It is assumed that “variable 2”, “variable 3”... Are provided. In another preferred specific example, the following description will proceed assuming that items having item names “left text” and “right text” are provided as character string storage items (left item, right item). It is also assumed that in each of the specific examples, the item names “selection 1”, “selection 2”,... Such a data group consisting of many rows is referred to as a data group A
And A data group of a plurality of rows in which only the rows for which the row selection item satisfies a certain condition is selected is A '.

【0052】前者の具体例で、A'の各々の「文章」と
いう項目名の値を表す[文章]という文字列中に、「変
数1」、「変数2」、「変数3」………の項目に変数名
類が記録されることにより指定される文字列変数類の値
に置き換えられるべき部分(可変部分)の位置が指定さ
れている。そのような「変数1」、「変数2」、「変数
3」………の項目に変数名類が記録される文字列変数類
の値は、例えば、別の多項目多数行のデータファイルの
データ群Bのある一つの選択された行の項目の項目値、
又は項目値に関連する値(例えば、関数で処理した
値)、又はそれ以外の値(例えばプログラム実行中に入
力手段から入力された値を処理したもの)から得られる
ものであり得る。それらの「変数1」、「変数2」、
「変数3」………の項目値である変数名類の文字列変数
類を、別途準備した一連の順番の文字列変数に、一定の
順序で、代入できれば、それらの別途準備した一連の順
番の文字列変数の値を、同じ一定の順番で、「文章」の
項目値である文字列中の置き換え指定場所を置き換える
ことによって、合成された「文章」項目の文字列値を得
ることができる。
In the former specific example, "variable 1", "variable 2", "variable 3",... In a character string "sentence" representing the value of the item name "sentence" of each of A '. Indicates the position of a part (variable part) to be replaced with the value of the character string variable specified by recording the variable name in the item. The values of the character string variables in which the variable names are recorded in the items of “variable 1”, “variable 2”, “variable 3”... Are, for example, values of another multi-item multi-line data file. The item value of the item in one selected row of data group B,
Alternatively, the value may be obtained from a value related to the item value (for example, a value processed by a function) or another value (for example, a value obtained by processing a value input from an input unit during execution of a program). Those "Variable 1", "Variable 2",
If variable string variables, which are the item values of “variable 3”, can be assigned in a fixed order to the string variables in a series of sequences prepared separately, a series of sequences prepared separately By replacing the value of the character string variable in the same fixed order with the specified replacement position in the character string that is the item value of “text”, the character string value of the synthesized “text” item can be obtained. .

【0053】後者の具体例では、A'の項目名が「右側
文章」の項目に格納されている項目値が、同様な文字列
変数名、別のデータファイル(データ群B)の項目値を
示す記号、関数名、又は定数など自体でありうる。それ
らの「右側文章」項目値である変数名類の文字列変数類
を、別途準備した一連の順番の文字列変数に、一定の順
序で、代入できれば、それらの別途準備した一連の順番
の文字列変数の値を、同じ一定の順番で、「左側文章」
の項目値と連結することによって、「右側文章」項目の
値の変数名類が示す文字列変数の値を、「左側文章」の
項目値と連結することができる。
In the latter specific example, the item value stored in the item of “right sentence” in the item name of A ′ is the same as the character string variable name and the item value of another data file (data group B). It may be a symbol, a function name, or a constant itself. If the character string variables of the variable names, which are the item values of the "right text", can be assigned in a certain order to the separately prepared string variables in a certain order, a sequence of these separately prepared characters The values of the column variables, in the same fixed order, "left sentence"
The value of the character string variable indicated by the variable name of the value of the “right sentence” item can be linked to the item value of the “left sentence”.

【0054】このようにして作成された目的の文章デー
タ群は、複雑可変部を含む多種類定型文書であっても対
応可能である。なぜなら、僅かに異なる文章でも上記選
択項目を利用する選択により何種類もの文章のなかから
該当する文を選択出来、その文章中の例えば変数に置き
換えられるべき部分として表現してある部分を、別の多
数行多項目からなるデータ群B、データ群C等の或る選
択された行の種々の項目値に由来する、またはそれらに
由来しない種々の文字列で置き換えできるからである。
しかも、市販ソフトウェアに準備されている、ある項目
がある条件を満足している該当行のみを「選択」又は
「抽出」する機能のため、上記の「選択1」「選択2」
……… 等の項目を利用して各仕事に対して必要な行を
容易に選択してみることが出来るから、データ群Aを準
備する段階は極めて容易である。
The target sentence data group created in this way can be used even for many types of fixed-form documents including a complicated variable part. This is because even a slightly different sentence can be selected from several types of sentences by selecting using the above selection item, and the portion expressed as a portion to be replaced with a variable, for example, is replaced with another portion. This is because various character strings derived from or not derived from various item values of a certain selected line such as a data group B and a data group C composed of multiple lines and multiple items can be used.
In addition, since the function of "selecting" or "extracting" only the corresponding line that satisfies a certain condition prepared in the commercial software, the above "selection 1" and "selection 2"
..., Etc., it is possible to easily select a row required for each job by using items such as..., So that the stage of preparing the data group A is extremely easy.

【0055】置き換えは幾つかの方法がある。一具体例
に於いて、次の要領で、コンピュータ中で作動している
親プログラムに於いて子プログラムの作成が可能であり
かつ親プログラムから子プログラムに実行が移され得る
インタプリタのプログラムソフトウェアを用いて行うこ
とが出来る。以下、この具体例でのプログラム実行に従
った各手順を説明する。
There are several methods for replacement. In one embodiment, the use of interpreter program software that allows the creation of a child program in a parent program running in a computer and allows execution to be transferred from the parent program to the child program is performed in the following manner. Can be done. Hereinafter, each procedure according to the program execution in this specific example will be described.

【0056】a)プログラムの文法に於いて求められる場
合には、親プログラムに於いて、該選択行からなるデー
タ群A'の文字列変数類(可変部分)の予測数以上の十
分な個数の、例えば「&変数i」(iは整数であってi=1〜
十分大きい数)、又は例えば「&変数一i」、「&変数二
i」、「&変数三i」等、(別途準備した一連の順番の文
字列変数)を変数宣言して準備する。
A) When it is obtained in the grammar of the program, a sufficient number of characters in the parent program, which is equal to or larger than the expected number of character string variables (variable parts) of the data group A 'comprising the selected line, is obtained. For example, "& variable i" (i is an integer and i = 1 to
A sufficiently large number) or, for example,
"i", "& variable 3i", etc. (separately prepared sequence of character string variables) are declared and prepared.

【0057】b)段階c)の前又は後に於いて、代入しよう
とする該多数行データ群B(ここでは項目名「B1」〜
「Bx」を有すると仮定し、項目値は[B1]〜[Bx
で表わす)をオープン(桐の一括処理コマンドで述べる
なら、"表 B"と必要なら"編集表 B"とを実行する)
した状態で、そのある行を選択又は検索する。それによ
りその項目値を参照できる状態にし{即ちその行の項目
値がメモリ上の所定のバッファに記録された状態とす
る}、その行の、代入しようとする必要な項目値を取り
出して、又は、項目値に関連する値(即ち項目値を含む
関数)又はそれ以外の値を得て、(データ群Aに変数名
類を格納され得る)所定の変数に代入しておくことが出
来る。又ここで変数への代入を行わないで、データ群A
に格納され得る変数名類としての項目値を示す記号[B
i]をそのまま使用することもできる。
B) Before or after step c), the multi-line data group B to be substituted (here, item names "B 1 " to
Assuming that “B x ”, the item values are [B 1 ] to [B x ]
Open) (Executing "Table B" if necessary, and "Editing table B" if necessary)
In that state, the certain line is selected or searched. Thereby, the item value can be referred to, that is, the item value of the line is recorded in a predetermined buffer in the memory, or the necessary item value to be substituted is extracted from the line, or , A value related to the item value (that is, a function including the item value) or another value can be obtained and assigned to a predetermined variable (variable names can be stored in the data group A). Also, here, the data group A
[B] indicating an item value as a variable name that can be stored in
i ] can be used as it is.

【0058】c)該多数行データ群Aを上記のように選択
用項目を利用して選択し、該選択行からなるデータ群
A'とし、記憶手段に記憶させる。記憶手段は、メイン
メモリーでも、磁気固定ディスク、磁気フレキシブルデ
ィスクとその駆動装置、及び書込可能な光ディスクとそ
の駆動装置等、又は記憶装置に代り得る内部メモリー部
分、例えばRAMディスク等、又はこれ以外の記憶装置
及びその媒体でもよい。
C) The multi-row data group A is selected by using the selection items as described above, and is stored in the storage means as a data group A 'including the selected rows. The storage means may be a main memory, a magnetic fixed disk, a magnetic flexible disk and its drive device, and a writable optical disk and its drive device, or an internal memory part that can replace the storage device, such as a RAM disk, or other Storage device and its medium.

【0059】d)次の、d)及びe)の段階は、データ群A'
に含まれている変数名類の文字列変数値を別途準備した
一連の文字列変数に代入する手順である。これには複数
の方法がある。
D) The following steps d) and e) correspond to the data group A '
Is a procedure for substituting the string variable values of the variable names included in the above into a series of separately prepared string variables. There are several ways to do this.

【0060】ここでは、親プログラム実行中に子プログ
ラムを発生する方法の分かりやすいもをとりあえず説明
する。データ群A'をオープンし、上記前者の具体例な
ら「変数1」に変数名類が記録されている行のみ選択す
る。次に順に選択された全ての行に対して、以下の様な
親プログラムの命令で、「変数1」又は「右側文章」の
項目に記録されている変数名類を示す文字列に基づいて
同じデータ群A’のファイルに準備されている「予備項
目」に、子プログラムステップ用文字列群を記録してい
く。ここで&Iは1から順に増加する整数である。また、
[右側文章]は変数名を示す文字列のほかに、プログラム
にそのまま出現出来る書式の文字列定数、例えば「"
@"」等でもあり得る。前者の具体例の場合の例・・・・・・・・・・・・・・・・・・ 行訂正 [予備項目]="&変数"+#str
(&I)+"="+[右側文章]・・・・・・・・・・・・・・・・・・後者の具体例の場合の例・・・・・・・・・・・・・・・・・・ 行訂正 [予備項目]="&変数一"+#st
r(&I)+"="+[変数1]・・・・・・・・・・・・・・・・・・ 行訂正 [予備項目]="&変数二"+#st
r(&I)+"="+[変数2]・・・・・・・・・・・・・・・・・・ 行訂正 [予備項目]="&変数三"+#st
r(&I)+"="+[変数3]・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・
Here, a method of generating a child program during execution of a parent program will be described for the moment. The data group A ′ is opened, and in the case of the former specific example, only the line in which the variable name is recorded in “variable 1” is selected. Next, for all the lines selected in order, the same instruction is executed based on the character string indicating the variable name recorded in the item of "variable 1" or "right sentence" by the instruction of the parent program as follows. The character string group for the child program step is recorded in the "spare item" prepared in the file of the data group A '. Here, & I is an integer that increases sequentially from 1. Also,
[Right sentence] is a character string constant that can appear in a program as it is, such as ""
@ "” or the like. Example of the former specific example ·····························································
(& I) + "=" + [right sentence] ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・Example of the latter specific example・ ・ ・ ・・ ・ ・ ・ ・ ・ Line correction [Preliminary item] = "& variable one" + # st
r (& I) + "=" + [variable 1] ・ ・ ・ ・ ・ ・ ・ ・ ・ Line correction [preliminary item] = "& variable 2" + # st
r (& I) + "=" + [variable 2] ........... Line correction [preliminary item] = "& variable 3" + # st
r (& I) + "=" + [variable 3] ...

【0061】この「予備項目」を表ファイルとして書き
出し、更に親プログラム(ファイル名"oya.cmd")の所定
ラベル(例えば"名札 復帰点"というラベルを設けたと
仮定する)への復帰命令のステップを追加し、子プログ
ラムを作成する。その結果、例えば前者の例として、下
記の右辺が[右側文章]の各行に記録されていたならば、
次のようなプログラムステップ群が子プログラムとして
書き出される。 &変数1=[B9] &変数2=#文字列([B6]*100) &変数3=&名前 &変数4=#日付(94.02.03) ・ ・ ・ &変数n="" 一括処理実行 "oya.cmd",復帰点 (但し頭に&の付いたものは文字列変数を表わすものと
し、#の付いたものは関数を表わすものとし、親プログ
ラムのファイル名をoya.cmdとし、子プログラムから親
プログラムの名札又はラベル、"復帰点"に戻るものとす
る)。
This "spare item" is written out as a table file, and further, a step of a return instruction to a parent program (file name "oya.cmd") to a predetermined label (for example, it is assumed that a label "name tag return point" is provided). And create a child program. As a result, as an example of the former, if the following right side is recorded in each line of [right sentence],
The following program steps are written out as child programs. & Variable 1 = [B 9 ] & variable 2 = # character string ([B 6 ] * 100) & variable 3 = & name & variable 4 = # date (94.02.03) Process execution "oya.cmd", return point (However, the one with & is a character string variable, the one with # is a function, and the file name of the parent program is oya.cmd. , Return from child program to name tag or label of parent program, "return point").

【0062】これらは該データファイルのデータ群A'
を参照して例えばその項目名「文章」の項目に記載され
ている記号を得ながら、即ち変数名、項目名を表す記
号、定数、又はこれらを含む関数を得ながら作成され
る。子プログラムは親プログラムで作成されるから、&
変数1〜&変数n(又は&変数一1、&変数一2、…、&変数
二1、&変数二2、…、&変数三1、…、この変数名は任意
の形でありうる)の内容は、親のプログラムで指示する
行選択用項目を用いる行の選択の仕方によって、また例
えばデータ群Bの値を用いる場合にはその内容によって
極めて多様に変化することが出来る。
These are the data group A 'of the data file.
For example, it is created while obtaining the symbol described in the item of the item name "text", that is, obtaining the variable name, the symbol representing the item name, the constant, or the function including these. Since the child program is created by the parent program, &
Variable 1 to variable n (or & variable 1, & variable 1, 2, ..., variable 2, 1, variable 2, ..., & variable 3, 1, ... Can vary extremely depending on how the row is selected using the row selection item specified by the parent program, and, for example, when using the value of data group B, depending on the content. I can do it.

【0063】親プログラム実行中に子プログラムを作る
方法のなかの別の方法として、次のやりかたがある。デ
ータ群A'のうちの変数名類を示す文字列をいずれかの
項目に記録している行を選択したら、置換コマンドを使
って、項目「変数1」、「変数2」、「変数3」………
…の値をそれぞれ、 選択 [変数1]<>"" 置換 [変数1]="&変数一"+#連番+"="+[変数1] 選択 [変数2]<>"" 置換 [変数2]="&変数二"+#連番+"="+[変数2] 選択 [変数3]<>"" 置換 [変数3]="&変数三"+#連番+"="+[変数3] ………… ………… により、子プログラムの内容に変えてしまう。次に項目
「変数1」、「変数2」、「変数3」…………の値を、
項目間の区切り記号をプログラムのステップの区切り記
号と同じにして、テキストファイルに書き出す。例え
ば、テキストファイルは、右辺がそれぞれに記録されて
いたものと仮定すると、 &変数一1=[B9],,,, &変数一2=#文字列([B6]*100),&変数二1=[B3],,, &変数一3=&名前,,,, &変数一4=#日付(94.02.03),&変数二2=&書類名,,, などというようなものになる。次に中身を空にした1項
目の表ファイルに、区切り記号を、プログラムのステッ
プの区切り記号でも、他の使用されている文字でもない
ものとして読み込むことにより、1項目の表ファイルに
子プログラムを記録出来る。ここで、余分な区切り記号
「,」を削除する。それには、置換コマンドで使用でき
る「#文字置換」関数を用いて文字列",,"を""に置換す
る置換コマンドにより削除し、次に項目の末尾に置換コ
マンドにより例えば空白を一つ付け加え、「#文字置
換」関数を用いて文字列", "を""に置換する置換コマン
ドにより削除すれば、必要な区切り記号は残し、不要な
区切り記号のみ全て除去出来る。次にこれを、実行可能
なファイル名に変更すれば、子プログラムが作成出来
る。この方法は速度的には、前記のものよりも速い。
As another method of creating a child program during execution of the parent program, there is the following method. After selecting a line in the data group A ′ in which a character string indicating a variable name is recorded in any of the items, the items “variable 1”, “variable 2”, and “variable 3” ............
Select each value of [Variable 1] <>"" Replace [Variable 1] = "& Variable 1" + # Serial number + "=" + [Variable 1] Select [Variable 2] <>"" Replace [Variable 2] = "& Variable 2" + # Serial number + "=" + [Variable 2] Select [Variable 3] <>"" Replace [Variable 3] = "& Variable 3" + # Serial number + "=" + [Variable 3] ………… ………… changes to the contents of the child program. Next, the values of the items “variable 1”, “variable 2”, “variable 3”.
Write to a text file with the same separator between items as the step separator in the program. For example, assuming that the right side of each text file is recorded, & variable-1 = [B 9 ] ,,,, & variable-1 = # character string ([B 6 ] * 100) , & variable two 1 = [B 3] ,,, & variable one 3 = & name ,,,, & variable one 4 = # date (94.02.03), and variable two 2 = & document name, ,, etc. Next, the child program is read into the one-item table file by reading the delimiter into the one-item table file with the contents empty as neither the delimiter of the program step nor any other used character. Can record. Here, the extra delimiter "," is deleted. To do this, use the "# character replacement" function that can be used in the replacement command to delete the character string ",," with a replacement command that replaces the character string with "", and then add one space, for example, to the end of the item using the replacement command. By using the "# character replacement" function to delete the character string "," with a replacement command that replaces the character string "" with "", the necessary delimiters are retained and all unnecessary delimiters can be removed. Then change this to an executable file name to create a child program. This method is faster than the one described above.

【0064】e)次に、例えば、該データ群Bの該一つの
選択された行を参照しながら、該段階d)で作成した子プ
ログラムに実行を移した後、元の親プログラムの所定復
帰段階に実行を移すことによって、&変数i(i=1〜n)に目
的とする値を代入する。
E) Next, for example, referring to the one selected row of the data group B, the execution is shifted to the child program created in the step d), and then the predetermined return of the original parent program is performed. By shifting the execution to the stage, the target value is substituted for & variable i (i = 1 to n).

【0065】d')段階e)とd)の代りに、親プログラム実
行中に子プログラムを作る方法ではない別の方法とし
て、次の方法がある。この方法は、どんな言語ソフトウ
ェアを使用する場合でも使用できる。この方法では、プ
ログラム実行前に、データ群A又はデータ群A'への差
込みの為に用いることが出来るプログラムで使用する文
字列変数類を予め決定しておく。また、前記の段階b)を
済ませた後のいずれかの段階に於いて、使用しうると決
定されている文字列変数類の変数名類とそれらの値と
を、以下の要領で、表ファイルである文字列変数類記録
手段に記録しておく。例えば"変数格納.tbl"という表フ
ァイルが[変数名]という項目と[変数値]という項目とを
有するとし、既に[変数名]項目中には値が記録されてい
ると仮定すると、 表 "変数格納.tbl" 位置指定 行番号=1, 行訂正 [変数値]=&名前 位置指定 行番号=2, 行訂正 [変数値]=&住所 ・・・・・・・・・・・・・ ・・・・・・・・・・・・・ をデータ差込みに使用し得る全ての変数の変数値がこの
ファイルに記録されるまで続ける。段階d')に於いて
は、選択行からなるデータ群A'の一時ファイルをオー
プンし、上記の前者の具体例では「変数1」に変数名類
が記録されている行のみ選択する。次に順に選択された
全ての行に対して、記録されている文字列変数類を、例
えば別途準備した一連の順番の文字列変数(&変数一1、
&変数一2、…、&変数二1、&変数二2、…、&変数三1…)
に代入する。ここで、変数の個数を記録しておく。[変
数2]に変数名類が記録されている行には[変数1]にも
変数名類が記録されている。プログラムの例の要点を示
せば、以下の通りである。 ・・・・・・・・・・・・・ 編集表 "datagunA.tbl" 選択 [選択1]=*"特"* 選択 [選択2]="出願" 書き出し 表,"ichiji.tbl",{[文章],[変数1],[変数
2],・・} 表 "ichiji.tbl" ・・・・・・・・・・・・・ &N=0 選択 [文章]=*"▽1△"* 分岐(#空ファイル),第二変数1 位置指定 行番号=1,&変数一1=[変数1],&N=&N+1,位
置指定 行番号=+1 分岐(#終端行),第二変数1 &変数一2=[変数1],&N=&N+1,位置指定 行番号=+1 分岐(#終端行),第二変数1 &変数一3=[変数1],&N=&N+1,位置指定 行番号=+1 ・・・・・・・・・・・・・ 名札 第二変数1 &N1=&N,&N=0 選択 [文章]=*"▽2△"* 分岐(#空ファイル),第三変数1 位置指定 行番号=1,&変数二1=[変数2],&N=&N+1,位
置指定 行番号=+1 ・・・・・・・・・・・・・ ・・・・・・・・・・・・・ 次に、その変数の個数分だけ、該別途準備した一連の順
番の文字列変数を、順次、前記文字列変数類記録手段の
表ファイル("変数格納.tbl")の変数名を記録した項目
「変数名」の値に一致するものがある行がないかどう
か、例えば次のように検索する。 編集表 "変数格納.tbl" 分岐(&N1<1),第二変数2 検索 [変数名]=&変数一1,&変数一1=[変数値] 分岐(&N1<2),第二変数2 検索 [変数名]=&変数一2,&変数一2=[変数値] ・・・・・・・・・・・・・ 名札 第二変数2 分岐(&N2<1),第三変数2 検索 [変数名]=&変数二1,&変数二1=[変数値] 分岐(&N2<2),第三変数2 検索 [変数名]=&変数二2,&変数二2=[変数値] 分岐(&N2<2),第三変数2 ・・・・・・・・・・・・・ ・・・・・・・・・・・・・ 検索結果は、該当する行があれば、その別途準備した一
連の順番の文字列変数に、該当行の文字列変数類値の項
目の項目値を代入する。該当行がない場合は(最終行の
次の記録のない終端行が該当行となる)、その別途準備
した一連の順番の文字列変数は無文字列の値となる。
「桐 ver.5」に於いて、変数を全部で37個記録し、8個
の変数名を示す文字列を記録している差込みされる文書
データファイルについて、各行につき各変数名を示す文
字列を取り出して一連の文字列変数に代入し、それらの
文字列変数の各々について、変数格納用表ファイルで該
当行の検索を行って、その行の文字列変数値を上記一連
の文字列変数に代入しなおした場合、この方法を用いる
ことによる余分な所用時間は、90メガヘルツで動作する
パソコンにおいて12秒程度であって、十分実施可能な速
度であった。プログラミング専用の言語のソフトウェア
を用いる場合にはずっと速い処理が可能と推測される。
以上でd)、e)段階の代りのd')段階の説明を終る。
D ') As an alternative to steps e) and d), there is another method which is not a method of creating a child program during execution of the parent program. This method can be used with any language software. In this method, before executing the program, character string variables used in a program that can be used for insertion into the data group A or the data group A ′ are determined in advance. In any of the steps after the step b), the variable names of the character string variables determined to be usable and their values are converted into a table file in the following manner. Is recorded in the character string variable class recording means. For example, assuming that a table file “variable storage.tbl” has an item [variable name] and an item [variable value], and assuming that a value has already been recorded in the [variable name] item, the table "Variable storage.tbl" Position specification Line number = 1, line correction [Variable value] = & Name Position specification Line number = 2, line correction [Variable value] = & Address ・ ・ ・ ・ ・ ・Continue until the variable values of all variables that can be used for data insertion are recorded in this file. In step d '), a temporary file of the data group A' consisting of the selected line is opened, and only the line in which the variable name is recorded in "variable 1" is selected in the former specific example. Next, for all the lines selected in order, the recorded string variables, for example, a series of separately prepared string variables (& variable-1, 1,
& Variable-2,…, & variable-2, & variable-2,…, & variable-3 1…)
Substitute for Here, the number of variables is recorded. In the line where the variable names are recorded in [Variable 2], the variable names are also recorded in [Variable 1]. The main points of the example program are as follows. ········ Edit table “datagunA.tbl” selection [selection 1] = * “Special” * selection [selection 2] = “application” export table, “ichiji.tbl”, { [Sentence], [Variable 1], [Variable 2], ...} Table "ichiji.tbl" ... & N = 0 selected [Sentence] = * "▽ 1 △" * Branch (#empty file), second variable 1 position specification line number = 1, & variable 1 = [variable 1], & N = & N + 1, position specification line number = + 1 branch (#end line), 2nd variable 1 & 1 variable = [variable 1], & N = & N + 1, position designation line number = + 1 branch (#end line), 2nd variable 1 & 1 variable = [variable 1], & N = & N + 1, position designation Line number = +1 Name tag Second variable 1 & N1 = & N, & N = 0 selection [text] = * "▽ 2 △" * Branch (#empty file), third variable 1 position specification line number = 1, & variable 2 1 = [variable 2], & N = & N + 1, position specification line number = + 1 ...・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ Next, the order of the series prepared separately for the number of the variables Whether or not there is a line that sequentially matches the value of the item “variable name” in which the variable name of the table file (“variable storage.tbl”) of the character string variable recording means is sequentially recorded. For example, search is performed as follows. Editing table "Variable storage.tbl" Branch (& N1 <1), Second variable 2 search [Variable name] = & Variable1,1 & Variable1 = [Variable value] Branch (& N1 <2), Second Variable 2 search [variable name] = & variable-1 && variable-1 = [variable value] Name tag 2nd variable 2 branch (& N2 <1), 3 variable 2 search [variable name] = & variable 2,1 & variable 2 1 = [variable value] branch (& N2 <2), third variable 2 search [variable name] = & variable 2,2 & variable Math 2 = [Variable value] Branch (& N2 <2), Third variable 2 If there is a line to be executed, the item value of the item of the character string variable class value of the corresponding line is substituted into the string variable in a series of sequences prepared separately. If there is no corresponding line (the last line without the record next to the last line is the corresponding line), a series of separately prepared character string variables in the sequence will have a non-character string value.
In the "Kiri ver.5", a total of 37 variables are recorded, and a character string indicating each variable name is recorded for each line in the inserted document data file that records character strings indicating eight variable names. Is retrieved and assigned to a series of string variables, and for each of these string variables, the corresponding row is searched in the table file for storing variables, and the string variable value of that row is converted to the above series of string variables. In the case of re-substitution, the extra time required by using this method was about 12 seconds on a personal computer operating at 90 MHz, which was a sufficiently practicable speed. It is presumed that much faster processing is possible when using software in a language dedicated to programming.
This concludes the description of step d ') instead of steps d) and e).

【0066】f)次に、該選択行からなるデータ群A'の
文字列変数値で置き換えられるべき指定がなされている
部分を順次&変数i(又は&変数一i,…,&変数二j,…,&変
数三k,…)の値で置換する。例えば、具体的には、前記
の前者の好ましい具体例では、{[左側文章]=[左側文
章]+&変数i}を全行につき順次行って&変数iの値を、
可変部分を含まない文字列を格納するための項目である
[左側文章]と連結する。また、後者の好ましい具体例
では、#文字置換(a,b,c)(文字列aのb部分をcと置き換
える)というような関数があれば、置き換えが必要な行
について、&変数一i、&変数二j、…等に値が移されたと
同じ順序で、各々の例えば&変数一i等の変数及び各々の
置き換えられるべき指定がされている部分"Xi"に対し
て、[文章]=#文字置換([文章],"Xi",&変数一i)等
を実行すればよい。
F) Next, the part of the data group A 'consisting of the selected line, which is specified to be replaced with the character string variable value, is sequentially identified by & variable i (or & variable i,..., & Variable (2j, ..., & variable 3k, ...). For example, specifically, in the former preferred specific example, {[left sentence] = [left sentence] + & variable i} is sequentially performed on all lines, and the value of & variable i is calculated as follows.
Concatenate with [left text], which is an item for storing a character string that does not include a variable part. In the latter preferred embodiment, if there is a function such as #character replacement (a, b, c) (replace b portion of character string a with c), the & In the same order in which the values were transferred to i, & variable2j, ..., etc., for each variable such as & variable-1i, and for each part "Xi" to be replaced, [Sentence] = # character replacement ([Sentence], "Xi", & variable i) may be executed.

【0067】g)上記の置換された「文章」の項目値、又
は、上記の「左側文章」の項目値に&変数iの値が連結さ
れた値を出力する。
G) Output the item value of the replaced “text” or the value obtained by connecting the value of & variable i to the item value of the “left text”.

【0068】[0068]

【実施例】本発明の前期のプログラムを、理解の為に、
具体的なデータファイルの例及び具体的プログラム言語
による一部の簡単なプログラム例も用いて説明すると以
下の通りである。
DESCRIPTION OF THE PREFERRED EMBODIMENTS In order to understand the first program of the present invention,
The following is a description using a specific example of a data file and some simple program examples in a specific programming language.

【0069】実施例1 この実施例は、書式用のデータファイルの行を選択し、
それらの選択行に、出願データを記録した別のデータフ
ァイルのデータ値をもとにして得た文字列を差込み、特
許、実用新案、意匠、商標等の出願手続の願書、手続補
正書、その他の差出し書類を自動的に作成する例を示
す。
Embodiment 1 This embodiment selects a line in a data file for formatting,
Insert a character string obtained based on the data value of another data file that records application data into those selected lines, and apply for patent, utility model, design, trademark, etc. application procedure, amendment, etc. Here is an example of automatically creating a send document.

【0070】1) まず各行が、例えば、文字列格納用項
目である、項目名「左側文章」、「右側文章」、「予
備」と、行選択用項目である、項目名「書類」、「四
法」、「電P」、「発項」、「発明者数」その他を有す
る、データファイル(ファイル名を例えば"BUNSHO.TBL"
とする。以下、データファイルを「表」と呼ぶ場合もあ
る。)を準備する。
1) First, each line has, for example, item names “left text”, “right text” and “spare” which are character string storage items, and item names “document” and “ A data file (file name such as "BUNSHO.TBL") containing "Four methods", "Den P", "Issued", "Number of inventors" and others.
And Hereinafter, the data file may be referred to as a “table”. Prepare).

【0071】作ろうとする全ての提出書類の様式の各行
左側の不変部分を「左側文章」の項目に記録しておく。
欄の頭に連続番号が付される場合は同一欄に常に同じ番
号が入るとは限らないので、入れずに連続番号に置き換
える記号を入れておく。また、不変部分のみの行は、そ
れを「左側文章」又は「右側文章」の項目に入れる。但
し、削除されてはならない空白行は、その「右側文章」
の項目に後で空白行に置き換える記号を入れておく。
「右側文章」の欄には、上記の記号のほか、文字定数、
入れたいデータの種類に対応している変数、項目値、こ
れらを含む関数をそれらの変数名、項目名の記号、関数
名で記録する。選択項目としての、[書類]、[四法]、
[電P]に、[発項]に対応する記号を記録しておく。例え
ば、願書であれば[書類]に"願"、補正書であれば[書類]
に"補"と記録し、特許であれば[四法]に"特"、実用新案
であれば"実"と記録し、オンライン又はFD出願が適用
される書式には"電"、PCT出願に係るものは"P"と記
録する。項目名「予備」は空のままにしておく(図2A
参照)。
The invariable part on the left side of each line of all forms to be created is recorded in the item of "left side text".
When a serial number is given at the beginning of a column, the same number is not always entered in the same column. Therefore, a symbol for replacing with a serial number is entered without entering. Also, a line including only an invariable part is put in the item of "left sentence" or "right sentence". However, blank lines that must not be deleted are shown in the "right sentence"
In the item of, put a symbol to be replaced with a blank line later.
In the column of "right text", in addition to the above symbols, character constants,
The variables and item values corresponding to the type of data to be entered, and functions including these are recorded by their variable names, item name symbols, and function names. The choices are [Documents], [Four Laws],
The symbol corresponding to [Term] is recorded in [P]. For example, if the application is a "document,""Request" is written in the [document].
In the case of a patent, "Special" is recorded in [Four Laws], and in the case of a utility model, "Real" is recorded. Are recorded as "P". The item name “Spare” is left empty (FIG. 2A
reference).

【0072】2) 一方、例えば、項目名[四法]、[タイ
トル]、[出願番号]等を有するデータ群B(ファイル名例
えば"DATA.TBL")の表を準備する。
2) On the other hand, a table of a data group B (file name, for example, “DATA.TBL”) having item names [four methods], [title], [application number], etc. is prepared.

【0073】3)〜14) 親プログラム(一括処理ファイル名、例えば"OYA.CMD")
に例えば次の簡略化して記載したステップ群(但し3)〜
14)の文字はプログラムに含まれない)を含ませる。 3) 変数宣言 固有,文字列{&変数1,&変数2,&変数3,…,&変数n,…,&変数m} 変数宣言 固有,整数{&N} : : 4) 表 BUNSHO.TBL : : 5) 選択 [書類]=*"願"* 選択 [四法]=*"特"* 選択 [電P]=*"電"* 選択 [発明者数]=*"3"* : : 6) 書き出し 表,"ICHIJI.TBL" : : 7) 表 "ICHIJI.TBL" : : 8) &N=1 繰り返し(.not #終端行) 位置指定 行番号=&N 行訂正 [予備]="&変数"+#文字列(&N)+"="+[右側文章] &N=&N+1 繰り返し終了 行挿入 [予備]="一括処理実行 "+#JIS(34)+"OYA"+#JIS(34)+",復帰点" : : 9) 書き出し 表,"KO.TBL",{[予備]} ファイル名変更 "KO.TBL","KO.CMD" : : 10) 表 DATA.TBL : : 11) 一括処理実行 "KO.CMD" : : 12) 表 "ICHIJI.TBL" : : 13) 行訂正 [左側文章]=[左側文章]+&変数1 位置指定 行番号=+1 行訂正 [左側文章]=[左側文章]+&変数2 位置指定 行番号=+1 行訂正 [左側文章]=[左側文章]+&変数3 位置指定 行番号=+1 : : : 14) 書き出し "SHORUI.TXT",テキスト,[左側文章]
3) to 14) Parent program (collective processing file name, for example, "OYA.CMD")
For example, the following simplified steps (however, 3)-
14) is not included in the program). 3) Variable declaration Unique, character string {& variable1, & variable2, & variable3,…, & variablen,…, & variablem} Variable declaration Unique, integer {& N}:: 4) Table BUNSHO.TBL: : 5) Select [Documents] = * "Request" * Select [4 methods] = * "Special" * Select [Den P] = * "Den" * Select [Number of inventors] = * "3" *: 6 ) Writing table, "ICHIJI.TBL":: 7) Table "ICHIJI.TBL":: 8) & N = 1 repeat (.not #end line) Position specification Line number = N line correction [Reserve] = "&variable" + # Character string (& N) + "=" + [right sentence] & N = & N + 1 Repeat end Insert row [Reserve] = "execute batch processing" + # JIS (34) + "OYA" + # JIS (34) + " , Return point ":: 9) Write table," KO.TBL ", {[Reserve]} Rename file" KO.TBL "," KO.CMD ":: 10) Table DATA.TBL:: 11) Batch processing Execution "KO.CMD":: 12) Table "ICHIJI.TBL":: 13) Line correction [Left text] = [Left text] + & Variable 1 position designation Line number = + 1 Line correction [Left text] = [ Left text] + & Variable 2 position specification Line number = + 1 Line correction [Left text] = [Left text] + & Variable 3 Position specification Line No. = + 1::: 14) writes "SHORUI.TXT", text, [left sentence]

【0074】これらのステップ部分を説明すると、3)最
初に変数を準備しておき、4)でオープンされた"BUNSHO.
TBL"のファイルは行選択用項目を利用して5)で条件に合
致する必要な選択行のみに選択される。(図2A参
照)。ここで例えば発明者の数を選ぶための行選択用項
目の一つ[発明者数]の内容は、発明者の欄の上から三つ
までが"3"の文字を有し、以下四つ目の欄からは3の文字
を有しないようにすれば、容易に必要な発明者の欄だけ
を選択することが出来る。それらの選択行が6)で"ICHIJ
I.TBL"の表として外部記憶装置に書き出される。7)で書
き出した"ICHIJI.TBL"をオープンし、8)では、その最初
の行から最後の行までにわたって、文字列の「"&変数"+
#文字列(&N)+"="」と[右側文章]とが連結されて、項目
[予備]に記録される。最後の行の次に親プログラムへの
返還命令を加え(即ち、『行挿入 [予備]="一括処理実行
"+#JIS(34)+"OYA"+#JIS(34)+",復帰点"』)、子プログ
ラムの全行が最初の行から最後の行までの[予備]項目中
に格納されたことになる。(図2Aの下の表参照)。9)
でこれを書き出して、実行可能なファイル名に変更して
子プログラムとする。(図2B参照)。10)で例えば出
願の書誌的事項データを含む、"DATA.TBL"のファイルを
オープンし、その目的行(例えばある一つの出願事件の
もの)に選択し、必要な事項を子プログラムの右辺に出
てくる変数に代入した状態で、子プログラムに実行をう
つすと、&変数1から&変数nまでに[右側文章]に記載され
ていた定数、変数名、項目名、それらを含む関数名を有
する文字列変数類の値(実際の中身)が代入される。実行
を親プログラムの所定ステップ(復帰場所)にうつし、
12)で、再度選択された文書である"ICHIJI.TBL"をオー
プンして、13)で、その各行の[左側文章]の内容の文字
列の右端に&変数i(i=1〜n)の内容が連結される。(図2
B参照)。
To explain these steps, 3) variables are prepared first, and "BUNSHO.
The file of "TBL" is selected by using the line selection items only for the necessary selection lines which meet the condition in 5) (see FIG. 2A). Here, for example, the line selection for selecting the number of inventors is performed. The content of one of the items [number of inventors] should be such that the top three of the inventor's column has the character "3", and the fourth column below does not have the character of three. You can easily select only the necessary inventor's column, and those selection lines are 6) and "ICHIJ
I.TBL "is written to the external storage device as a table. The" ICHIJI.TBL "written in 7) is opened, and in 8), the character string""&variable" is written from the first line to the last line. "+
#String (& N) + "=""and [right sentence] are concatenated
Recorded in [Reserve]. Add a return instruction to the parent program after the last line (that is, "insert line [reserve] =" execute batch processing
"+ # JIS (34) +" OYA "+ # JIS (34) +", return point "]), all the lines of the child program were stored in the [reserve] items from the first line to the last line (See the table below FIG. 2A.) 9)
Write this out and change it to an executable file name to make it a child program. (See FIG. 2B). In step 10), open the file "DATA.TBL" containing the bibliographic data of the application, select the target line (for example, for one application case), and put the necessary items on the right side of the child program. When the execution is passed to the child program with the variables assigned, the constants, variable names, item names, and function names that include them from & variable1 to & variablen are described in [right text]. The value (actual contents) of the character string variables that have it is substituted. Transfers execution to a predetermined step (return location) of the parent program,
In step 12), open the selected document "ICHIJI.TBL" again. In step 13), add the & variable i (i = 1 to n) Are concatenated. (Figure 2
B).

【0075】例えば特許出願の願書の発明者の項の様
に、様式中に必要数が変化することによって、設けてあ
る空欄が埋らない場合が存在する。本発明の場合には、
[右側文章]にの文字列として元々値が無い(ヌルストリ
ング(""))為に、その行を削除したい場合には、子プ
ログラム作成の際に、&変数iに削除マークを付けてもよ
い。変数内容の連結された[左側文章]で、&変数iから来
た値が削除マークである為にその行を削除すべき場合に
は、削除マークを有する行を選択して削除することが出
来る。そうすれば、もともと[右側文章]が空白となるべ
きでも削除してはいけない行、例えば上の行との間隔を
とる場合や、不変部「左側文章」項目にデータはあるが
可変部「右側文章」項目が常に空白であるものの行には
適当な非削除行であることを示す印を[右側文章]に予め
記録しておき、変数連結が終了した段階で削除マークの
ある行を全て削除し、非削除行であることを示す印がつ
いている行のその印を空白文字列で置き換える。(図2
Bの下の図参照)。
For example, as in the case of the inventor of the application form of the patent application, there is a case where the provided blanks are not filled due to a change in the required number in the form. In the case of the present invention,
If you want to delete the line because there is no value originally as a character string in [right sentence] (null string ("")), you can mark & variable i for deletion when creating a child program Good. In the [left sentence] where the variable contents are linked, if the value from & variable i is a delete mark and the line should be deleted, the line with the delete mark can be selected and deleted . By doing so, lines that should not be deleted even if the [right sentence] should be blank originally, such as when spacing from the upper line, or when there is data in the invariable part "left sentence" item but the variable part "right side" Although the "Sentence" item is always blank, a mark indicating that it is an appropriate non-deletion line is recorded in advance in the [right side sentence], and all lines with a deletion mark are deleted when variable connection is completed. Then, the mark on the line marked as a non-deleted line is replaced with a blank character string. (Figure 2
B, see figure below).

【0076】欄の頭に連続番号があれば、最後に連続番
号を示す記号を仮に「§」と仮定すると、[左側文章]=#
置換([左側文章],"§",#連番)を実行することにより、
連続番号をその場所に入れることが出来る。#連番の関
数がないプログラム言語の場合には、行の頭からその記
号を検索し、見つかった行で順に増加する数に対応する
文字列と置き換える。
If there is a serial number at the beginning of the column, assuming that the symbol indicating the serial number is “§” at the end, [left sentence] = #
By performing substitution ([left sentence], "§", # sequential number),
A sequence number can be placed in that location. In a programming language that does not have a #sequential function, search for the symbol from the beginning of the line and replace it with the character string corresponding to the number that increases in order on the found line.

【0077】変数内容の連結された[左側文章]を、長す
ぎる行がある場合には図5に記載される方法と類似の方
法で長すぎる行を分けて長すぎるものを無くし、適当な
ファイル名で外部記憶装置に書き出せば文書データが得
られる。印刷する場合は、「文章」の項目の他、項目名
「連続番号」の項目に行と共に増加する連続番号を記録
しておき、そのファイルの一定数の行数づつを転置させ
て、項目名が上記一定数までの連続番号、その値がもと
の各行の[文章]であるデータファイルを作成する。そう
することにより、表やカードにデータを書込む形式の市
販アプリケーションプログラムに通常設けられている、
項目値の印刷場所を設定できる印刷書式用のファイルを
利用して印刷が可能となる。即ち、印刷書式用のファイ
ルの1行〜末行のそれぞれを、全幅にわたって、項目名
が上記一定数までの連続番号のそれぞれの項目値を印刷
する場所に設定することが出来る。
If there is a line that is too long, a line similar to the method shown in FIG. By writing the name to the external storage device, document data can be obtained. When printing, in addition to the "text" item, record the serial number that increases with the line in the item name "serial number" item, transpose a certain number of lines in the file, and Creates a data file in which the above is the serial number up to the fixed number and the value is the [sentence] of each original line. By doing so, it is usually provided in commercial application programs that write data to tables and cards,
Printing can be performed using a print format file in which the print location of the item value can be set. That is, each of the first to last lines of the print format file can be set at a place where the item values of the serial numbers up to the above-mentioned fixed number are printed over the entire width.

【0078】この実施例に於いて、別途準備した一連の
順番の変数に、データファイルに記録されている変数名
類を有する文字列変数類の値を代入する方法として、親
プログラム実行中に子プログラムを作る方法を示した
が、上に説明した別の方法を使用しても、同様に実施可
能であった。
In this embodiment, as a method of substituting the values of character string variables having variable names recorded in a data file into a series of separately prepared variables in order, Although a method of creating a program has been shown, it could be implemented similarly using the other methods described above.

【0079】上記のような形式の本発明の態様は、工業
所有権の出願手続の差出し書類以外にも、例えば不動産
登記書類の自動作成、健康診断の結果の各データの解説
を行う説明文書の自動作成など、項目の次にデータを記
入する形式の種々の様式書類の作成用途に応用出来る。
The embodiment of the present invention in the above-described form can be used, for example, for automatic creation of real estate registration documents and explanation of each data of the result of a health examination in addition to the sending document of the application procedure for industrial property rights. It can be applied to the creation of various forms such as automatic creation in which data is entered after the item.

【0080】実施例2 この実施例は、書式用のデータファイルの行を選択し、
それらの選択行に、出願データを記録した別のデータフ
ァイルのデータ値をもとにして得た文字列を差込み、種
々の手続の段階に応じた手紙を自動的に作成する例を示
す。
Embodiment 2 This embodiment selects a line in a data file for formatting,
An example is shown in which a character string obtained based on the data value of another data file in which application data is recorded is inserted into those selected lines, and letters corresponding to various stages of procedures are automatically created.

【0081】1) まず各行が、例えば、主たる文字列格
納用項目である、項目名「文章」、変数名を格納するた
めの文字列格納用項目である「変数1」、「変数2」、
「変数3」、「変数4」、「変数5」と、行選択用項目
である、項目名「種」、「四法」、「審査」、「証
明」、その他を有する、データファイル(ファイル名を
例えば"TEGAMI.TBL"とする。以下、データファイルを
「表」と呼ぶ場合もある。)を準備する。
1) First, each line has, for example, an item name “text” which is a main character string storage item, and “variable 1” and “variable 2” which are character string storage items for storing variable names.
A data file (file having “variable 3”, “variable 4”, “variable 5” and line selection items, item names “seed”, “four methods”, “examination”, “certification”, etc. The name is, for example, “TEGAMI.TBL.” Hereinafter, the data file may be referred to as a “table.”

【0082】作ろうとする全ての手紙の種類の文章を項
目名「文章」の項目に、そしてそれらの手紙文が送付さ
れるべきそれぞれその段階を行選択用項目である「手続
段階」に記録する。必要なときは、審査請求や、証明書
類の提出が済みかどうかについてのべる文章を出す出さ
ないを決める為に、項目名が「審査」、「証明」等の項
目に、例えば"+"、"−"等で提出済みかどうか記録す
る。
The sentences of all the types of letters to be made are recorded in the item of item name "sentence", and the respective stages to which those letters are to be sent are recorded in the "procedure stage" which is a line selection item. . When necessary, in order to decide not to issue a request for examination or to issue a text stating whether or not certificates have been submitted, the item name should be changed to "Examination", "Certification", etc. -Record whether or not it has been submitted.

【0083】「文章」の項目に格納される文中に於い
て、データを差込みたい部分がある場合には、変数値で
置き換えられるべき場所を示す記号を、その行の出現順
を示す数と共に記入しておく。例えば、▽1△、▽2△、
▽3△、▽4△、▽5△等任意の記号を用いて文中に入れ
ておいて、項目名「変数1」、「変数2」、「変数
3」、「変数4」、「変数5」の欄には、入れたいデー
タの種類に対応している変数値、項目値、これらを含む
関数値を、それらの変数名、項目値を示す記号、関数名
で記録する。
If there is a part in which data is to be inserted in the sentence stored in the item of "sentence", a symbol indicating a place to be replaced with a variable value is entered together with a number indicating the order of appearance of the line. Keep it. For example, ▽ 1 △, ▽ 2 △,
Item names "variable 1", "variable 2", "variable 3", "variable 4", "variable 5" In the column of "," variable values and item values corresponding to the type of data to be entered, and function values including these are recorded by their variable names, symbols indicating the item values, and function names.

【0084】2) 一方、例えば、項目名[四法]、[タイ
トル]、[出願番号]等を有するデータ群B(ファイル名を
例えば"DATA.TBL"と仮定する)の表を準備する。
2) On the other hand, a table of a data group B (assuming the file name is, for example, “DATA.TBL”) having item names [four methods], [title], [application number], etc. is prepared.

【0085】親プログラム(一括処理ファイル名、例え
ば"OYA.CMD")に例えば次の3)〜7)のようなステップを含
ませる。 3) 後で使用する変数を宣言する。 変数宣言 固有,文字列{&変数1,&変数2,&変数3,…,&変数n,…,&変数m} 変数宣言 固有,整数{&N} : : 4) 手紙用の文書を格納したデータファイルをオープンする。 表 BUNSHO.TBL : : 5) データファイルの文書中該当段階、該当事件に必要なもののみに選択する。 選択 [種]=*"出願"* 選択 [四法]=*"特"* 選択 [審査]=*"+"* 選択 [証明]=*"+"* : : 6) これを一時的データファイルとして外部記憶装置に書き出すことにより、最 初のデータファイルを不変のまま保てるようにする。 書き出し 表,"ICHIJI.TBL" : : 7) 一時的データファイルを開き文字列変数値での置換え場所を含む行のみ選ぶ 表 "ICHIJI.TBL" : 選択 [文章]=*"▽1△"* : 8) 1行目から順に、オープンしているファイルの現在行の項目値を記録してい るバッファの所定項目用の場所から記録されている変数名類を得て、変数名類の 数だけの別途準備した一連の順番の変数の変数名及び代入記号と共に、項目名「 予備」の項目に子プログラムを格納していく。 (例えば&Nを1づつ増加させつつ、行番号=&Nの行の「予備」項目に、次 のように最初は[変数1]に値がある行について、実施する。) : 行訂正 [予備]=#連結("&変数",#文字列(&N),"=",[変数1]) : (例えば1行目の[変数1]の値が"&年月日"であるとすれば、これによって 、&変数1=&年月日という式が書かれる。例えば2行目の[変数1]の値が"&宛て 名"であるとすれば、これによって、&変数2=&宛て名という式が書かれる。) (順次、[変数2]に値がある行、[変数3]に値がある行、[変数4]に値があ る行、[変数5]に値がある行の順で、このような代入式を&Nを1づつ増加させ ながら[予備]の値として入れていく。) : 行訂正 [予備]=#連結("&変数",#文字列(&N),"=",[変数2]) : 行訂正 [予備]=#連結("&変数",#文字列(&N),"=",[変数3]) : : 9) 書き出し 表,"KO.TBL",{[予備]} ファイル名変更 "KO.TBL","KO.CMD" : : 10) 表 DATA.TBL : : 11) 一括処理実行 "KO.CMD" : : 12) 表 "ICHIJI.TBL" (最後に元の一時ファイルに戻って、置き換え記号の部分を、先の順序で 、即ち、[変数1]の行の若い番号順、次に[変数2]の行の若い番号順、次に[変 数3]の行の若い番号順、次に[変数4]の行の若い番号順、次に[変数5]の行の 若い番号順に相当する順番で、&変数1〜&変数n(但しnは全置き換え記号の数) の値と置き換える。) [文章]=#文字置換([文章],"▽1△",&変数1) : : 14) 書き出し "TEGAMI.TXT",テキスト,[文章] (印刷するときは、図4で示されるような処理により、長すぎる行を無く し、実施例1と同様な一定行づつの転置の処理及び印刷書式ファイルの使用によ り、印刷する。)
The parent program (collective processing file name, for example, “OYA.CMD”) includes the following steps 3) to 7), for example. 3) Declare variables for later use. Variable declaration Unique, Character string {& Variable1, & Variable2, & Variable3,…, & Variable n,…, & Variable m} Variable declaration Unique, Integer {& N}:: 4) Document for letter is stored Open a data file. Table BUNSHO.TBL : : 5) Select only those that are necessary for the relevant stage and relevant case in the data file. Selection [species] = * "application" * selection [four laws] = * "special" * selection [judgment] = * "+" * selection [certification] = * "+" *: 6) This is temporary data by writing to the external storage device as a file, so keep leave the first data file unchanged. Writing table, "ICHIJI.TBL":: 7) Open the temporary data file and select only the line that contains the replacement location with the string variable value . Table "ICHIJI.TBL": Select [text] = * "▽ 1 △" *: 8) in order from the first row, open to that of the file the current for a given item in the buffer you are recording the item value of the line Obtain the variable names recorded from the location, and store the child program in the item of the item name " spare", together with the variable names and substitution symbols of a series of separately prepared variables in the number of variable names. Go. (For example, while & N is incremented by one, the following is first performed for the row with the value of [variable 1] in the "spare" item of the row with the row number = N.): Row correction [spare] = # Concatenation ("&variable",# string (& N), "=", [variable1]): (For example, if the value of [variable1] on the first line is "& year / month / day" Thus, the formula & variable1 = & year / month / day is written.For example, if the value of [variable1] in the second line is “& address”, this will result in & variable2 = & address (The name is written in the formula.) (In order, [variable 2] has a value, [variable 3] has a value, [variable 4] has a value, and [variable 5] has a value. In the order of the lines, add such an assignment expression as the value of [Reserve] while incrementing & N by 1.): Line correction [Reserve] = # concatenation ("&variable",#character string (& N) , "=", [Variable 2]): Line correction [Reserve] = # concatenation ("&variable",# character string (& N), "=", [variable 3]): 9) Write Table, "KO.TBL", {[Reserve]} Rename file "KO.TBL", "KO.CMD":: 10) Table DATA.TBL:: 11) Execute batch processing "KO.CMD":: 12) Table "ICHIJI.TBL" (Finally, returning to the original temporary file, replace the replacement symbols with the earlier order, that is, in the order of the smallest number in the line of [Variable 1], and then in the order of [Variable 2]. In the order corresponding to the youngest number in the row, then the youngest number in the row of [Variable 3], then the youngest number in the row of [Variable 4], then the youngest number in the row of [Variable 5], Replace with the value of & variable1 to & variablen (where n is the number of all replacement symbols). [Sentence] = # Character Replacement ([Sentence], "{1}", & variable1):: 14) Write "TEGAMI.TXT", text, [sentence] (When printing, remove the lines that are too long by the processing shown in FIG. Print using the file.)

【0086】この実施例に於いて、別途準備した一連の
順番の変数に、データファイルに記録されている変数名
類を有する文字列変数類の値を代入する方法として、親
プログラム実行中に子プログラムを作る方法を示した
が、上に説明した別の方法を使用しても、同様に実施可
能であった。従って、他の任意のコンピュータプログラ
ム言語のソフトウェアを使用しても、実施が可能であ
る。
In this embodiment, as a method of substituting values of character string variables having variable names recorded in a data file into a series of separately prepared variables in order, Although a method of creating a program has been shown, it could be similarly implemented using the alternative method described above. Therefore, the present invention can be implemented using software in any other computer programming language.

【0087】実施例3 更に本発明は、種々の診断システム等に応用できる。診
断システムで診断された被診断者に対し、又は被診断物
の持ち主に対し、より親切なずっと詳しい説明書を簡単
に出力して渡したい場合に、本発明のような方法は有用
である。症状の特徴に基づく行選択の為に多くの行選択
用項目を設けたデータファイルを造り、各行に、全ての
行選択用項目の値の条件を満たしている、種々の病気・
故障や、対処方法、有効な修理法・薬剤等を記載した多
種多様な説明文の文章群を準備し、一方、被診断者の、
名前、住所、性別、年齢、体重、身長、健康状態、血
圧、熱、血液検査結果等、又は被診断物の種類、特徴等
を別のデータファイルに記録する。この場合に、それら
の別のデータファイルのデータの文字列型を、関係のあ
る説明文を記載している文書中の適切な場所に差込むシ
ステムを、本発明の方法に従って構築することが出来
る。予め準備する説明文はそのような診断の分野の知識
を有するものが作成することが出来、健康の異常等を示
す特徴的なデータから、可能性のある病名、故障箇所
や、対処方法、有効な薬剤等や修理・修正方法を記載し
た文章群のうちの適切なもののみを選択してくることが
出来、その理由付けの部分に、上記のデータを差込むこ
とにより、説得力ある診断書又は説明書を出力出来る。
Embodiment 3 Further, the present invention can be applied to various diagnostic systems and the like. A method such as the present invention is useful when it is desired to easily output and give a more detailed and more detailed description to a person diagnosed by the diagnostic system or to the owner of the diagnostic object. Create a data file with many line selection items for line selection based on the characteristics of the symptoms, and make each line satisfy various conditions of values of all line selection items.
Prepare a wide variety of explanatory sentences that describe failures, coping methods, effective repair methods and chemicals, etc.
The name, address, gender, age, weight, height, health condition, blood pressure, fever, blood test results, etc., or the type and characteristics of the diagnostic object are recorded in another data file. In this case, a system according to the method of the present invention can be constructed in which the character string type of the data of those other data files is inserted into an appropriate place in the document describing the relevant description. . Explanations prepared in advance can be created by those who have knowledge in the field of diagnosis, and from characteristic data indicating abnormalities of health, etc., possible disease names, failure points, coping methods, effective You can select only appropriate ones from a group of sentences that describe various chemicals and repair / correction methods, and insert the above data into the reason Alternatively, a description can be output.

【0088】[0088]

【本発明の効果】本発明により、従来では実現出来なか
った、種々多様な様式の書類を自動作成すること、例え
ば特許出願の初期及び中間の手続きに必要な差出し書類
の全てを印字装置に打ち出し又は外部記憶装置に書込み
すること等を、容易に実現出来る。
According to the present invention, it is possible to automatically prepare various types of documents which could not be realized by the prior art. Alternatively, writing to an external storage device can be easily realized.

【0089】また、差込みされるべきデータの個数が大
きく変化する場合に於いても、不要な行の存在しない体
裁の良い書類の作成が可能である。
Further, even in the case where the number of data to be inserted changes greatly, it is possible to create a well-formed document having no unnecessary lines.

【0090】本発明は、リレーショナルデータベースソ
フトウェア等を用いて行うプログラミングに適している
という効果を有している。また、本発明では、通常のデ
ータベースソフトウェアを用いる場合に於いては、プロ
グラムを実行していない状態でデータファイルに記録さ
れている文字列を上下比較しながら見ることが出来るほ
か、上の行を下の行にコピーすることが容易であり、か
つ極めて簡単な手動的操作(桐ver.5に於いて会話処理
と呼ばれている)により行が選択された状態での必要な
文章等の原型を表わす文字列のみを見ることも出来、し
かもそようなプログラミング時に別のソフトウェアを立
ち上げる必要も、ワードプロセッサにより数多くの文書
ファイルを開いたり閉じたりする必要もないので、例え
ばプログラミング段階もプログラムのデバッグ段階も極
めて容易となる。別の言い方をすれば、プログラムを作
る前に、そのようなデータファイルを作成しただけで
も、プログラムのかなりの部分が出来上がったことに相
当し、その作成は極めて効率良い。
The present invention has an effect that it is suitable for programming using relational database software or the like. Further, in the present invention, when ordinary database software is used, the character strings recorded in the data file can be viewed up and down while the program is not executed, and the upper line can be viewed. It is easy to copy to the line below, and the prototype of the necessary text etc. with the line selected by a very simple manual operation (called conversation processing in paulownia ver.5) It is possible to see only the character string that represents, and it is not necessary to start up another software at the time of such programming, and to open and close many document files with a word processor, for example, during the programming stage, debugging the program The steps are also very easy. Stated another way, just creating such a data file before creating the program is equivalent to creating a substantial portion of the program, and its creation is extremely efficient.

【図面の簡単な説明】[Brief description of the drawings]

【図1】 本発明の方法で実行される手順の前半を示す
フローチャートである。
FIG. 1 is a flowchart showing the first half of a procedure executed by the method of the present invention.

【図2A】 本発明方法で実行される文書作成例の前半
手順を、表形式で表わしたデータファイル及び一時デー
タファイルで示す図2Bの前の段階のフローチャート。
FIG. 2A is a flowchart of the first stage of FIG. 2B showing the first half procedure of a document creation example executed by the method of the present invention, using a data file and a temporary data file represented in a table format.

【図2B】 本発明方法で実行される文書作成例の後半
手順を、表形式で表わしたデータファイル及び一時デー
タファイルで示す図2Aに続くフローチャート。
FIG. 2B is a flowchart following FIG. 2A, showing the latter half procedure of the document creation example executed by the method of the present invention, using a data file and a temporary data file represented in a table format.

【図3A】 本発明方法で実行される文書作成例の前半
の手順を、表形式で表わしたデータファイル及び一時デ
ータファイルで示す図3Bの前の段階のフローチャー
ト。
FIG. 3A is a flowchart of the first step of FIG. 3B showing the first half of the procedure of a document creation example executed by the method of the present invention, using a data file and a temporary data file represented in a tabular form.

【図3B】 本発明方法で実行される文書作成例の中間
の手順を、表形式で表わしたデータファイル及び一時デ
ータファイルで示す図3Aに続くフローチャート。
FIG. 3B is a flowchart following FIG. 3A, showing intermediate steps of a document creation example executed by the method of the present invention, using a data file and a temporary data file represented in a tabular format.

【図3C】 本発明方法で実行される文書作成例の後半
の手順を、表形式で表わしたデータファイル及び一時デ
ータファイルで示す図3Bに続くフローチャート。
FIG. 3C is a flowchart following FIG. 3B, showing the latter half of the procedure of a document creation example executed by the method of the present invention, using a data file and a temporary data file represented in a table format.

【図4】 簡単な方法で印刷する為に、設定幅を越える
文字数の行を設定内にそろえるとともに行数を増やす手
順を示すフローチャート。
FIG. 4 is a flowchart showing a procedure for arranging lines having a number of characters exceeding a set width in a setting and increasing the number of lines for printing by a simple method.

【図5】 子プログラムを生じる手順を示すフローチャ
ート。
FIG. 5 is a flowchart showing a procedure for generating a child program.

【図6】 子プログラムを生じる手順を示すフローチャ
ート。
FIG. 6 is a flowchart showing a procedure for generating a child program.

【図7】 子プログラムを生じない方法の手順を示すフ
ローチャート。
FIG. 7 is a flowchart showing a procedure of a method that does not generate a child program.

Claims (15)

【特許請求の範囲】[Claims] 【請求項1】各行が1以上の文字列格納用項目を含めた
複数の項目からなっている、複数の行からなる構造を有
するデータであって、且つ、少なくとも1以上の行に於
いて、文字列変数類{但し文字列変数類には、プログラ
ム言語で許される文字列変数、該データと異なる別のデ
ータファイルの項目の値を示す記号、文字列値をとる関
数を含むものとする}の変数名、関数名、項目値を表わ
す記号等{以下変数名類と呼ぶ}の1以上を、該文字列
格納用項目のいずれかに含んでいる、予めデータファイ
ル記憶手段に記憶されているデータファイルのデータか
ら、入力手段により入力された1以上の入力データに基
づく条件式を所定の1以上の項目の値が満たしている、
より少ない行数の所望の行であって、該変数名類の1以
上を含む行が1以上含まれている行だけに抽出又は選択
することにより、選択行からなるデータを得る手順、 該選択行の各行につき、該文字列格納項目に格納されて
いた値に由来する目的とする文字列を出力するにあたっ
て、該選択行からなるデータのうちの変数名類を含む行
に於いては、又は変数名類を含む行及び合成に用いられ
るべき文字列定数を含む行に於いては、それらの行中
の、文字列格納用項目のうちの少なくとも1項目に格納
されている変数名類が示す文字列変数類の値又は合成に
用いられるべき文字列定数と、他の文字列格納用項目に
格納されている文字列及び/又は同じ文字列格納用項目
に格納されている文字列の他の部分とによって、文字列
を合成して目的の文字列とし、生じた文字列群データを
ファイルに記録及び/又は印刷及び/又はディスプレイ
に表示する手順、をプログラムが含んでおり、 ここで該合成が、 1)イ)親プログラム実行中に、該文字列変数類又は該
文字列定数から別途準備した一連の順番の文字列変数へ
の代入式を有する子プログラムファイルを、子プログラ
ムファイル記録手段に記録した後、該子プログラムに実
行を移し、次いで親プログラムに実行を戻すことによ
り、又は、 ロ)該データファイルの変数名類を示す文字列又は合成
に用いられるべき文字列定数をいずれかの項目中に記録
している各行の、その項目値文字列から、変数名類を示
す文字列又は合成に用いられるべき文字列定数を、メモ
リ上に記録して、それと一致する文字列を、文字列変数
類記録手段に文字列変数類の値とある関係付を有するよ
うに記録されている変数名類のなかから検索し、該当す
るものにつき該関係付けから求められる文字列変数類の
値を、また該当しないものにつき単なる文字列としてそ
のままの文字列値を、別途準備した一連の順番の文字列
変数に代入することにより、 一定の順序で、該データファイルのデータ中に含まれて
いる該変数名類を有している文字列変数類の値及び存在
する場合の合成に用いられるべき文字列定数値を、該別
途準備した一連の順番の文字列変数に代入し、 2)該代入された別途準備した一連の順番の文字列変数
の値を、文字列格納用項目に格納されている文字列と共
に、該目的とする文字列群を生じる為に、該一定の順序
に従う、置き換え及び/又は連結からなる合成に用いる
こと、からなることを特徴とする、種々の目的の文字列
群の原型を含む該データファイルのデータと、それ以外
のデータとに基づいて、コンピュータプログラムを用い
て特定目的の文字列群を合成する方法。
1. Data having a structure of a plurality of lines, each line including a plurality of items including one or more character string storage items, and at least one or more lines, Variables of character string variables, where character string variables include character string variables permitted in the programming language, symbols indicating the values of items in another data file different from the data, and functions that take character string values. A data file which is stored in advance in the data file storage means and includes at least one of the following: a name, a function name, a symbol representing an item value, etc. {hereinafter referred to as a variable name} in any of the character string storage items. , The value of one or more predetermined items satisfies a conditional expression based on one or more input data input by the input means,
A procedure of extracting or selecting only desired rows having a smaller number of rows and including at least one row including at least one of the variable names, to obtain data consisting of selected rows; In outputting the target character string derived from the value stored in the character string storage item for each line of the line, in the line including the variable names among the data of the selected line, or In the line containing variable names and the line containing character string constants to be used for composition, the variable names stored in at least one of the character string storage items in those lines indicate The value of a string variable or a string constant to be used for composition, and a string stored in another string storage item and / or another string stored in the same string storage item. By combining the character string with the part, the desired character The program includes a procedure for recording the resulting character string group data in a file and / or printing and / or displaying it on a display, wherein the composition is performed by: 1) a) executing the parent program during execution of the parent program. After recording in a child program file recording means a child program file having an assignment formula to a series of character string variables prepared separately from a string variable or the string constant, execution is transferred to the child program, and then By returning execution to the parent program, or b) the item value of each line that records the character string indicating the variable name of the data file or the character string constant to be used for synthesis in any item From the character string, a character string indicating a variable name or a character string constant to be used for composition is recorded in the memory, and a character string matching the character string is stored in the character string variable recording means. Search from the variable names recorded so as to have a certain relationship with the values of the numbers, and find the value of the string variable that is obtained from the relation for the relevant one, By substituting the string value as it is as a string into a series of separately prepared string variables, the variable file names are included in the data of the data file in a certain order. Substituting the values of the string variables and the string constant values to be used in the composition, if any, into the separately prepared sequence of string variables; 2) Using the value of a string variable together with the string stored in the string storage item in a composition consisting of replacement and / or concatenation in accordance with the certain order to generate the target string group , Consisting of A method for synthesizing a character string group for a specific purpose using a computer program based on data of the data file including prototypes of character string groups for various purposes and other data.
【請求項2】該合成に於いて、一定の順序で、該データ
ファイルのデータ中に含まれている該変数名類を有して
いる文字列変数類の値及び存在する場合の文字列定数値
を、別途準備した一連の順番の文字列変数に代入する段
階が、上記イ)の、親プログラム実行中に、該文字列変
数類から又は該文字列定数から別途準備した一連の順番
の文字列変数への代入式を有する子プログラムファイル
を、子プログラムファイル記録手段に記録した後、該子
プログラムに実行を移し、次いで親プログラムに実行を
戻すことにより行われ、 ここで、該子プログラムファイルを、子プログラムファ
イル記録手段に記録する段階が、次のいずれかの手順、
即ち、 i) 該抽出又は選択された行のうちの変数名類又は合
成に用いられるべき単なる文字列定数を含む行につい
て、ひとつの行のそれぞれの項目の値をバッファとして
のメモリー上の常に同じ所定のそれぞれの番地に記憶す
ること(以下該ひとつの行を現在行と述べる)を、一定
の順序で全変数名類の値及び全文字列定数が得られるよ
うに各行につき1回以上行って、その際に得ようとして
いる変数名類用の項目の該メモリー上の位置に格納され
ている値からの変数名類又は単なる文字列定数と、別途
準備する一連の順番の文字列変数の変数名とを、前者か
ら後者への代入命令記号と共に、別のファイルの一項目
に格納するか又は同ファイルの予備項目に格納して子プ
ログラムフィル記録手段に書き込むことによって、又
は、 ii)該抽出又は選択された行のうちの変数名類又は合
成に用いられるべき単なる文字列定数を含む行を選択
し、変数名類又は合成に用いられるべき単なる文字列定
数を含む全ての項目を、子プログラム記録手段となるべ
きファイルに書き出すが、その際、それらの変数名類又
は合成に用いられるべき単なる文字列定数に対し、ある
項目につき全行を指定値で置き換える操作である「置
換」を実行すると行順に連続する番号を与える結果を生
じる機能を持つ「#文字列(#連番)」関数及び「#連結」
関数を用いる「置換」を行うことによって、該別途準備
した一連の順番の文字列変数類と代入記号とが該変数名
類又は存在する場合の合成に用いられるべき単なる文字
列定数に連結された形式としてから該ファイルに書き出
すか、該変数名類及び存在する場合の合成に用いられる
べき単なる文字列定数を該ファイルに書き出してから該
「置換」によってその形式にすることによって、 子プログラムの中に、該選択行からなるデータに変数名
類が含まれる文字列変数類に値が与えられていればそれ
らの値のそれぞれを、また、存在する場合には文字列定
数の値のそれぞれを、該一定の順序で、別途準備した一
連の順番の文字列変数に代入する命令を含んでいる子プ
ログラムファイルを、子プログラムファイル記録手段に
記録することからなることを特徴とする、請求項1に記
載の方法(但し、該「置換」とは、対象となる全ての選
択行を、並んでいる順番に、指定された項目の値を指定
された文字列で置き換えていく手順をさすものとし、該
「#連番」関数とは、その場合の行と共に1から順に増
加するカウンターの示す整数値を与える関数を意味する
ものとし、該「#文字列」関数とは、因数の数値に対応
する数字の文字列を与える関数であるものとする。)。
2. In the synthesizing, in a predetermined order, the value of a character string variable having the variable name included in the data of the data file and the character string definition if it exists. The step of substituting a numerical value into a separately prepared sequence of character string variables comprises the step of a), during the execution of the parent program, a sequence of characters separately prepared from the character string variables or the character string constants. After recording the child program file having the assignment formula to the column variable in the child program file recording means, the execution is transferred to the child program, and then the execution is returned to the parent program. Is recorded in the child program file recording means, any one of the following procedures,
I) With respect to a line containing variable names or a simple character string constant to be used for composition among the extracted or selected lines, the value of each item of one line is always the same in a memory as a buffer. The storage at the predetermined addresses (hereinafter, this one line is referred to as the current line) is performed at least once for each line so that the values of all variable names and all the character string constants can be obtained in a certain order. , A variable name or a simple character string constant from the value stored in the memory location of the variable name item to be obtained at that time, and a series of sequence variable variables separately prepared By storing it in one item of another file together with an assignment command symbol from the former to the latter or in a spare item of the same file and writing it to the child program file recording means; or ii) Alternatively, select the line containing the variable names or the simple character string constants to be used in the composition from the selected line, and enter all the items including the variable names or the simple character string constants to be used in the composition into the child program. When writing to a file to be the recording means, when performing `` replacement '', which is an operation to replace all the lines for a certain item with a specified value for those variable names or simple character string constants to be used for composition "# String (#sequential number)" function and "# concatenation" function that gives the result of giving consecutive numbers in line order
By performing "replacement" using a function, the series of separately prepared string variables and substitution symbols are linked to the variable names or simple string constants to be used in the synthesis when present. By writing to the file from the format, or by writing the variable names and mere string constants to be used in the synthesis when present to the file and then making the format by the “replacement”, In the data consisting of the selected line, if the value is given to the character string variables that include the variable name, each of those values, if it exists, each of the values of the character string constant, Recording a child program file containing instructions for substituting in a given sequence into a series of separately prepared character string variables in a child program file recording means. 2. The method according to claim 1, wherein the "replacement" is a character string in which the values of the designated items are designated in the order in which all the target selected lines are arranged. The “# serial number” function means a function that gives an integer value indicated by a counter that sequentially increases from 1 together with the line in that case, and the “# character string” A function is a function that gives a character string of a number corresponding to a numerical value of a factor.)
【請求項3】該入力手段により入力された1以上の入力
データに基づく条件式を所定項目の値が満たしている所
望の行だけに抽出又は選択する段階が、該所望の行だけ
に抽出又は選択されたデータを一時データファイルとし
て記録することを含み、 該子プログラムファイルを生じる段階が、全行が変数名
類又は合成に用いられるべき文字列定数を含む場合なら
そのまま、そうでないなら変数名類又は合成に用いられ
るべき文字列定数を含む行を選択し、該記録された一時
データファイルの該変数名類が含まれる行の予備項目
に、子プログラムに含める該別途準備した一連の順番の
文字列変数に代入する命令を変数名類及び合成に用いら
れるべき文字列定数の出現数だけ記録し、必要な行のそ
れらの予備項目中での記録と親プログラムへの復帰命令
の追加で完成した子プログラムをプログラムファイルと
して書き出し記録することを含んでいる、請求項1又は
2に記載の方法。
3. The step of extracting or selecting a conditional expression based on one or more input data input by said input means only in a desired row satisfying a value of a predetermined item, extracting or selecting only a desired row. Including the recording of the selected data as a temporary data file, leaving the child program file intact if all lines contain variable names or string constants to be used for composition; otherwise, the variable name Class or a line containing a character string constant to be used for synthesis, and in the reserved item of the line containing the variable name class in the recorded temporary data file, the sequence of the separately prepared series included in the child program is included. Record the instructions to be assigned to the string variables by the variable names and the number of occurrences of the string constants to be used for composition, record the necessary lines in those spare items, and return to the parent program 3. The method according to claim 1, further comprising writing and recording a child program completed by adding the instructions as a program file.
【請求項4】該一連の順番が、第一出現変数名のある行
を選択した後に現在行を1〜末行まで変化させて第一出
現変数名を該別途準備した一連の順番の文字列変数の変
数名と対応させ、次に該当する場合には第二出現変数名
のある行を選択した後に現在行を1〜末行まで変化させ
て第二出現変数名を該別途準備した一連の順番の文字列
変数の変数名と対応させ、この手順を以下、第三出現変
数名〜最も出現順の遅い変数名までくりかえすことによ
り、該別途準備した一連の順番の文字列変数の変数名と
の対応を、第一出現変数名類の1〜最後、第二出現変数
名類の1〜最後のような順とし、最後に最も出現順の遅
い変数名の1〜最後の順に行う、請求項3に記載の方
法。
4. A series of character strings in a sequence in which a first occurrence variable name is changed from a first line to a last line after a line having a first occurrence variable name is selected and the first occurrence variable name is separately prepared. A variable corresponding to the variable name of the variable, and in the next case, after selecting a line with the second occurrence variable name, changing the current line from 1 to the last line, the second occurrence variable name Corresponding to the variable name of the character string variable in the order, this step is repeated from the third appearance variable name to the variable name of the latest appearance order, the variable name The first to last of the first occurrence variable classes, the first to last of the second occurrence variable classes, and finally the last to last variable names in the first to last order. 3. The method according to 3.
【請求項5】(i) プログラムファイルを発生し外部記
憶装置に記憶させること及び実行させることが出来、か
つ、各行の各項目それぞれに文字列等のデータを含むこ
とが出来る、1以上の項目と1以上の行からなるデータ
群格納ファイルを発生し外部記憶装置に記憶させること
が出来、かつ、 (ii) プログラムの実行中に、発生済データ群格納ファ
イルの全行のうちから、指定する条件式に合致する任意
の1以上の行を選択し、そしてその選択行からなるデー
タ群格納形態を内部メモリに一時記憶させることができ
及び/又はその選択行からなるデータ群格納ファイルを
外部メモリに記憶させることが出来、かつ、 (iii) プログラムの実行中に、あるデータ群格納ファイ
ルの1行を選択又は指定する命令又は宣言がなされてい
る場合にはその行の各項目に対するデータ値を項目名に
対応する所定の記号を用いて変数へ代入可能であり、か
つ、 (iv) プログラムの一つの指定するステップから別のプ
ログラムの一つの指定するステップへ実行を移すことが
可能であり、かつ、 (v) あるプログラムの実行中に、そのプログラムの命
令に従って、実行可能な別のプログラムファイルを外部
記憶装置に書込み可能であるか、又はプログラムを含ん
でいる実行できないデータファイルを外部記憶装置に書
込みした後そのデータファイルをプログラムファイルに
変更可能である、ソフトウェアを使用して該プログラム
ファイル及び該データファイルの発生と記録、及び該プ
ログラムの実行を行う、請求項2〜4のいずれかに記載
の方法。
(I) One or more items capable of generating and storing a program file in an external storage device and executing the program file, and each item of each line can include data such as a character string. And a data group storage file consisting of one or more lines can be generated and stored in an external storage device, and (ii) during execution of the program, a designation is made from all the lines of the generated data group storage file Any one or more rows that meet the conditional expression can be selected, and the data group storage form consisting of the selected rows can be temporarily stored in the internal memory and / or the data group storage file consisting of the selected rows can be stored in the external memory. (Iii) If a command or declaration that selects or designates one line of a certain data group storage file is made during execution of the program, A data value for an item can be assigned to a variable using a predetermined symbol corresponding to the item name, and (iv) execution is shifted from one specified step of a program to one specified step of another program. And (v) another program file that can be written into an external storage device during execution of a program in accordance with the instructions of the program, or non-executable data containing the program. The method according to claim 2, wherein after writing the file to the external storage device, the data file can be changed to a program file. The generation and recording of the program file and the data file using software are performed, and the execution of the program is performed. 5. The method according to any one of 4.
【請求項6】該合成に於いて、一定の順序で、該データ
ファイルのデータ中に含まれている該変数名類を有して
いる文字列変数類の値及び存在する場合の合成に用いら
れるべき文字列定数値を、別途準備した一連の順番の文
字列変数に代入する段階が、上記ロ)の該データファイ
ルの変数名類を示す文字列又は合成に用いられるべき文
字列定数をいずれかの項目中に記録している各行の、そ
の項目値文字列から、変数名類を示す文字列又は合成に
用いられるべき文字列定数をメモリに記録し、それと一
致する文字列を、文字列変数類記録手段に文字列変数類
の値とある関係付を有するように記録されている変数名
類のなかから検索し、該当するものにつき該関係付けか
ら文字列変数類の値を、また該当しないものにつき単な
る文字列としてそのままの文字列値を、別途準備した一
連の順番の文字列変数に代入することにより行われ、 ここで、 i) 該文字列変数類記録手段が、該プログラムの作成
に用いる言語ソフトウェアが規定する変数テーブルであ
り、且つ、該関係付けが該言語ソフトウェアに於いて決
められている文字列変数の格納方式であり、且つ、該関
係付けから文字列変数類の値を得ることが、該関係付け
から文字列変数類の値を得る手順を該プログラム中に含
めることにより、又は該言語ソフトウェアにより又はそ
れ以外により準備されている、因数が文字列変数類の変
数名類を示す文字列であればその文字列変数類の値を返
す関数を用いることによりなされるか、又は、 ii)該文字列変数類記録手段が、予め使用可能文字列
変数類と決定されている文字列変数類について、プログ
ラム実行中に、それらの所望の値が代入された後の段階
で、空きメモリ上に又はファイルとして外部記憶装置
に、関係付けて記録された、該文字列変数類の値又はそ
のコード、及び該文字列変数類の変数名類又はそのコー
ドを含んでいるものである、請求項1に記載の方法。
6. In the synthesizing, in a certain order, the values of character string variables having the variable names included in the data of the data file and the synthesizing of the string variables if they exist. The step of substituting the string constant value to be performed into a string variable in a series of sequences prepared separately includes the step (b) of changing the character string indicating the variable name of the data file or the character string constant to be used for synthesis. From the item value string of each line recorded in that item, record a character string indicating a variable name or a character string constant to be used for composition in the memory, and replace the character string that matches it with a character string A search is made from the variable names recorded in the variable recording means so as to have a certain relationship with the values of the string variables, and for the corresponding variable, the value of the string variable is obtained from the relation, and For those that don't, It is performed by substituting the character string value as it is into a series of character string variables prepared separately, wherein: i) the character string variable recording means is defined by language software used to create the program. A variable table, wherein the association is a storage method of character string variables determined in the language software, and obtaining a value of character string variables from the association is If the factor is a character string indicating a variable name of a string variable, the procedure for obtaining the value of the string variable from is included in the program, or prepared by the language software or otherwise. Or ii) the character string variable recording means is a character string variable determined in advance as a usable character string variable. During the execution of the program, at the stage after those desired values are substituted, the values of the character string variables or the codes thereof are recorded in a free memory or as a file in an external storage device in association with each other. 2. The method according to claim 1, including the variable names of the string variables or their codes.
【請求項7】種々の目的の文字列群の原型を含むデータ
ファイルのデータと、それ以外のデータとに基づいて、
コンピュータプログラムの実行に従って特定目的の文字
列群を合成する方法あって、 該コンピュータプログラムで使用する文字列変数類のう
ち、文字列群の原型を含むデータファイルのデータに値
を差込みする為の文字列変数類の変数名類を予め決定し
ておき、そして該コンピュータプログラムを実行するこ
とからなるが、 該コンピュータプログラムが、 1)プログラム実行中の該決定された文字列変数類に所
望の値が代入されている段階に於いて、該文字列変数類
の値と該文字列変数類の変数名類と、又はそれらのコー
ドを、関係付けて、空きメモリ上への記録や外部記憶装
置のファイルへの記録等の、文字列変数類記録手段に記
録する手順、 2)各行が1以上の文字列格納用項目を含めた複数の項
目からなっている、複数の行からなる構造を有するデー
タであって、且つ、少なくとも1以上の行に於いて、上
記決定された変数名類のうちの1以上を該文字列格納用
項目のいずれかに含んでいる、予めデータファイル記憶
手段に記憶されている該種々の目的の文字列群の原型を
含むデータファイルのデータから、入力手段により入力
された1以上の入力データに基づく条件式を所定の1以
上の項目の値が満たしている、より少ない行数の所望の
行だけに抽出又は選択することにより、選択行からなる
データを得る手順、 3)該文字列格納項目に格納されていた値に由来する目
的とする文字列を出力するにあたって、該選択行からな
るデータのうちの変数名類を含む行に於いては、又は変
数名類を含む行及び合成に用いられるべき文字列定数を
含む行に於いては、それらの行中の、文字列格納用項目
のうちの少なくとも1項目に格納されている変数名類が
示す文字列変数類の値又は合成に用いられるべき文字列
定数と、他の文字列格納用項目に格納されている文字列
及び/又は同じ文字列格納用項目に格納されている文字
列の他の部分とによって、文字列を合成して目的の文字
列とし、生じた文字列群データをファイルに記録及び/
又は印刷及び/又はディスプレイに表示する手順、を含
んでおり、 ここで該合成が、 (1)親プログラム実行中に、該選択行からなるデータ
のいずれか1以上の項目に該変数名類又は合成に用いら
れる文字列定数を含む各行のそれらの項目値文字列か
ら、一定の順序で、該変数名類を示す文字列又は合成に
用いられる文字列定数のそれぞれをメモリ上又は外部記
憶装置上に記録する手順、 (2)該記録された変数名類を示す文字列又は合成に用
いられる文字列定数のそれぞれについて、該文字列変数
類記録手段を検索して、一致する場合に、得られる変数
名類と関連して記録されている文字列変数類の値を、該
当するものがない場合に、その文字列値を、そのまま用
いて、又は別途準備した一連の順番の文字列変数に代入
しそれらの文字列変数類を用いて、文字列格納用項目に
格納されている文字列と共に、該目的とする文字列群を
生じる為に、該一定の順序に従う、置き換え及び/又は
連結からなる合成を行うこと、からなることを特徴とす
る方法。
7. Based on data of a data file including prototypes of various character string groups and other data,
A method for synthesizing a character string group of a specific purpose in accordance with execution of a computer program, wherein a character for inserting a value into data of a data file including a prototype of the character string group among character string variables used in the computer program The variable names of the column variables are determined in advance, and the computer program is executed. The computer program: 1) A desired value is assigned to the determined character string variables during execution of the program. At the stage of the substitution, the values of the character string variables and the variable names of the character string variables, or their codes, are associated with each other to be recorded on a free memory or stored in a file in an external storage device. 2) a plurality of lines, each line including a plurality of items including one or more character string storage items. A data file storing data having a structure and including at least one of the determined variable names in any of the character string storage items in at least one or more rows. From the data of the data file including the prototypes of the various character strings stored in the means, the values of the predetermined one or more items satisfy the conditional expression based on the one or more input data input by the input means. A procedure for obtaining data consisting of selected rows by extracting or selecting only desired rows having a smaller number of rows, 3) a target character string derived from the value stored in the character string storage item In the output of the selected line, in the line including the variable names in the data consisting of the selected line, or in the line including the variable names and the line including the character string constant to be used for the synthesis, In the row of The value of a character string variable indicated by a variable name stored in at least one of the character string storage items or a character string constant to be used for synthesis, and a character string constant stored in another character string storage item. The target character string is synthesized by combining the character string with the existing character string and / or another part of the character string stored in the same character string storage item, and the generated character string group data is recorded and / or recorded in a file.
Or printing and / or displaying on a display, wherein the synthesizing includes: (1) during execution of the parent program, at least one item of the data consisting of the selected line; From the item value character strings on each line including the character string constant used for the composition, a character string indicating the variable name or the character string constant used for the composition is stored on a memory or an external storage device in a certain order. (2) Searching the character string variable recording means for each of the character strings indicating the recorded variable names or the character string constants used in the synthesis, and obtaining a match if they match. If there is no applicable value for the string variable recorded in association with the variable name, use the string value as it is or substitute it for a series of separately prepared string variables. And those strings Performing a composition consisting of replacement and / or concatenation in accordance with the certain order to generate the target character string group together with the character string stored in the character string storage item using the number class; A method comprising:
【請求項8】該データファイルの各行が1以上の文字列
格納用項目と1以上の行選択用数字・文字・記号類を含
む行選択用項目とを有している、請求項1〜7のいずれ
か一に記載の方法。
8. The data file according to claim 1, wherein each line of the data file has one or more character string storage items and one or more line selection items including line selection numbers, characters, and symbols. The method according to any one of the above.
【請求項9】請求項1に記載の、該代入された別途準備
した一連の順番の文字列変数の値を、文字列格納用項目
に格納されている文字列と共に、該目的とする文字列群
を生じる為に、該一定の順序に従う、置き換え及び/又
は連結からなる合成に用いることが、 該変数名類が示す文字列変数の値又は合成に用いられる
べき文字列定数値を、1以上の文字列格納用項目の文字
列と、決められた順序で連結することからなる処理を行
うことにより、又はその処理と別の文字列格納用項目の
項目値との連結及び/又は指定記号部分の置換及び/又
は不要行の削除とを組み合わせた処理を行うことによ
り、該選択行又は該選択行のうち不要行の削除された行
からなり、一つの項目中に処理された最終的所望文字列
群を含んでいるデータを得ることからなること、を特徴
とする請求項1〜8のいずれか一に記載の方法。
9. The target character string, together with the character string stored in the character string storage item, wherein the value of the substituted series of character string variables separately prepared according to claim 1 is stored. In order to generate a group, it is used in the composition consisting of replacement and / or concatenation according to the certain order, and the value of the character string variable indicated by the variable name or the character string constant value to be used for the composition is one or more. By performing a process consisting of concatenating with the character string of the character string storage item in a predetermined order, or by concatenating the process with the item value of another character string storage item and / or specifying a symbol Of the selected line or the line of the selected line from which the unnecessary line has been deleted, and the final desired character processed in one item. From obtaining data containing columns The method according to claim 1, wherein the method comprises:
【請求項10】該予めデータファイル記憶手段に記憶さ
れているデータファイルが、文字列格納用項目と行選択
用数字・文字・記号類を含む行選択用項目とを含み、文
字列格納用項目として、左側項目と右側項目を含み、該
左側項目に文字列又は無文字列を格納しており、該右側
項目に変数名類を示す文字列又は合成に用いられるべき
文字列定数を格納しており、 該プログラムが、 表示される行の右側項目の値が空白となるべきときは、
空白に変換される記号として文字列定数を右側項目に記
録しておき、右側項目に記録されている変数名類の文字
列変数の値が無文字列(ヌルストリング)であるために
行が削除されるべきときは、該別途準備した一連の順番
の文字列変数への代入段階に於いて、削除記号を代入さ
せ、左側項目に対し右側項目に由来する該別途準備した
一連の順番の文字列変数の値を連結した後に、最終段階
に於いて、該削除記号を有する行を削除し、右側項目中
に該空白に変換される記号を有する行のその記号を空白
と置換することにより、必要な行を残し、不要行を削除
する手順も含む、請求項9に記載の方法。
10. A data file prestored in the data file storage means includes a character string storage item and a line selection item including numbers, characters, and symbols for line selection. Contains a left item and a right item, stores a character string or a non-character string in the left item, and stores a character string indicating a variable name or a character string constant to be used for composition in the right item. If the value of the right item of the displayed line should be blank,
Record a string constant as a symbol to be converted to a blank in the right item, and delete the line because the value of the string variable of the variable name recorded in the right item is a non-character string (null string) If it is to be done, in the step of assigning to the separately prepared sequence of character string variables, a deletion symbol is substituted, and the separately prepared sequence of character strings derived from the right item for the left item After concatenating the values of the variables, the final step is to delete the line with the delete symbol and replace that symbol in the line with the symbol that is converted to the blank in the right-hand item with a blank. The method according to claim 9, further comprising a step of leaving unnecessary rows and deleting unnecessary rows.
【請求項11】該種々の目的が、特許、実用新案、意
匠、及び商標の出願手続の差出し用に用いられる種々の
書類の作成であり、特定目的がそれらの種々の書類のう
ちの特定の書類である請求項9又10はに記載の方法。
11. The various objects are the preparation of various documents used for submitting patent, utility model, design, and trademark application procedures, and the specific purpose is a specific one of the various documents. The method according to claim 9 or 10, which is a document.
【請求項12】請求項1に記載の、該代入された別途準
備した一連の順番の文字列変数の値を、文字列格納用項
目に格納されている文字列と共に、該目的とする文字列
群を生じる為に、該一定の順序に従う、置き換え及び/
又は連結からなる合成に用いることが、 何れかの文字列格納用項目の文字列中の任意の位置に含
まれ、かつそれらの該変数名類又は合成に用いられるべ
き文字列定数を格納している項目に対応している置換記
号を、該一定の順序に従って、該代入された別途準備し
た一連の順番の文字列変数の値で置き換えることからな
る処理を行うことにより、又はその処理と別の文字列格
納用項目の項目値との連結及び/又は予め置換する為に
指定しておいた記号部分の置換及び/又は不要行の削除
とを組み合わせた処理を行うことにより、該選択行又は
該選択行のうち不要行の削除された行からなり、一つの
項目中に処理された最終的所望文字列群を含んでいるデ
ータを得ることからなること、を特徴とする請求項1〜
8の何れか一に記載の方法。
12. The target character string, together with the character string stored in the character string storage item, wherein the values of the substituted series of character string variables separately prepared according to claim 1 are stored. Follow the certain order, produce a group, replace and / or
Or, to be used for composition consisting of concatenation, it is included in any position in the character string of any character string storage item, and stores those variable names or character string constants to be used for composition. By replacing the substitution symbol corresponding to the item with the value of the assigned series of separately prepared string variables in accordance with the predetermined order, or by performing another process. By performing a combination of the connection with the item value of the character string storage item and / or the replacement of the symbol part designated in advance and / or the deletion of the unnecessary line, the selected line or the unnecessary line is deleted. 2. A method according to claim 1, further comprising obtaining data including a final desired character string group processed in one item, the data being composed of lines from which unnecessary lines have been deleted among the selected lines.
9. The method according to any one of the above items 8.
【請求項13】該予めデータファイル記憶手段に記憶さ
れているデータファイルが、文字列格納用項目と行選択
用数字・文字・記号類を含む行選択用項目とを含み、該
文字列格納用項目として、変数位置を示す置換記号を含
み得る文字列を格納する項目と変数名類を格納する項目
を含んでおり、 該種々の目的が、別の特定のデータファイルに基づくデ
ータを記入する場所を有し、目的毎に異なる多種類の形
式の手紙の作成であり、該特定目的がそれらのうちの1
種類の形式の手紙の作成である、請求項12に記載の方
法。
13. A data file stored in said data file storage means in advance includes a character string storage item and a line selection item including numbers, characters, and symbols for line selection. The items include an item for storing a character string that may include a substitution symbol indicating a variable position and an item for storing variable names, and the various purposes are places for writing data based on another specific data file. Is the creation of letters of various types that differ for each purpose, and the specific purpose is one of them.
13. The method according to claim 12, wherein the creation of the letter is of a type.
【請求項14】請求項1乃至13のいずれか一に記載の
方法に含まれる手順を含んでいるプログラム、又は該プ
ログラムと該データファイルのデータとを記録している
コンピュータ読み取り可能な記録媒体。
14. A computer-readable recording medium recording a program including the procedure included in the method according to claim 1, or a computer-readable recording medium storing the program and the data of the data file.
【請求項15】各行が1つの文字列格納用項目と行選択
用項目とを含めた複数の項目と複数の行からなる構造を
有し、予めデータファイル記憶手段に記憶されているデ
ータを、該行選択用項目の1以上の値に基づいて行を選
択するために入力手段により入力された1以上の入力デ
ータに基づく条件式を、その1以上の行選択用項目の値
が満たしている所望の行だけに抽出又は選択し、少なく
とも行番号の項目なるべき項目と印刷したい文字列を格
納する項目となるべき項目とを含んでいる一時データフ
ァイルに記録するする手順、 該抽出又は選択し一時データファイル、又はその一時デ
ータファイルから誘導される更に別のデータファイルに
記録したデータがL行ある場合に、それらの行の最初か
ら順に、該1つの文字列格納用項目の文字列が、設定行
最大幅の位置を越える行を、又は英文にあっては設定行
最大幅に最も近い行最大幅以下のワードの区切り位置を
越える行を、行最大幅内のそのような位置で順次改行さ
せて、複数行に分けることにより、L行をL’行に増や
す手順、 それらのL’行を順番にm行づつメモリ上に記録して、
記録した各行のデータの構造を転置をさせ、但し、該転
置は、行番号の項目となるべき項目の1〜m行に記録さ
れている値を転置されたデータの構造に於ける項目名と
し、該項目以外の所望文字列を含むある他の項目の1〜
m行に順次記録されている値のそれぞれを、順次そのよ
うな項目名下の項目1〜mを有する所望文字列を含むあ
る行とすることにより、該m行づつメモリ上に記録した
データを、n−1行(nはn>1の整数、好ましくは
2)の一時ファイルに変換する手順、及び該一時ファイ
ル用の1〜m項目表示部を含んでいる予め準備した印刷
用書式ファイルを利用して該n−1行のうちの所望文字
列を含む一行の1〜m項目の内容を印刷する手順を含
み、このようにm行づつの印刷を繰り返す、コンピュー
タによりデータファイルから抽出した文字列群を印刷す
る方法。
15. Each line has a structure including a plurality of items and a plurality of lines including one character string storage item and a line selection item, and stores data stored in the data file storage means in advance. The value of the one or more row selection items satisfies a conditional expression based on one or more input data input by the input means to select a row based on the one or more values of the row selection item. A procedure of extracting or selecting only desired lines and recording in a temporary data file including at least an item to be a line number item and an item to be a character string to be printed, When there are L lines of data recorded in the temporary data file or another data file derived from the temporary data file, the character strings of the one character string storage item are sequentially arranged from the beginning of those lines. However, a line that exceeds the maximum line width or a line that exceeds the line width that is less than the maximum line width closest to the maximum line width in English is specified at such a position within the maximum line width. A procedure for increasing L lines to L 'lines by sequentially breaking the line and dividing it into a plurality of lines, and recording those L' lines in memory in order of m lines,
The transposed data structure of each line is transposed, provided that the values recorded in lines 1 to m of the items to be line number items are the item names in the transposed data structure. , One of other items including a desired character string other than the item
By making each of the values sequentially recorded in the m-th row into a certain row including a desired character string having such items 1 to m under the item name, the data recorded in the memory for each of the m-th row is obtained. , N-1 rows (n is an integer of n> 1 and preferably 2), and a prepared printing format file including a 1-m item display section for the temporary file. A character extracted from a data file by a computer, including a procedure of printing the contents of items 1 to m of one line including a desired character string of the n-1 lines by using the above, and repeating the printing of m lines in this manner. How to print columns.
JP9126464A 1997-04-30 1997-04-30 Method for synthesizing character string group selected from character string data file with another data and computer-readable recording medium having recorded program Pending JPH10301921A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9126464A JPH10301921A (en) 1997-04-30 1997-04-30 Method for synthesizing character string group selected from character string data file with another data and computer-readable recording medium having recorded program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9126464A JPH10301921A (en) 1997-04-30 1997-04-30 Method for synthesizing character string group selected from character string data file with another data and computer-readable recording medium having recorded program

Publications (1)

Publication Number Publication Date
JPH10301921A true JPH10301921A (en) 1998-11-13

Family

ID=14935875

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9126464A Pending JPH10301921A (en) 1997-04-30 1997-04-30 Method for synthesizing character string group selected from character string data file with another data and computer-readable recording medium having recorded program

Country Status (1)

Country Link
JP (1) JPH10301921A (en)

Similar Documents

Publication Publication Date Title
JP4091726B2 (en) Method for generating display rule of structured document, medium on which system and program are recorded, method for changing structured document and its document type definition, medium on which system and program are recorded
US6934909B2 (en) Identifying logical elements by modifying a source document using marker attribute values
JPH077408B2 (en) Method and system for changing emphasis characteristics
JP2006178946A (en) File format, method and computer program product for representing workbook
US5765177A (en) Document processing method and apparatus for searching documents having a graph based document logic structure
JPH10222510A (en) Document converting method
JPH08221417A (en) New/old comparing editing device for structured document
JPH10301921A (en) Method for synthesizing character string group selected from character string data file with another data and computer-readable recording medium having recorded program
JP3115059B2 (en) Structured document editing method
JPH05108636A (en) Routine document preparing device
JP4301879B2 (en) Abstract creation support system and patent document search system
WO2013015109A1 (en) Module structural analysis supporting device and program
JP2000132540A (en) Synthesizing method of document data, and computer- readable recording medium recording data having program or structure of the synthesizing method
US20040164989A1 (en) Method and apparatus for disclosing information, and medium for recording information disclosure program
JPH05135054A (en) Document processing method
JPH11272666A (en) System and method for editing document and record medium
JP4111552B2 (en) Automatic document marking apparatus and method
JPH11232305A (en) Information retrieving system utilizng web browser and its method
JP3050811B2 (en) Parsing tree database construction support device
JP2004355322A (en) Machine translation system, conversion rule dictionary management device, and program
JP3804243B2 (en) Structured document processing apparatus, structured document processing method, and computer-readable recording medium recording structured document processing program
JPH10161996A (en) Method and device for preparing document
Travis et al. Building the DTD
JPS62146663A (en) Document printing system
JP2010257176A (en) Document generation device and document generation method

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040430

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040430

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040628

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20061113

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20061212

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070508

AX71 Interruption

Free format text: JAPANESE INTERMEDIATE CODE: A0071

Effective date: 20070606

AX72 Removal of interruption

Free format text: JAPANESE INTERMEDIATE CODE: A0072

Effective date: 20071122

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080304