Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3044710B2 - Data processing device - Google Patents
[go: Go Back, main page]

JP3044710B2 - Data processing device - Google Patents

Data processing device

Info

Publication number
JP3044710B2
JP3044710B2 JP63175412A JP17541288A JP3044710B2 JP 3044710 B2 JP3044710 B2 JP 3044710B2 JP 63175412 A JP63175412 A JP 63175412A JP 17541288 A JP17541288 A JP 17541288A JP 3044710 B2 JP3044710 B2 JP 3044710B2
Authority
JP
Japan
Prior art keywords
file
data
update
record
definition
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.)
Expired - Fee Related
Application number
JP63175412A
Other languages
Japanese (ja)
Other versions
JPH0224739A (en
Inventor
俊雄 樫尾
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP63175412A priority Critical patent/JP3044710B2/en
Publication of JPH0224739A publication Critical patent/JPH0224739A/en
Application granted granted Critical
Publication of JP3044710B2 publication Critical patent/JP3044710B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、データ入力に基づいてファイルを更新、
あるいは検索して出力するデータ処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention updates a file based on data input,
Alternatively, the present invention relates to a data processing device for searching and outputting.

〔従来の技術〕[Conventional technology]

企業の業務は多種多様であり、且つ同一業種といえど
も企業毎に事業内容は異なり、更に企業内の各職場によ
って業務内容は異なるもので、従って各事業体に於いて
発生するデータ、求めているデータは千差万別である。
そのため、現代の企業においてはこれらデータを高速に
処理しかつ管理する手段として、OA(オフィスオートメ
ーション)機器、事務用コンピュータを導入している。
The business of a company is diverse, and even in the same industry, the business content is different for each company, and the business content is different depending on each workplace in the company. Therefore, the data generated in each business entity, There are many different types of data.
Therefore, modern enterprises have introduced OA (office automation) equipment and office computers as a means of processing and managing such data at high speed.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

しかしながら、今までのコンピュータ導入企業におい
ては数々の不満があった。即ち今までにOA機器、事務用
コンピュータを導入した企業に於いて、そのコンピュー
タから無駄無益な帳表資料類が大量に出力され、その反
面折角コンピュータを導入していながら、それが効果的
に活用されていないというケースが非常に多い。このこ
とはコンピュータを導入したユーザーの多くが経験して
いることである。このような問題はそのユーザーのソフ
トウエアを担当したSEやプログラマーの能力や感性、或
いはユーザー側の要望の不適性に基づくものである。
However, there have been a number of complaints at the conventional computer adoption companies. In other words, in companies that have introduced OA equipment and office computers so far, a large amount of useless book materials are output from the computers, and on the other hand, they have been effectively used while introducing computers with angled corners. Very often, they are not. This is something many computer users have experienced. Such a problem is based on the ability or sensitivity of the SE or programmer responsible for the software of the user, or the inappropriateness of the user's request.

また、ユーザーニーズに求づくシステム設計(データ
処理フロー,ファイル体系,ファイル内容,コード体系
など)には多大な労力,時間,金が必要であった。
In addition, a great deal of labor, time, and money were required for system design (data processing flow, file system, file contents, code system, etc.) that required user needs.

この発明の課題は、各種ファイルを対象にしたファイ
ル照会のための検索処理、及びファイル更新のための更
新処理を、簡単な仕組みにより兼用した処理として実行
できるようにすることである。
An object of the present invention is to make it possible to execute a search process for a file inquiry for various files and an update process for a file update as a combined process using a simple mechanism.

本発明は、データを入力する入力手段と、照会対象と
なるファイルと、そのファイルを照会する際に必要とな
るレコードのキー項目、照会対象データ項目と、ファイ
ル照会属性と、を規定したファイル照会定義を記憶する
ファイル照会定義記憶手段と、更新対象となるファイル
と、そのファイルを更新する際に必要となるレコードの
キー項目、更新対象データ項目と、ファイル更新属性
と、を規定したファイル更新定義を記憶するファイル更
新定義記憶手段と、更新用レコード記憶手段と、上記フ
ァイル照会定義に基づいて、その定義の中で規定された
キー項目と照会対象データ項目との夫々に対応して上記
データ入力手段から入力されたキー条件データと照会対
象項目条件データとを読み込み、その読み込まれたキー
条件データと照会対象項目条件データとに上記ファイル
照会定義の中で規定された照会対象ファイルのファイル
名、ファイル照会属性を付加した更新用レコードを作成
して、上記更新用レコード記憶手段に記憶させる第1の
記憶制御手段と、上記ファイル更新定義に基づいて、そ
の定義の中で規定されたキー項目と更新対象データ項目
との夫々に対応して上記データ入力手段から入力された
キーデータと更新対象項目データとを読み込み、その読
み込まれたキーデータと更新対象項目データとに上記フ
ァイル更新定義の中で規定された更新対象ファイルのフ
ァイル名、ファイル更新属性を付加した更新用レコード
を作成して、上記更新用レコード記憶手段に記憶させる
第2の記憶制御手段と、上記更新用レコード記憶手段に
記憶された各更新用レコードを読み出し、その読み出し
た更新用レコードがファイル照会属性を含むレコードで
ある場合には、その更新用レコードに含まれる照会対象
ファイル名のファイルを対象にして、上記更新用レコー
ドに含まれるキー条件データと照会対象項目条件データ
との条件を満足するレコードを検索する処理を実行し、
一方、上記読み出した更新用レコードがファイル更新属
性を含むレコードである場合には、その更新用レコード
に含まれるキーデータと更新対象項目データとにより、
その更新用レコードに含まれる更新対象ファイル名のフ
ァイルを対象にしてファイル更新処理を実行するファイ
ル制御手段と、を具備し、照会対象ファイルに対するデ
ータ照会のための検索処理と更新対象ファイルに対する
データ更新のためのファイル更新処理とを同一の仕組み
にて実行する、ようにしたことを特徴とする。
The present invention provides a file query that defines input means for inputting data, a file to be queried, a key item of a record required for querying the file, a data item to be queried, and a file query attribute. File update definition storage means for storing definitions, a file to be updated, a key item of a record required to update the file, a data item to be updated, and a file update definition defining a file update attribute File update definition storage means, update record storage means, and, based on the file query definition, the data input corresponding to each of the key items and the data items to be queried specified in the definition. Reads key condition data and inquiry target item condition data input from the means, and reads the read key condition data and inquiry target A first storage control for creating an update record in which the file name and the file inquiry attribute of the file to be queried specified in the file query definition are added to the eye condition data and storing the record in the update record storage means; Means, and, based on the file update definition, key data and update target item data input from the data input means corresponding to each of the key item and the update target data item specified in the definition. Read, create an update record by adding the file name and file update attribute of the update target file specified in the file update definition to the read key data and update target item data, and A second storage control unit that stores the update record stored in the update record storage unit; When the read update record is a record including the file query attribute, the key condition data and the query target included in the update record are targeted for the file of the query target file name included in the update record. Execute the process of searching for records that satisfy the condition with the item condition data,
On the other hand, when the read update record is a record including the file update attribute, the key data and the update target item data included in the update record include:
File control means for executing a file update process on a file having an update target file name included in the update record, and performing a search process for querying data on the query target file and updating the data on the update target file And a file update process for the same is executed by the same mechanism.

〔実施例〕〔Example〕

以下、一実施例を第1図乃至第9図を参照して説明す
る。
Hereinafter, an embodiment will be described with reference to FIGS. 1 to 9.

(1)構成 第1図はデータ処理装置のシステム構成図を示したも
のである。同図において10は入力装置で、例えばテンキ
ー,各種処理種別を指定する機能指定キー,ファンクシ
ョンキー等を備えている。そして、上記入力装置10より
入力される処理種別指定データ及びエディットデータ
は、エディット処理装置11へ送られ、このエディット処
理装置11によりPSファイル12がアクセスされる。このPS
ファイル12には、入力装置11から入力すべきワード名あ
るいはマスターファイルから読み出すべきワード名とそ
のワード条件を定義するための定義データ(以下、A表
と言う)と、A表だけでは作成できない追加ワード名を
定義するための定義データ(以下、B表という)と、マ
スタファイルに対してバッチ更新を行なう際のファイル
名,キーワード名,更新種別,及び更新ワード名を定義
するための定義データ(以下、C表と言う)と、マスタ
ファイルに対して照会を行なうための定義データ(以
下、CA表と言う)と、マスタファイルに対してリアル更
新を行なうための定義データ(以下、CB表と言う)と、
表示すべきワード名及びその表示フォーマットを定義す
るための定義データ(以下、D表と言う)と、印字すべ
きワード名及びその印字フォーマットを定義するための
定義データ(以下、E表と言う)とが各種事務処理の処
理内容、例えば売上伝票発行処理、仕入伝票発行処理、
帳票出力処理等の処理内容別に設定されている。なお、
各処理の種別に定義されるA表〜E表を総称して定義書
PSと呼び、上記PSファイル12には複数の定義書PS(PS1,
PS2,…)が設定されている。
(1) Configuration FIG. 1 shows a system configuration diagram of the data processing device. In FIG. 1, an input device 10 includes, for example, a numeric keypad, a function designation key for designating various types of processing, and a function key. Then, the process type designation data and the edit data input from the input device 10 are sent to the edit processing device 11, and the edit processing device 11 accesses the PS file 12. This PS
The file 12 includes a word name to be input from the input device 11 or a word name to be read from the master file and definition data for defining the word condition (hereinafter referred to as Table A). Definition data for defining a word name (hereinafter referred to as table B) and definition data for defining a file name, a keyword name, an update type, and an update word name when performing a batch update on a master file (Table B) Table C, definition data for inquiring the master file (hereinafter CA table), and definition data for real updating of the master file (CB table) Say)
Definition data for defining a word name to be displayed and its display format (hereinafter referred to as Table D), and definition data for defining a word name to be printed and its print format (hereinafter referred to as Table E) Are the processing contents of various paperwork, such as sales slip issuing processing, purchase slip issuing processing,
It is set for each processing content such as form output processing. In addition,
Definitions for tables A to E defined for each type of processing
Called PS, the PS file 12 contains multiple definition documents PS (PS1, PS1,
PS2, ...) are set.

しかして、上記エディット処理装置11は、入力装置10
からの指示に基づいてファイルフォーマットの作成、PS
ファイル12へのデータ設定及びPSの読出し処理等を行な
うもので、PSファイル12からPSを読出した際は、A表を
入力ワードメモリ13に、B表を加工ワードメモリ14に、
CA表をリアル入力ワードメモリ15aに、CB表をリアル加
工ワードメモリ15bに、C表をファイルワードメモリ16
に、D表を表示ワードメモリ17に、E表を印字ワードメ
モリ18にロードし、その後、入力処理装置19に起動指令
を与える。そして、上記入力ワードメモリ13にロードさ
れたA表は入力処理装置19へ、加工ワードメモリ14にロ
ードされたB表は加工処理装置20へ、リアル入力ワード
メモリ15a,リアル加工ワードメモリ15b及びファイルワ
ードメモリ16にロードされたCA表,CB表,C表はファイル
作成装置21へ、表示ワードメモリ17にロードされたD表
は表示処理装置22へ、印字ワードメモリ18にロードされ
たE表は印字処理装置23へ読出される。また、上記入力
処理装置19には、入力装置10が接続されると共に、索引
テーブルメモリ24,ファイルフォーマットメモリ25,ワー
クメモリ26等のRAMが接続される。上記索引テーブルメ
モリ24には、当日の日付及び伝票発行毎に自動更新され
る伝番(伝票番号)が記憶されていると共に、各種扱い
商品に対する商品コード,商品名,単価が予め記憶設定
されている。そして、上記入力処理装置19は、入力ワー
ドメモリ13から読出したA表,入力装置10からの入力デ
ータ等に基づいて集計,検索等の処理を行ない、その処
理ワードデータをワークメモリ26に記憶すると共に、処
理内容に応じて加工処理装置20,ファイル作成装置21,表
示処理装置22,印字処理装置23を起動する。上記加工処
理装置20には、ワークメモリ26及びファイルフォーマッ
トメモリ25が接続される。このファイルフォーマットメ
モリ25には、入力装置10よりエディット処理装置11を介
してファイルフォーマットが予め設定される。このファ
イルフォーマットは、マスタファイル29に記憶する各フ
ァイルのフォーマットを規定するもので、例えば「商品
在庫ファイル」,「商品売上ファイル」等の各種ファイ
ルのレコード構造が設定される。第3図(a)は「商品
在庫ファイル」のレコード構造を示すもので、「商品コ
ード」がキーワード名として、「商品名,在庫数」が更
新ワード名として設定される。また、第2図(a)は
「商品売上ファイル」のレコード構造を示すもので、
「商品コード」がキーワード名として、「数量,単価,
金額」が更新ワード名として設定される。上記加工処理
装置20は、ファイル更新時にB表の有無をチェックし、
B表があればその内容を入力処理装置19へ出力する。ま
た、上記ファイル作成装置21には、ファイルフォーマッ
トメモリ25,メンテナンスファイル27が接続される。上
記ファイル作成装置21は、入力処理装置19からの起動指
令によって処理動作を開始し、ファイルワードメモリ16
に記憶されたC表に基づいてファイル更新用のメンテナ
ンスレコードデータ(このレコードデータは対応するフ
ァイルのレコード構造に一致するようワードデータが並
べられている)を作成し、メンテナンスファイル27に順
次登録する。このメンテナンスファイル27には、複数の
メンテナンスレコードデータが登録され、入力装置10あ
るいはファイル作成装置21からの指令に基づいてファイ
ル更新装置28に送られ、マスタファイル29内の対応ファ
イルに対して更新登録される。また、ファイル更新装置
28にはワークメモリ30が接続され、検索処理時において
は、検索データに基づいてマスタファイル29をサーチ
し、条件を満足するレコードデータを取出してワークメ
モリ30に記憶する。更に上記マスタファイル29は、入力
処理装置19及び加工処理装置20に読出し可能に接続され
る。
Thus, the edit processing device 11 is connected to the input device 10
Create file format based on instructions from PS
It performs data setting to the file 12 and read processing of the PS. When reading the PS from the PS file 12, the table A is stored in the input word memory 13, the table B is stored in the processed word memory 14,
The CA table is stored in the real input word memory 15a, the CB table is stored in the real processing word memory 15b, and the C table is stored in the file word memory 16a.
Then, the table D is loaded into the display word memory 17 and the table E is loaded into the print word memory 18, and then a start command is given to the input processing device 19. The table A loaded into the input word memory 13 is sent to the input processor 19, the table B loaded into the processing word memory 14 is sent to the processing processor 20, the real input word memory 15a, the real processing word memory 15b and the file. The CA table, CB table, and C table loaded into the word memory 16 are sent to the file creation device 21, the D table loaded into the display word memory 17 is sent to the display processing device 22, and the E table loaded into the print word memory 18 is read. The data is read out to the print processing device 23. The input processing device 19 is connected to the input device 10 and RAMs such as an index table memory 24, a file format memory 25, and a work memory 26. The index table memory 24 stores the date of the day and a number (slip number) that is automatically updated each time a slip is issued, and stores, in advance, a product code, a product name, and a unit price for various types of handled products. I have. The input processing device 19 performs processes such as tabulation and search based on the A table read from the input word memory 13, the input data from the input device 10, and the like, and stores the processed word data in the work memory 26. At the same time, the processing device 20, the file creation device 21, the display processing device 22, and the print processing device 23 are activated according to the processing content. A work memory 26 and a file format memory 25 are connected to the processing device 20. In the file format memory 25, a file format is preset from the input device 10 via the edit processing device 11. This file format defines the format of each file stored in the master file 29. For example, record structures of various files such as a "product inventory file" and a "product sales file" are set. FIG. 3 (a) shows the record structure of the "product inventory file", in which "product code" is set as a keyword name, and "product name, stock quantity" is set as an update word name. FIG. 2 (a) shows the record structure of the "commodity sales file".
"Product code" is used as a keyword name.
Amount ”is set as the update word name. The processing device 20 checks the presence or absence of the table B when updating the file,
If there is a table B, its contents are output to the input processing device 19. The file creation device 21 is connected with a file format memory 25 and a maintenance file 27. The file creation device 21 starts a processing operation in response to a start command from the input processing device 19, and
, Creates maintenance record data for file updating (word data is arranged so as to match the record structure of the corresponding file) based on the table C stored in the maintenance file 27, and sequentially registers it in the maintenance file 27. . In the maintenance file 27, a plurality of maintenance record data are registered, sent to the file updating device 28 based on a command from the input device 10 or the file creating device 21, and updated and registered in the corresponding file in the master file 29. Is done. Also, a file update device
A work memory 30 is connected to 28. At the time of search processing, a master file 29 is searched based on the search data, and record data satisfying the conditions is extracted and stored in the work memory 30. Further, the master file 29 is connected to the input processing device 19 and the processing device 20 in a readable manner.

上記表示処理装置22は、入力処理装置19からの起動指
令により処理動作を開始し、表示ワードメモリ17に記憶
されているD表に基づいてワークメモリ26内のワードデ
ータを読み出して表示データを作成し、表示装置31に表
示する。印字処理装置23は、入力処理装置19から起動指
令が与えられると、印字ワードメモリ18に記憶されてい
るE表に基づいてワークファイル26内のデータを読み出
し、このデータに基づいて指定フォーマットの伝票デー
タを作成し、印字装置32を駆動して伝票をプリントアウ
トする。
The display processing device 22 starts a processing operation in response to a start command from the input processing device 19, reads out word data in the work memory 26 based on the D table stored in the display word memory 17, and creates display data. Then, the image is displayed on the display device 31. When a start command is given from the input processing device 19, the print processing device 23 reads out data in the work file 26 based on the E table stored in the print word memory 18, and based on the data, returns a slip of a designated format. The data is created, and the printing device 32 is driven to print out the slip.

次に上記PSファイル12に設定するPSの具体的な例につ
いて説明する。第2図(b),(c)は、商品の売上げ
時に伝票発行を行なうと共に、この伝票発行に伴ないマ
スタファイル内の「商品売上ファイル」を後で一括して
更新するためのメンテナンスレコードデータを作成する
場合のPS1(パッチ更新用の定義書)について、具体的
な構成例を示したものである。上記PS1は、A表,C表,D
表,E表により構成される。第2図(b)に示すA表は、
A1,A2の2つの項目からなり、A1には「商品コード」が
キーワード名として、A2には「数量」,「単価」,「金
額」が更新ワード名として設定される。また、メンテナ
ンスレコードを作成するためのC表は、第2図(c)に
示すようにC1,C2,C3,C4の項目からなり、C1には「売上
ファイル」がファイル名として、C2には「商品コード」
がキーワード名として、C3には「集計」が更新種別を示
すコードとして、C4には「数量,単価,金額」が更新ワ
ード名として設定される。
Next, a specific example of the PS set in the PS file 12 will be described. FIGS. 2 (b) and 2 (c) are maintenance record data for issuing a slip at the time of sale of a product and updating the "product sales file" in the master file collectively later with the issuance of the slip. This shows a specific configuration example of PS1 (a definition document for patch update) in the case of creating a. The above PS1 is Table A, Table C, D
It consists of a table and an E table. Table A shown in FIG.
It consists of two items, A1 and A2, where "product code" is set as a keyword name in A1, and "quantity", "unit price", and "amount" are set as update word names in A2. The C table for creating the maintenance record is composed of items C1, C2, C3, and C4 as shown in FIG. 2 (c). "Product code"
Is set as a keyword name, "total" is set as a code indicating an update type in C3, and "quantity, unit price, amount" is set as an update word name in C4.

また、第3図(b)〜(e)は、各種商品を保管する
倉庫から必要数の商品を出庫できるようにすると共に、
この出庫作業に伴ないマスターファイル内の「商品在庫
ファイル」をチェックして、出庫する商品に対する在庫
数データを直ちに更新する場合のPS4(リアル更新用の
定義書)について、具体的な構成例を示したものであ
る。上記PS4は、A表,B表,CA表,CB表,D表,E表により構
成される。第3図(b)に示すA表は、A1,A2の2つの
項目からなり、A1には「商品コード」がキーワード名と
して、A2には「在庫数」が更新ワード名として設定され
る。また、B表には第3図(c)に示すように「注文
数」が更新ワード名として設定される。
FIGS. 3 (b) to 3 (e) show that a required number of products can be delivered from a warehouse for storing various products.
Check the "product inventory file" in the master file associated with this outgoing work, and describe a specific configuration example for PS4 (real update definition) when updating the stock quantity data for the outgoing product immediately. It is shown. The PS4 includes an A table, a B table, a CA table, a CB table, a D table, and an E table. The table A shown in FIG. 3 (b) is composed of two items, A1 and A2. In A1, "product code" is set as a keyword name, and in A2, "stock quantity" is set as an update word name. In Table B, "number of orders" is set as an updated word name as shown in FIG. 3 (c).

メンテナンスレコードを作成するための表としては、
第3図(d),(e)に示すようにファイル照合用のCA
表と、リアル更新用のCB表が用意されている。CA表は、
C1,C2,C3,C4の項目からなり、C1には「在庫ファイル」
がファイル名として、C2には「商品コード」がキーワー
ドとして、C3には「範囲照合」が更新種別を示すコード
として、C4には「在庫数」が更新ワード名として設定さ
れる。CB表は、CA表と同様にC1,C2,C3,C4の項目からな
り、C1には「在庫ファイル」がファイル名として、C2に
は「商品コード」がキーワード名として、C3には「集
計」が更新種別を示すコードとして、C4には「在庫数=
前在庫数+(−注文数)」が更新ワード名として設定さ
れる。
As a table for creating maintenance records,
As shown in FIGS. 3 (d) and (e), CA for file collation
A table and a CB table for real update are prepared. The CA table is
It consists of C1, C2, C3, C4 items, and C1 is "stock file"
Is set as a file name, "product code" is set as a keyword in C2, "range collation" is set as a code indicating an update type in C3, and "stock quantity" is set as an update word name in C4. The CB table consists of C1, C2, C3, and C4 items in the same manner as the CA table. C1 has the file name `` stock file '', C2 has the keyword `` product code '', and C3 has the "Is a code indicating the update type, and C4 has" Stock =
"Pre-stock quantity + (-order quantity)" is set as the update word name.

(2)動作 次に上記実施例の動作を説明する。(2) Operation Next, the operation of the above embodiment will be described.

伝票発行処理 まず、商品の売上げ伝票発行あるいは集計等を行なう
場合の動作について説明する。上記の処理を行なわせる
場合、まず、その処理に対応するPS,即ちPS1を入力装置
10により指定し、その指定信号をエディット処理装置11
に与える。このエディット処理装置11は、上記指定に基
づきPSファイル12からPS1のA〜E表を読出し、ワード
メモリ13〜18にロードすると共に、入力処理装置19に起
動指令を与える。これにより入力処理装置19が起動し、
第4図のフローチャートに示す入力処理を実行する。
Slip Issuance Processing First, the operation for issuing a sales slip of a product or totaling will be described. When performing the above processing, first, the PS corresponding to the processing, that is, PS1 is input device.
10 is specified, and the specified signal is
Give to. The edit processing device 11 reads out the tables A to E of PS1 from the PS file 12 based on the above specification, loads them into the word memories 13 to 18, and gives a start command to the input processing device 19. This activates the input processing device 19,
The input processing shown in the flowchart of FIG. 4 is executed.

すなわち、入力処理装置19は、ステップA1において起
動指令の有無をチェックしており、エディット処理装置
11から起動指令が与えられると、入力ワードメモリ13に
記憶されるA表に基づいてキーワード名あるいは更新ワ
ード名に対応するデータの入力ガイドを行なう。オペレ
ータは、その入力ガイドに従って「商品コード」のキー
ワード名,「数量,単価,金額」の各更新ワード名に対
応するデータを入力装置10より順次入力する(ステップ
A2)。入力処理装置19は、入力装置10から入力されたデ
ータを処理し、各ワード名に対応するワードデータとし
てワークメモリ26に順次書込む(ステップA3)。次いで
ステップA4において1伝票分のデータ入力の終了を指示
する終了指定キーが入力装置10において操作されたか否
かを判断し、操作していなければステップA2に戻って同
様の処理を繰返す。上記終了指定キーが操作されると、
入力処理装置19はファイル作成装置21に起動指令を出力
する(ステップA5)。その後、入力処理装置19は、ステ
ップA1に戻って次の起動指令に備える。
That is, the input processing device 19 checks the presence or absence of the start command in step A1, and the edit processing device
When a start command is given from 11, an input guide for data corresponding to a keyword name or an updated word name is provided based on Table A stored in the input word memory 13. The operator sequentially inputs data corresponding to the keyword name of “product code” and the updated word names of “quantity, unit price, and amount” from the input device 10 according to the input guide (step S1).
A2). The input processing device 19 processes the data input from the input device 10, and sequentially writes the data into the work memory 26 as word data corresponding to each word name (step A3). Next, in step A4, it is determined whether or not the end designation key for instructing the end of data input for one slip has been operated on the input device 10, and if not, the process returns to step A2 to repeat the same processing. When the end designation key is operated,
The input processing device 19 outputs a start command to the file creation device 21 (step A5). Thereafter, the input processing device 19 returns to step A1 and prepares for the next start command.

上記ファイル作成装置21は、入力処理装置19から起動
指令により起動し、第5図のフローチャートに従ってフ
ァイル更新用のメンテナンスレコードを作成する。すな
わち、ファイル作成装置21は、第5図のステップB1にお
いて起動指令の有無を判断しており、入力処理装置19か
ら起動指令が与えられると、まず、マスタファイル29に
対するリアル照合を定義するCA表がリアル入力ワードメ
モリ15aに設定されているか否かを判断し(ステップB
2)、CA表が設定されていなければ更に、バッチ更新を
定義するC表がファイルワードメモリ16に設定されてい
るか否かを判別する(ステップB3)。もしC表も設定さ
れていなければ何も処理せずにステップB1に戻る。今の
場合、C表が有るので、上記入力処理装置19によりワー
クメモリ26に書込まれたワードデータからなる複数レコ
ードデータのうちの先頭のレコードデータを指定し(ス
テップB4)、第2図(c)のC表に基づいて、例えば第
6図に示すように1レコード内にファイル名、キーワー
ド名、更新ワード名を示すデータ及び更新種別を示すコ
ードを含むファイル更新用のメンテナンスレコードデー
タの作成処理を行なってメンテナンスファイル27に登録
する(ステップB5,B6)。その後、ワークメモリ26に保
持している全レコードデータに対するメンテナンスレコ
ードデータの作成処理が終了したか否かを判断し(ステ
ップB7)、終了していなければ次のレコードデータを指
定し(ステップB8)、ステップB5に戻って同様の処理を
繰返す。その後、ステップB7において全レコードデータ
に対する処理を終了したと判断されると、ステップB1に
戻って次の起動指令に備える。
The file creation device 21 is started by a start command from the input processing device 19, and creates a maintenance record for file update according to the flowchart of FIG. That is, the file creation device 21 determines whether or not there is a start command in step B1 of FIG. 5, and when a start command is given from the input processing device 19, first, a CA table that defines real collation with respect to the master file 29 is set. Is set in the real input word memory 15a (step B).
2) If the CA table is not set, it is further determined whether or not the C table defining the batch update is set in the file word memory 16 (step B3). If table C is not set, the process returns to step B1 without performing any processing. In this case, since there is a C table, the first record data of a plurality of record data composed of word data written in the work memory 26 by the input processing device 19 is designated (step B4), and FIG. Based on the table C of c), for example, as shown in FIG. 6, creation of maintenance record data for file update including data indicating a file name, a keyword name, an update word name and a code indicating an update type in one record. The process is performed and registered in the maintenance file 27 (steps B5 and B6). Thereafter, it is determined whether or not maintenance record data creation processing has been completed for all record data held in the work memory 26 (step B7). If not completed, the next record data is designated (step B8). Returning to step B5, the same processing is repeated. Thereafter, if it is determined in step B7 that the processing for all record data has been completed, the process returns to step B1 to prepare for the next start command.

以上のようにしてファイル処理装置21は、ワークメモ
リ26に記憶されたワードデータに基づいてメンテナンス
レコードデータを順次作成し、この作成された各メンテ
ナンスレコードデータを順次メンテナンスファイル27に
登録する。上記登録は各伝票が発行される毎に行なわ
れ、その結果、メンテナンスファイル27には、複数の伝
票発行に伴なって作成されたメンテナンスレコードデー
タが全て登録されることになる。そして、その後、入力
装置10よりファイル更新装置28に対して、バッチ処理の
ための更新処理を実行するための更新指令を与えること
により、ファイル更新装置28が起動する。ファイル更新
装置28はバッチ処理のための更新指令が与えられるとメ
ンテナンスファイル27に登録されているメンテナンスレ
コードデータを順次読み出し、個々のメンテナンスレコ
ードデータのファイル名のデータに基づいてマスタファ
イル29の「商品売上ファイル」を指定し、更新種別のコ
ードに基づいて、キーワード名及び更新ワード名に対応
するワードデータにより「集計」の更新処理を行なう。
As described above, the file processing device 21 sequentially creates maintenance record data based on the word data stored in the work memory 26, and sequentially registers the created maintenance record data in the maintenance file 27. The above registration is performed every time each slip is issued. As a result, the maintenance file 27 registers all the maintenance record data created with the issuance of a plurality of slips. Then, after that, the input device 10 gives the file update device 28 an update command for executing an update process for batch processing, so that the file update device 28 is activated. When the update command for batch processing is given, the file update device 28 sequentially reads the maintenance record data registered in the maintenance file 27, and based on the data of the file name of each maintenance record data, The “sales file” is designated, and the update process of “total” is performed by the word data corresponding to the keyword name and the updated word name based on the update type code.

このように本実施例のデータ処理装置によれば、商品
の売上げ時に伝票発行を行なう場合、ファイルに対する
更新処理を行なうことを定義するPSを予め設定しておけ
ば、ファイルに対しては任意時点で一括して更新をかけ
ることができ、伝票発行時の処理スピードに支障をきた
すことなく、後で一括してファイルを更新することがで
きる。しかも、装置内部の処理としては、ワード名に対
応するデータの入力処理(入力処理装置19における処
理)と、入力されたデータに基づいてファイルを後で更
新できるようにしたメンテナンスレコードデータの作成
処理(ファイル作成装置21における処理)とが完全に分
離しているので、上記各処理のための定義設定が簡単で
ある。すなわち上記PSの定義としては、更新データの入
力定義(A表)とファイルに対する更新定義(C表)と
をワード名等のパラメータにより定義するだけで良いの
で、その定義設定が非常に簡単である。
As described above, according to the data processing apparatus of the present embodiment, when issuing a slip at the time of sales of a product, a PS that defines that an update process for a file is to be performed is set in advance, and a file can be set at any time. , The files can be updated collectively later without affecting the processing speed when issuing the slip. In addition, as processing inside the apparatus, there are input processing of data corresponding to the word name (processing in the input processing apparatus 19) and processing of creating maintenance record data that allows a file to be updated later based on the input data. (The processing in the file creation device 21) is completely separated, so that the definition setting for each of the above processings is simple. That is, as the definition of the PS, it is only necessary to define the input definition of the update data (Table A) and the update definition for the file (Table C) using parameters such as word names, so that the definition setting is very simple. .

ところで、ファイルに対して更新処理を行なうように
構成された上記装置にあっても、ファイルの内容を検索
して表示画面上に読み出し、この読み出された内容をチ
ェックした上で、対応するファイル、例えば在庫ファイ
ル等を更新したい場合もある。そこで、本実施例のデー
タ処理装置は、その構成をそのまま利用して、ファイル
検索処理を行なうことができる。
By the way, even in the above-described apparatus configured to perform an update process on a file, the content of the file is searched and read out on a display screen, and the read out content is checked, and then the corresponding file is checked. For example, there may be a case where the user wants to update a stock file or the like. Therefore, the data processing device of the present embodiment can perform the file search process using the configuration as it is.

ファイル検索処理 次に、商品の在庫チェックをした上で商品の出庫を行
なう場合の処理を例にして説明する。上記の処理を行な
う場合は、まず、その処理に対応するPS、即ちPS4を入
力装置10により指定し、その指定信号をエディット処理
装置11に与える。このエディット処理装置11は、上記指
定に基づきPSファイル12からPS4のA〜E表を読出し、
第3図(b)に示すA表を入力ワードメモリ13に、第3
図(c)に示すB表を加工ワードメモリ14に、第3図
(d)に示すCA表をリアル入力ワードメモリ15aに、第
3図(e)に示すCB表をリアル加工ワードメモリ15bに
ロードすると共に、更にD表及びE表を表示ワードメモ
リ17及び印字ワードメモリ18にロードする。そしてこの
後、入力処理装置19に起動指令を与える。これにより入
力処理装置19が起動し、入力装置10からのデータ入力に
備える。
File Retrieval Processing Next, a description will be given of an example of processing in a case where a product is checked out after the product is stocked. When performing the above processing, first, the PS corresponding to the processing, that is, PS4 is designated by the input device 10, and the designation signal is supplied to the edit processing device 11. The edit processing device 11 reads out the tables A to E of PS4 from the PS file 12 based on the above specification,
The table A shown in FIG. 3B is stored in the input word memory 13,
The table B shown in FIG. 3C is stored in the processed word memory 14, the CA table shown in FIG. 3D is stored in the real input word memory 15a, and the CB table shown in FIG. 3E is stored in the real processed word memory 15b. At the same time, the table D and the table E are loaded into the display word memory 17 and the print word memory 18, respectively. After that, a start command is given to the input processing device 19. As a result, the input processing device 19 is activated, and prepares for data input from the input device 10.

上記入力処理装置19は、起動指令が与えられると、前
述した第4図のフローチャートに示す入力処理を行な
う。すなわち、入力処理装置19は、入力ワードメモリ13
に記憶されるA表に基づいてキーワード名あるいは更新
ワード名に対応するデータの入力を行なう。このときキ
ーワード名は「商品コード」であり、更新ワード名は
「在庫数」であるので、オペレータはそれに従い、在庫
問合せの商品として例えば「時計」に対する商品コード
データ「=11」を入力し、続いて在庫数データとして
「≧100」(100以上)を入力装置10より入力する。入力
処理装置19は、上記A表に基づくデータ入力が行なわれ
ると、その入力された商品コードデータ「=11」及び在
庫数データ「≧100」をワークメモリ25に書込み(第7
図(2)参照)、次いでファイル作成装置21を起動す
る。
When a start command is given, the input processing device 19 performs the input process shown in the flowchart of FIG. That is, the input processing device 19 stores the input word memory 13
The data corresponding to the keyword name or the updated word name is input based on the table A stored in. At this time, the keyword name is “product code” and the update word name is “stock quantity”, so the operator inputs product code data “= 11” for “watch”, for example, as the product of the inventory inquiry, Subsequently, “≧ 100” (100 or more) is input from the input device 10 as inventory quantity data. When the data input based on the table A is performed, the input processing device 19 writes the input product code data “= 11” and the stock quantity data “≧ 100” into the work memory 25 (the seventh item).
Then, the file creation device 21 is started.

ファイル作成装置21は、入力処理装置19から起動指令
が与えられることにより前述した第5図のフローチャー
トに示すメンテナンスレコードの作成処理を行なう。こ
のとき、リアル入力ワードメモリ14にはCA表が設定され
ているのでステップB2においてYESと判断され、第8図
に示すリアル処理を実行する(ステップB9)。まず第8
図のステップC1においてA表の処理後であるか、B表の
処理後であるかが判断される。この時点ではA表の処理
後であるので、ステップC2に進んでキーワードデータ
「=11」及び更新ワードデータ「≧100」をワークメモ
リ26よりリードして、第3図(d)のCA表に基づいて、
第7図(3)に示すようなファイル更新用のメンテナン
スレコードデータを作成し、メンテナンスファイル27に
登録する。その後、ファイル更新装置28に対して、リア
ル処理のための更新処理を実行するための起動を指令し
て(ステップC3)、第5図のステップB9の処理を終了
し、ステップB1に戻る。
Upon receiving a start command from the input processing device 19, the file creation device 21 performs the maintenance record creation process shown in the flowchart of FIG. At this time, since the CA table is set in the real input word memory 14, YES is determined in the step B2, and the real process shown in FIG. 8 is executed (step B9). First, the eighth
At step C1 in the figure, it is determined whether the processing has been performed on Table A or the processing on Table B. At this point, since the processing of Table A has been performed, the process proceeds to Step C2, where the keyword data “= 11” and the updated word data “≧ 100” are read from the work memory 26, and are stored in the CA table of FIG. On the basis of,
The maintenance record data for file update as shown in FIG. 7 (3) is created and registered in the maintenance file 27. Thereafter, the file update device 28 is instructed to start the update process for the real process (step C3), and the process of step B9 in FIG. 5 is completed, and the process returns to step B1.

上記ファイル更新装置28は、ファイル作成装置21から
のリアル処理のための起動指令により第9図のフローチ
ャートに示すファイル更新処理を実行する。すなわち、
ファイル更新装置28は、ステップD1においてリアル処理
のための起動指令の有無をチェックしており、ファイル
作成装置21から起動指令が与えられると、上記メンテナ
ンスファイル27に登録されているメンテナンスレコード
データに含まれるファイル名のデータに基づいてマスタ
ファイル29内の「在庫ファイル」を指定する(ステップ
D2)と共に更新種別のコードを判別する(ステップD
3)。上記CA表における更新種別のコードは「範囲照
合」であり、この場合にはステップD4に進んで上記「在
庫ファイル」内に記憶されたレコードデータのうち商品
コードデータの上位2桁が「11」(キーワードデータ」
のレコードデータをサーチし、サーチされたレコードデ
ータについて更に在庫数データが「100以上」(更新ワ
ードデータ)であるか否かを判断し(ステップD5)、満
足すればワークメモリ30に登録する(ステップD6)。そ
の後、全てのレコード検索を終了したか否かを判断し、
終了していなければステップD4に戻って次のサーチを行
なう。以下、同様の処理によりキーワードデータ及び更
新ワードデータに一致する在庫商品をサーチして順次ワ
ークメモリ30に登録し、その登録内容を表示処理表22に
転送して画面表示する。この場合、商品コードの上位2
桁は商品カテゴリを示すもので、上位2桁が「11」の商
品コードは「時計」のカテゴリを示している。従って
「腕時計A」(=11011),「腕時計C」(=11013),
「クロックA」(=11021),「クロックB」(=1102
2)等の商品コードが全て検索され、その検索回答が画
面表示される。そして、ファイル更新装置28は、上記の
レコード検索を終了すると、加工処理装置20を起動し
(ステップD8)、その後、ステップD1に戻って次の起動
指令に備える。
The file update device 28 executes the file update process shown in the flowchart of FIG. 9 in response to a start command for real processing from the file creation device 21. That is,
The file update device 28 checks in step D1 whether or not there is a start command for real processing, and when a start command is given from the file creation device 21, the file update device 28 includes the start command in the maintenance record data registered in the maintenance file 27. Specify the “stock file” in the master file 29 based on the data of the file name (step
D2) and the code of the update type are determined (step D)
3). The code of the update type in the CA table is "range collation". In this case, the process proceeds to step D4, where the upper two digits of the product code data in the record data stored in the "stock file" are "11". (Keyword data)
The record data is searched, and it is further determined whether or not the stock quantity data is “100 or more” (update word data) for the searched record data (step D5). If satisfied, the data is registered in the work memory 30 (step D5). Step D6). After that, it is determined whether or not all record searches have been completed,
If not, the process returns to step D4 to perform the next search. Thereafter, inventory products matching the keyword data and the updated word data are searched by the same processing, sequentially registered in the work memory 30, and the registered contents are transferred to the display processing table 22 and displayed on the screen. In this case, the top 2 of the product code
The digits indicate the product category, and the product code whose upper two digits are “11” indicates the category of “clock”. Therefore, "Watch A" (= 111011), "Watch C" (= 111013),
"Clock A" (= 111021), "Clock B" (= 1102)
All product codes such as 2) are searched, and the search answer is displayed on the screen. Then, upon ending the above-described record search, the file update device 28 starts the processing device 20 (step D8), and thereafter returns to step D1 to prepare for the next start command.

上記加工処理装置20は、ファイル更新装置28から起動
指令が与えられると、加工ワードメモリ14からB表を読
出して入力処理装置19に入力する。この入力処理装置19
は、上記B表に応じて「注文数」の入力受付けを行な
う。
When the start command is given from the file updating device 28, the processing device 20 reads out the table B from the processing word memory 14 and inputs it to the input processing device 19. This input processing device 19
Accepts the input of "number of orders" in accordance with the above table B.

これに従いオペレータは、入力装置10より商品別に注
文数データ、例えば商品コード「11011」に対して注文
数データ「100」を、また商品コード「11022」に対して
注文数データ「50」を入力する。すると入力装置19は、
キー入力された注文数データを第7図(3)に示すよう
にワークメモリ26に書込む(第4図のステップA2,A
3)。そして、注文したい全ての商品に対しての注文数
の入力が終ったことを示す指示が入力装置10より与えら
れると入力処理装置19は、ファイル作成装置21にリアル
処理のための起動指令を与えて(ステップA4,A5)、ス
テップA1に戻る。
In accordance with this, the operator inputs the order quantity data for each product from the input device 10, for example, the order quantity data "100" for the product code "11011" and the order quantity data "50" for the product code "11022". . Then, the input device 19 is
The key input data of the number of orders is written into the work memory 26 as shown in FIG. 7 (3) (steps A2 and A in FIG. 4).
3). Then, when an instruction indicating that the input of the number of orders for all the products to be ordered is completed is given from the input device 10, the input processing device 19 gives a start command for real processing to the file creating device 21. (Steps A4 and A5), and returns to Step A1.

ファイル作成装置21は、上記のリアル処理のための起
動指令により第5図のステップB9の処理、即ち第8図に
示したようにリアル処理時におけるメンテナンスレコー
ドの作成処理を再度実行する。この時点では、B表の処
理が行なわれた後であるので。ステップC1からステップ
C4に進んで上記B表に基づいて作成したワークメモリ26
内の先頭レコードデータを指定し、次いでメンテナンス
用レコードエリアをファイル作成装置21内に用意する
(ステップC5)。その後、上記ステップC4で指定された
レコードのキーワードデータ及び更新ワードデータをワ
ークメモリ26より読み出し、その読み出されたワードデ
ータ(商品コード=11011,在庫数=100)を「ファイル
名(在庫ファイル)」及び「種別(演算)」と共にメン
テナンス用レコードエリアにセットする(ステップC
6)。そして、上記メンテナンス用レコードエリアにセ
ットしたデータを1つのメンテナンスレコードデータと
してメンテナンスファイル27に登録(ステップC7)、す
ると共に、B表で作成した全レコードデータに対する処
理を終了したか否かを判断する(ステップC8)。終了し
ていなければB表で作成した他のレコードデータを指定
した後、ステップC5に戻ってメンテナンスレコードデー
タの作成処理を行なう。この場合には、他のレコードデ
ータがワークメモリ26内に残っているので、そのレコー
ドデータ(商品コードが「11022」で、在庫数が「50」
のワードデータを読み出してメンテナンスファイル27に
登録する。そして、B表で作成した全レコードに対する
処理を終了すると、メンテナンスファイル27には第7図
(4)に示すようなメンテナンスレコードデータが記憶
され、ファイル更新装置28に対してリアル処理のための
起動指令を与えて(ステップC3)第5図のステップB9の
処理を終了し、ステップB1に戻る。
The file creation device 21 re-executes the process of step B9 in FIG. 5, that is, the process of creating the maintenance record in the real process as shown in FIG. 8, in response to the start command for the real process. At this point, since the processing of the table B has been performed. Step C1 to Step
Proceeding to C4, work memory 26 created based on Table B above
Is specified, and a record area for maintenance is prepared in the file creation device 21 (step C5). Thereafter, the keyword data and the updated word data of the record designated in step C4 are read from the work memory 26, and the read word data (product code = 111011, stock quantity = 100) is referred to as "file name (stock file)". ”And“ type (calculation) ”in the maintenance record area (step C
6). Then, the data set in the maintenance record area is registered as one maintenance record data in the maintenance file 27 (step C7), and it is determined whether or not the processing for all the record data created in the table B has been completed. (Step C8). If not completed, another record data created in the table B is designated, and the process returns to step C5 to perform maintenance record data creation processing. In this case, since other record data remains in the work memory 26, the record data (the product code is “11022” and the stock quantity is “50”
Is read and registered in the maintenance file 27. When the processing for all records created in the table B is completed, maintenance record data as shown in FIG. 7 (4) is stored in the maintenance file 27, and the file updating apparatus 28 is activated for real processing. A command is given (step C3), and the process of step B9 in FIG. 5 ends, and the process returns to step B1.

ファイル更新装置28は、上記の起動指令により上記第
9図に示した処理を実行する。すなわち、ファイル更新
装置28は、リアル処理のための起動指令が与えられる
と、上記メンテナンスファイル27に記憶される先頭のメ
ンテナンスレコードデータに含まれるファイル名のデー
タに基づいてマスタファイル29内の「在庫ファイル」を
指定(ステップD2)すると共に更新識別のコードを判別
する(ステップD3)。この場合の更新種別のコードは、
「集計」であるので、ステップD9に進んで上記メンテナ
ンスレコードデータに含まれるキーワードデータに一致
するレコードデータを「在庫ファイル」よりサーチし、
サーチされたレコードデータの更新ワードデータに対し
て上記メンテナンスレコードデータの更新ワードデータ
によりワード演算(ステップD10)を行なう。この場合
は、「在庫ファイル」よりキーワードデータが「1101
1」(腕時計A)のレコードデータをサーチし、その更
新ワードデータ、即ち在庫数データ「450」にメンテナ
ンスレコードデータの注文数データ「−100」を集計す
る。そして、この集計結果(450−100=350)が負であ
るか否かを判断し(ステップD11)、負でなければ演算
後のレコードデータ、即ちキーワードデータが「1101
1」で更新ワードデータが「350」のレコードデータをワ
ークメモリ30に一時的に登録する(ステップD12)。そ
の後、メンテナンスファイル27に記憶される全てのメン
テナンスレコードデータによる集計処理を終了したか否
かを判断し(ステップD13)、終了していなければ他の
メンテナンスレコードデータを指定(ステップD14)し
た後、ステップD9に戻って上記同様の処理を行なう。す
なわち、この場合には、「在庫ファイル」よりキーワー
ドデータが「11022」(クロック13)のレコードデータ
をサーチし、その更新ワードデータ、即ち在庫数データ
「160」からメンテナンスレコードデータの注文数デー
タ「−50」を集計して、この集計結果(160−50=110)
が負であるか否かを判断し、負でなければ集計後のレコ
ードデータ、即ちキーワードデータが「1102」で更新ワ
ードデータが「110」のレコードデータをワークメモリ3
0に一時的に登録する。そして、メンテナンスファイル2
7内の全てのメンテナンスレコードデータによる集計処
理を終了すると、上記ワークメモリ30に記憶された各レ
コードデータで「在庫ファイル」の同一のキーワードの
レコードデータを訂正する(ステップD15)。今の例で
は、「腕時計A」の在庫数データを「350」に、「クロ
ックB」の在庫数データを「110」に訂正することにな
る。
The file update device 28 executes the processing shown in FIG. 9 in response to the start command. That is, when a start command for real processing is given, the file update device 28 reads “inventory” in the master file 29 based on the file name data included in the first maintenance record data stored in the maintenance file 27. The file is designated (step D2), and the update identification code is determined (step D3). The update type code in this case is
Since it is "aggregate", the process proceeds to step D9, where record data matching the keyword data included in the maintenance record data is searched from the "stock file".
A word operation (step D10) is performed on the searched updated word data of the record data using the updated word data of the maintenance record data. In this case, the keyword data is “1101” from the “stock file”.
The record data of "1" (watch A) is searched, and the updated word data, that is, the stock quantity data "450" is totaled with the order quantity data "-100" of the maintenance record data. Then, it is determined whether or not the totaling result (450−100 = 350) is negative (step D11). If not, the record data after calculation, that is, the keyword data is “1101”.
At "1", record data whose update word data is "350" is temporarily registered in the work memory 30 (step D12). After that, it is determined whether or not the aggregation processing using all the maintenance record data stored in the maintenance file 27 has been completed (step D13). If not completed, another maintenance record data is designated (step D14). Returning to step D9, the same processing as above is performed. That is, in this case, the record data whose keyword data is “11022” (clock 13) is searched from the “stock file”, and the updated word data, that is, the order number data of the maintenance record data “160” is obtained from the stock number data “160”. −50 ”and the result of this calculation (160−50 = 110)
Is determined to be negative, and if not negative, the record data after aggregation, that is, the record data in which the keyword data is “1102” and the update word data is “110” is stored in the work memory 3.
Register to 0 temporarily. And maintenance file 2
When the totaling process using all the maintenance record data in 7 is completed, the record data of the same keyword in the “stock file” is corrected by each record data stored in the work memory 30 (step D15). In the present example, the stock quantity data of "watch A" is corrected to "350" and the stock quantity data of "clock B" is corrected to "110".

以上でファイル更新処理を終了し、ステップD1に戻っ
て次の更新起動に備える。なお、上記ステップD11で集
計結果が負であると判断された場合、つまり、注文数デ
ータより在庫数データの方が少なかった場合には、ワー
クメモリ30に一時的に登録した集計後のレコードデータ
をクリアする(ステップD16)と共に、NG信号を表示処
理装置22に出力(ステップD17)して例えば「更新でき
ないものが有りました。」等のメッセージを表示させ、
そのままステップD1に戻り、次の更新処理に備える。
Thus, the file update process ends, and the process returns to step D1 to prepare for the next update start. If the counting result is determined to be negative in step D11, that is, if the stock quantity data is smaller than the order quantity data, the tabulated record data temporarily registered in the work memory 30 is used. (Step D16), and outputs an NG signal to the display processing device 22 (Step D17) to display a message such as "Something could not be updated."
The process returns to step D1 to prepare for the next update process.

このように本実施例のデータ処理装置によれば、ファ
イルに対する更新処理を行なうのに最適な構成で組まれ
た装置であっても、ファイル更新を先立ってファイル検
索処理を行なうべきことを定義するPSを予め設定してお
けば、ファイルの内容を即時にチェックしたり、更新デ
ータの入力に基づいてファイルを直ちに更新したりする
ことができる。しかも、上記PSの定義も、検索条件の入
力定義(A表)と更新データの入力定義(B表)、及び
ファイルに対する検索定義(CA表)と更新定義(CB表)
とを、ワード名等のパラメータ等により入力定義するだ
けで良いので、その定義設定が非常に簡単である。
As described above, according to the data processing device of the present embodiment, it is defined that the file search process should be performed prior to the file update even if the device is configured to have the optimum configuration for performing the file update process. If the PS is set in advance, the contents of the file can be checked immediately or the file can be immediately updated based on the input of the update data. In addition, the definition of the PS also includes the search condition input definition (Table A) and update data input definition (Table B), and the file search definition (CA table) and update definition (CB table).
Need only be input and defined using parameters such as a word name, and the definition setting is very simple.

尚、上述した伝票発行の実施例においては、ファイル
作成装置21は、ワークメモリ26に1伝票分のワードデー
タが記憶された後に処理を開始しているが、1レコード
分のデータが記憶された後に処理を開始してもよく、そ
の他、複数伝票分のワードデータが記憶された後でもよ
く、要はワークメモリ26に記憶されるデータの多少に拘
わらずこのワークメモリ26を介してファイル作成装置21
の処理が独立に行なうものであればよい。更に、ファイ
ル更新装置28は、メンテナンスファイル27に全てのメン
テナンスレコードが書き込まれた後に処理を開始してい
るが、1レコード分のメンテナンスレコードが書き込ま
れる毎に処理を行なってもよく、その他、複数伝票分の
メンテナンスレコードが書き込まれた後に処理を開始し
てもよい。
In the above-described embodiment of issuing a slip, the file creation device 21 starts processing after the word data for one slip is stored in the work memory 26, but the data for one record is stored. The processing may be started later, or the word data for a plurality of slips may be stored. In other words, regardless of the amount of data stored in the work memory 26, the file creation device twenty one
May be performed independently. Further, the file updating device 28 starts the process after all the maintenance records are written in the maintenance file 27. However, the file updating device 28 may perform the process every time one maintenance record is written. The processing may be started after the maintenance record for the slip is written.

[発明の効果] 本発明によれば、予め用意されたファイル照会定義と
その定義に従って入力された照会条件データとに基づく
照会対象ファイルに対するデータ照会のための検索処理
を、ファイル更新定義とその定義に従って入力された更
新データとに基づく更新対象ファイルに対するデータ更
新のための更新処理の仕組みと全く同一の仕組みの中で
実現することができるものであり、ファイル照会定義と
ファイル更新定義との2つのファイル定義により、照会
対象ファイルからのデータ照会、そしてその照会データ
に基づいたデータ更新、といった一連の流れの処理を迅
速に行うことができる。
[Effects of the Invention] According to the present invention, a search process for querying a file to be queried based on a file query definition prepared in advance and query condition data input according to the definition is performed by a file update definition and its definition. Can be realized in exactly the same mechanism as the update processing mechanism for updating the data of the file to be updated based on the update data input according to the above. By the file definition, a series of processes such as a data inquiry from the inquiry target file and a data update based on the inquiry data can be quickly performed.

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

図面はこの発明の実施例を示したもので、第1図は伝票
処理装置のシステム構成図、第2図及び第3図はファイ
ルのレコード構成及びPSファイルに設定されるPSの構成
例を示す図、第4図及び第5図は入力処理装置及びファ
イル作成装置における処理動作を示すフローチャート、
第6図はメンテナンスレコードデータの例を示す図、第
7図はリアル処理時のワークファイル及びメンテナンス
ファイルの内容を示す図、第8図及び第9図はリアル処
理時におけるメンテナンスレコードの作成及びファイル
更新動作を示すフローチャートである。 10…入力装置、12…PSファイル、13…入力ワードメモ
リ、14…加工ワードメモリ、15a…リアル入力ワードメ
モリ、15b…リアル加工ワードメモリ、16…ファイルワ
ードメモリ、19…入力処理装置、20…加工処理装置、21
…ファイル作成装置、26…ワークメモリ、27…メンテナ
ンスファイル、28…ファイル更新装置、29…マスタファ
イル、30…ワークメモリ、31…表示装置、32…印字装
置。
FIG. 1 shows an embodiment of the present invention. FIG. 1 is a system configuration diagram of a slip processing apparatus, and FIGS. 2 and 3 show a record configuration of a file and a configuration example of a PS set in a PS file. FIG. 4, FIG. 4 and FIG. 5 are flowcharts showing processing operations in the input processing device and the file creation device,
FIG. 6 is a diagram showing an example of maintenance record data, FIG. 7 is a diagram showing the contents of a work file and a maintenance file at the time of real processing, and FIGS. 9 is a flowchart illustrating an update operation. 10 input device, 12 PS file, 13 input word memory, 14 processed word memory, 15a real input word memory, 15b real processed word memory, 16 file word memory, 19 input processing device, 20 Processing equipment, 21
... File creating device, 26 ... Work memory, 27 ... Maintenance file, 28 ... File updating device, 29 ... Master file, 30 ... Work memory, 31 ... Display device, 32 ... Printing device.

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 12/00 G06F 17/30 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int. Cl. 7 , DB name) G06F 12/00 G06F 17/30

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】データを入力する入力手段と、 照会対象となるファイルと、そのファイルを照会する際
に必要となるレコードのキー項目、照会対象データ項目
と、ファイル照会属性と、を規定したファイル照会定義
を記憶するファイル照会定義記憶手段と、 更新対象となるファイルと、そのファイルを更新する際
に必要となるレコードのキー項目、更新対象データ項目
と、ファイル更新属性と、を規定したファイル更新定義
を記憶するファイル更新定義記憶手段と、 更新用レコード記憶手段と、 上記ファイル照会定義に基づいて、その定義の中で規定
されたキー項目と照会対象データ項目との夫々に対応し
て上記データ入力手段から入力されたキー条件データと
照会対象項目条件データとを読み込み、その読み込まれ
たキー条件データと照会対象項目条件データとに上記フ
ァイル照会定義の中で規定された照会対象ファイルのフ
ァイル名、ファイル照会属性を付加した更新用レコード
を作成して、上記更新用レコード記憶手段に記憶させる
第1の記憶制御手段と、 上記ファイル更新定義に基づいて、その定義の中で規定
されたキー項目と更新対象データ項目との夫々に対応し
て上記データ入力手段から入力されたキーデータと更新
対象項目データとを読み込み、その読み込まれたキーデ
ータと更新対象項目データとに上記ファイル更新定義の
中で規定された更新対象ファイルのファイル名、ファイ
ル更新属性を付加した更新用レコードを作成して、上記
更新用レコード記憶手段に記憶させる第2の記憶制御手
段と、 上記更新用レコード記憶手段に記憶された各更新用レコ
ードを読み出し、その読み出した更新用レコードがファ
イル照会属性を含むレコードである場合には、その更新
用レコードに含まれる照会対象ファイル名のファイルを
対象にして、上記更新用レコードに含まれるキー条件デ
ータと照会対象項目条件データとの条件を満足するレコ
ードを検索する処理を実行し、一方、上記読み出した更
新用レコードがファイル更新属性を含むレコードである
場合には、その更新用レコードに含まれるキーデータと
更新対象項目データとにより、その更新用レコードに含
まれる更新対象ファイル名のファイルを対象にしてファ
イル更新処理を実行するファイル制御手段と、を具備
し、照会対象ファイルに対するデータ照会のための検索
処理と更新対象ファイルに対するデータ更新のためのフ
ァイル更新処理とを同一の仕組みにて実行する、 ようにしたことを特徴とするデータ処理装置。
A file defining input means for inputting data, a file to be queried, a key item of a record required for querying the file, a data item to be queried, and a file query attribute. A file update defining file inquiry definition storage means for storing an inquiry definition, a file to be updated, a key item of a record required for updating the file, a data item to be updated, and a file update attribute. File update definition storage means for storing a definition, update record storage means, and, based on the file query definition, the data corresponding to each of a key item and a query target data item specified in the definition. Reads key condition data and inquiry target item condition data input from the input means, and reads the read key condition data and inquiry First storage for creating an update record in which the file name and file inquiry attribute of the query target file specified in the file query definition are added to the target item condition data and storing the update record in the update record storage means. Control means, based on the file update definition, key data and update target item data input from the data input means corresponding to each of the key item and the update target data item specified in the definition. And updates the read key data and the update target item data with the file name and file update attribute of the update target file specified in the file update definition. Second storage control means for storing the data in the record storage means, and reading each update record stored in the update record storage means. If the read update record is a record including the file inquiry attribute, the key condition data included in the update record is searched for the file having the query target file name included in the update record. Executes a process of searching for a record that satisfies the condition with the query target item condition data. On the other hand, if the read update record is a record including a file update attribute, the key data included in the update record And a file control means for executing a file update process on a file having an update target file name included in the update record, based on the update target item data and the update target item data. The same mechanism for processing and file update processing for updating data for the file to be updated A data processing device characterized in that the data processing device executes the data processing only.
JP63175412A 1988-07-14 1988-07-14 Data processing device Expired - Fee Related JP3044710B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63175412A JP3044710B2 (en) 1988-07-14 1988-07-14 Data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63175412A JP3044710B2 (en) 1988-07-14 1988-07-14 Data processing device

Publications (2)

Publication Number Publication Date
JPH0224739A JPH0224739A (en) 1990-01-26
JP3044710B2 true JP3044710B2 (en) 2000-05-22

Family

ID=15995645

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63175412A Expired - Fee Related JP3044710B2 (en) 1988-07-14 1988-07-14 Data processing device

Country Status (1)

Country Link
JP (1) JP3044710B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3193249B2 (en) * 1994-12-02 2001-07-30 富士通株式会社 Keyword search method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
キーブックス20「はじめて使うdBASE▲III▼](昭61−11−1),(株)技術評論社

Also Published As

Publication number Publication date
JPH0224739A (en) 1990-01-26

Similar Documents

Publication Publication Date Title
JP3074737B2 (en) File update processor
JP4580518B2 (en) Database design system
WO2005041032A1 (en) System for supporting introduction/operation of integrating job software
JP2015075970A (en) Tabular data processing program, method and device
JP2000285128A (en) Business analysis system
US5526518A (en) Data processing apparatus
JP3044710B2 (en) Data processing device
JP3987018B2 (en) Integrated business software introduction and operation support system
JP2020166445A (en) Information inquiry device, information inquiry method and information inquiry program
JP3280664B2 (en) Data processing device
JP3044711B2 (en) File processing device
JP7117172B2 (en) Inventory control device, inventory control method, and inventory control program
JP7554789B2 (en) Product master registration business support device, product master registration business support method and product master registration business support program
JP3047399B2 (en) File processing device
JP3209691B2 (en) Household account book creating system and household account book creating method
JP2000056908A (en) DATA INPUT DEVICE, DATA INPUT METHOD, AND COMPUTER-READABLE RECORDING MEDIUM RECORDING PROGRAM FOR CAUSING COMPUTER TO EXECUTE THE METHOD
JPH10254979A (en) Data processing system and database design system
JP3082083B2 (en) How to create customizable tables
JP2004110586A (en) Search method, search device, and computer program
JP2024093751A (en) Order input support device, order input support method, and order input support program
JP2004021275A (en) Accounting processing system
JP3143931B2 (en) Data processing device
JPH1055396A (en) Data processing device
JP2806231B2 (en) Form output management apparatus and method
JP2002251391A (en) Data management system, data management method, and computer program

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees