JPS59119452A - Data preparation system of master file - Google Patents

Data preparation system of master file

Info

Publication number
JPS59119452A
JPS59119452A JP57229378A JP22937882A JPS59119452A JP S59119452 A JPS59119452 A JP S59119452A JP 57229378 A JP57229378 A JP 57229378A JP 22937882 A JP22937882 A JP 22937882A JP S59119452 A JPS59119452 A JP S59119452A
Authority
JP
Japan
Prior art keywords
data
random number
file
stored
elements
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
JP57229378A
Other languages
Japanese (ja)
Inventor
Sadahiro Kitano
北野 定博
Kimiyuki Nagaoka
長岡 喜三之
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP57229378A priority Critical patent/JPS59119452A/en
Publication of JPS59119452A publication Critical patent/JPS59119452A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To save time and expense for preparing temporary data by taking out and combining data elements from tables prepared for each element unit of data by using random numbers generated by a random number generating device and preparing specified data. CONSTITUTION:A random number generating device R, element taking out device P, element combining device J and an output device O are provided under control of a main controlling device M. Element tables T1-Tn are provided under the element taking out device P; a joint buffer B is provided under the element combining device J; and a file F is provided under the output device O. Tables T1-Tn divide data by elements and provided for each element. Data elements are selected for each element and taken out by the taking out device P using random number generated by the random number generating device R. Each element thus taken out is stored in the buffer B by the combining device J and combined to prepare 1 data, and stored in the file F through the output device O.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は、プログラムのテス)K使用するマスク・ファ
イルのデータを、データの要素単位毎に用意されたテー
ブルから乱数発生装置によって発生された乱数を使って
取出して結合し、作成するようにしたマスク・ファイル
のデータ作成方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a program test) in which data of a mask file to be used is generated by random numbers generated by a random number generator from a table prepared for each element of data. This relates to a data creation method for a mask file that is extracted, combined, and created using .

〔従来技術と問題点〕[Prior art and problems]

データ処坤装置において、プログラムを組むときには、
マスク・ファイルを使ってプログラムのテストが行われ
、デパックが行われる。実際に使用されるマスク・ファ
イルのデータをこのようなプログラムのテストに使用す
ると、プログラムのミスなどによシ実際に使われるマス
ク・ファイルのデータが破壊されたシ、間違ってデータ
がマスク・ファイルに剰き込まれたりする恐れがある。
When programming a data processing device,
The mask file is used to test and depack the program. If data from the mask file that is actually used is used to test a program like this, the data in the mask file that will actually be used may be destroyed due to a program error, or the data may be mistakenly transferred to the mask file. There is a risk of being overworked.

そのために、一般にテスト用のマスク・ファイルが用意
される。
For this purpose, a test mask file is generally prepared.

例えば、得意先マスクというものがあるが、これは複数
のレコードからなり、ルコードが1つの得意先の情報を
格納している。そのルコードは、項目に区分され、得意
先コードや、得意先名、得意先住所などが夫々の項目に
格納されている。
For example, there is a customer mask, which consists of multiple records, and a code stores information about one customer. The code is divided into items, and the customer code, customer name, customer address, etc. are stored in each item.

従来、このようなマスク・ファイルのテスト用のデータ
作成方式としては、外部媒体に実データを用意してバッ
チ処理でマスク・ファイルに入力する方式と、ディスプ
レイから実データを入力して、或いはカードにパンチし
て入力してデータを1件ずつ作成する方式とがあるが、
いずれの方式も、多大な時間と費用を要するという欠点
がある。
Conventionally, the methods of creating data for testing mask files are two methods: preparing real data on an external medium and inputting it into the mask file through batch processing, and two methods: inputting real data from a display or using a card. There is a method of punching and inputting data to create data one by one.
Both methods have the drawback of requiring a great deal of time and expense.

〔発明の目的〕[Purpose of the invention]

本発明は、上記の欠点を解除するものであって。 The present invention overcomes the above-mentioned drawbacks.

少ない時間と費用によりプログラムのテストに使用1−
るマスタ・ファイルのデータが作成し得るマスタ・ファ
イルのデータ作成方式を提供することを目的とするもの
である。
Used for testing programs with less time and cost1-
The object of the present invention is to provide a method for creating data in a master file that can create data in a master file.

〔発明の構成〕[Structure of the invention]

そのために本発明のマスク・ファイルのデータ作成方式
は、複数個の要素に区分可能なデータを作成してマスク
・ファイルに格納するマスク・ファイルのデータ作成方
式であって、乱数を発生する乱数発生装置、上記複数個
の要素対応にデータを構成する要素を複数個格納した複
数個の要素テーブル、データ単位を構成する各要素が格
納されるようになった結合バッファ、データを格納する
マスク・ファイル、及び全体の制御を行う制御装置を備
え、上記制御装置は、順次データを構成する要素毎に、
上記乱数発生装置によシ乱数を発生させ、該乱数に基つ
いて上記要素テーブルから要素を取出し、取出した要素
を上記結合バッファに格納する処理を行い、上記結合バ
ッファにデータ単位を構成する各要素が格納されたか否
かを調べ、データ単位を構成する各要素が格納されたこ
とを条件に地核データ単位を上記マスク・ファイルに格
納する処理を行うように構成されたことを特徴とするも
のである。
To this end, the mask file data creation method of the present invention is a mask file data creation method that creates data that can be divided into a plurality of elements and stores it in a mask file, and a random number generator that generates random numbers. A device, multiple element tables that store multiple elements that make up data corresponding to the multiple elements mentioned above, a combination buffer that stores each element that makes up a data unit, and a mask file that stores data. , and a control device that performs overall control, and the control device sequentially controls each element constituting the data,
The random number generator generates a random number, extracts an element from the element table based on the random number, stores the extracted element in the combination buffer, and stores each element constituting a data unit in the combination buffer. is characterized in that it is configured to check whether or not the data unit has been stored, and to store the geocore data unit in the mask file on the condition that each element constituting the data unit has been stored. It is.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明の実施例を図?を参照しつつ説明する。 Examples of the present invention are shown below. This will be explained with reference to.

第1図は本発明の1実施例を示すブロック図、第2図は
本発明が適用される得意先のマスク・ファイルのデータ
作成の例を説明する図、第3図は第1図に示すブロック
図における処理の流れを示す図である。図において、M
は主制御装置、Rは乱数発生装置%Pは要素取出装置、
Jは要素結合装置、0は出力装置、T1ないしTnは要
素テーブル、Bは結合バッファ、Fはファイルを示す。
FIG. 1 is a block diagram showing one embodiment of the present invention, FIG. 2 is a diagram explaining an example of data creation of a customer's mask file to which the present invention is applied, and FIG. 3 is shown in FIG. It is a figure which shows the flow of processing in a block diagram. In the figure, M
is the main controller, R is the random number generator, %P is the element extraction device,
J is an element combination device, 0 is an output device, T1 to Tn are element tables, B is a combination buffer, and F is a file.

第1図において、主制御装置Mの制御の下に、乱数発生
装置R1要素取出装置P、要素結合装置J、及び出力装
置0が設けられ、要素取出装置Pの下に要素テーブル男
ないしTnが設けられ、要素結合装置IJの下に結合バ
ッファBが設けられ、出力装置Oの下にファイルFが設
けられる。要素テーブルIll、ないしTniデータを
要素で区分し、その要素毎に設けられるものである。デ
ータの夫々の要素は、乱数発生装置Rにより発生した乱
数を使い要素取出装置Pによって各要素毎に選択されて
取出される。取出された各要素は、要素結合装置Jによ
って結合バッファBに順次格納され、各要素が結合バッ
ファで結合されて1データが作成されると、出力装置O
を通してファイルFに格納される。
In FIG. 1, a random number generator R1, an element extraction device P, an element combination device J, and an output device 0 are provided under the control of a main controller M, and below the element extraction device P are element tables MAN to Tn. A combination buffer B is provided below the element combination device IJ, and a file F is provided below the output device O. The element table Ill or Tni data is divided into elements and provided for each element. Each element of the data is selected and extracted for each element by an element extraction device P using random numbers generated by a random number generator R. Each extracted element is sequentially stored in the combination buffer B by the element combination device J, and when each element is combined in the combination buffer and one data is created, the output device O
is stored in file F through

(Lm先のマスク・ファイルの例を示したのが第2図で
ある。第2図(5)では、ファイルFのルコードを示し
、さらにルコードの項目に「得意先コード」、「得意先
名」があり、「得意先名」が要素1ないし3に区分され
る例を示している・第2図(Blは、要素1に対応する
要素テーブルT1、要素2に対応する要素テーブルL、
要素3に対応する要素テーブル′r3の例を示している
。そして乱数発生装置を使用して要素テーブル黒ないし
T3から要素を取出して結合して得られたデータの例を
示したのが第2図(C1である。このように乱数発生装
置を使って要素テーブル看ないしT、の要素の結合を行
うと、少ない要素の数によりその組合わせで多数のデー
タを作成することができる。
(Figure 2 shows an example of the mask file for Lm destination. Figure 2 (5) shows the code for file F, and the code items include "customer code" and "customer name.") ", and shows an example where "Customer name" is divided into elements 1 to 3. ・Figure 2 (Bl is element table T1 corresponding to element 1, element table L corresponding to element 2,
An example of an element table 'r3 corresponding to element 3 is shown. Figure 2 (C1) shows an example of data obtained by extracting and combining elements from the element table black or T3 using a random number generator. By combining the elements of the table T, it is possible to create a large amount of data by combining them with a small number of elements.

次に全体の処理の流れを第3図を参照しつつ説明する。Next, the overall processing flow will be explained with reference to FIG.

■ 主制御装置Mが結合バ・ソファBのクリアする。次
に■の処理が行われる。
■ Main controller M clears the connection bar/sofa B. Next, the process (■) is performed.

■ 主制御装置Mが乱数発生装置Rに処理を依頼する。■ The main controller M requests the random number generator R to perform processing.

次に■の処理が行われる。Next, the process (■) is performed.

■ 乱数発生装置Rは乱数を発生して主制御装置Mに返
却する。次に■の処理が行われる。
(2) Random number generator R generates random numbers and returns them to main controller M. Next, the process (■) is performed.

■ 主制御装置Mは、乱数と要素テーブル番号とを指定
して要素取出装置Pに要素の取出しを依頼する。次に■
の処理が行われる。
(2) The main control device M specifies a random number and an element table number and requests the element extraction device P to extract an element. Next ■
processing is performed.

■ 要素取出装置Pは、指定された乱数と要素テーブル
番号を元に委累を取出して主制御装置Mに返却1−る。
(2) The element extraction device P extracts the commission based on the specified random number and element table number and returns it to the main control device M.

次に■の処理が行われる。Next, the process (■) is performed.

■ 主制御装置Mは、要素取出装置Pから返却された要
素を要素結合装置Jに渡す。次に■の処理が行われる。
(2) The main control device M passes the elements returned from the element extraction device P to the element combination device J. Next, the process (■) is performed.

■ 要素結合装置Jは、結合バッファBに要素を格納し
て主制御装置Mに戻す。次に■の処理が行われる。
(2) The element combination device J stores the elements in the combination buffer B and returns them to the main control device M. Next, the process (■) is performed.

■ 主制御装置Mは、すべての要素テーブルT1ないし
Tnから要素の取出しが終了したか否かを調べる。
(2) The main controller M checks whether extraction of elements from all element tables T1 to Tn has been completed.

Yesの場合には■の処理が行われ、Noの場合には■
の処理に戻る。
In the case of Yes, the process of ■ is performed, and in the case of No, the process of ■
Return to processing.

■ 主制御装置Mは、出力装置0に処理を依頼する。次
に[相]の処理が行われる。
(2) The main control device M requests the output device 0 to perform processing. Next, [phase] processing is performed.

[相] 出力装置Oは、ファイルFに結合バッファBの
データを出力する。次に00処理が行われるO ■ 主制御装置Mは、ファイルFが満杯になったか否か
を調べる。
[Phase] Output device O outputs the data of combined buffer B to file F. Next, the 00 process is performed.O.sub.2 The main controller M checks whether the file F is full.

Yesの場合には処理を終了し、Noの場合には■の処
理に戻る。
If Yes, the process ends, and if No, the process returns to (2).

〔発明の効果〕〔Effect of the invention〕

以上の説明から明らかなように1本発明によれは、デー
タを要素に区分して袈素毎のテーブルを用意し、各テー
ブルから乱数発生装置によシ発生した乱数に基づいて要
素を取出し、結合して所定の要素からなるデータを作成
するので、テスト用として用いるような一時的なデータ
を作成する時間と費用の節約を図ることができる。
As is clear from the above description, one aspect of the present invention is to divide data into elements, prepare a table for each element, extract elements from each table based on random numbers generated by a random number generator, Since data consisting of predetermined elements is created by combining them, it is possible to save the time and cost of creating temporary data used for testing.

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

第1図は本発明の1実施例を示すブロック図。 第2図は本発明が適用される得意先のマスク・ファイル
のデータ作成の例を説明する図、第3図は第1図に示す
ブロック図における処理の流れを示す図である。 M・・・主制御装置、R・・・乱数発生装置、P・・・
要素取出装置、J・・・要素結合装置、0・・・出力装
置、1′mないしTn・・・要素テーブル、B・・・結
合バッファ、F・・・ファイル。 特許出願人 富士通株式会社 代理人弁理士  京 谷 四 部 火 1  図 (B) 欠 3図
FIG. 1 is a block diagram showing one embodiment of the present invention. FIG. 2 is a diagram illustrating an example of data creation of a customer's mask file to which the present invention is applied, and FIG. 3 is a diagram illustrating the flow of processing in the block diagram shown in FIG. 1. M... Main controller, R... Random number generator, P...
Element extraction device, J... Element combination device, 0... Output device, 1'm to Tn... Element table, B... Combination buffer, F... File. Patent Applicant: Fujitsu Ltd. Representative Patent Attorney Yobuhi Kyotani 1 Figure (B) Missing 3 Figures

Claims (1)

【特許請求の範囲】 複数個の要素に区分可能なデータを作成してマスタ・フ
ァイルニ格納するマスタ・ファイルのデータ作成方式で
あって、乱数を発生する乱数発生装置、上記複数個の要
素対応にデータを構成する要素を複数個格納した被数個
の要素テーブル、データ単位を構成する各要素が格納さ
れるようになった結合バッファ、データを格納するマス
ク・ファイル、及び全体の制御を行う制御装Rを備え、
上記制御装置は、順欠データを構成する要素毎に。 上記乱数発生装置により乱数を発生させ、該乱数に基づ
いて上記要素デープルから要素を取出し、取出した要素
を上記結合バッファに格納する処理を行い、上記結合バ
ッファにデータ単位を構成する各要素が格納されたが否
かを調べ、データ単位を構成する各要素が格納されたこ
とを条件に当該データ単位を上記マスク・ファイルを格
納する処理を行うように構成されたことを特徴とするマ
スク・ファイルのデータ作成方式。
[Scope of Claim] A data creation method for a master file in which data that can be divided into a plurality of elements is created and stored in a master file, comprising a random number generator that generates random numbers, and a method that is compatible with the plurality of elements. , an element table that stores multiple elements that make up data, a join buffer that stores each element that makes up a data unit, a mask file that stores data, and overall control. Equipped with a control device R,
The above-mentioned control device controls each element constituting the sequential data. A process is performed in which a random number is generated by the random number generator, an element is extracted from the element daple based on the random number, and the extracted element is stored in the combination buffer, and each element constituting a data unit is stored in the combination buffer. A mask file characterized in that the data unit is stored in the mask file on the condition that each element constituting the data unit is stored. data creation method.
JP57229378A 1982-12-27 1982-12-27 Data preparation system of master file Pending JPS59119452A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57229378A JPS59119452A (en) 1982-12-27 1982-12-27 Data preparation system of master file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57229378A JPS59119452A (en) 1982-12-27 1982-12-27 Data preparation system of master file

Publications (1)

Publication Number Publication Date
JPS59119452A true JPS59119452A (en) 1984-07-10

Family

ID=16891233

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57229378A Pending JPS59119452A (en) 1982-12-27 1982-12-27 Data preparation system of master file

Country Status (1)

Country Link
JP (1) JPS59119452A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03235138A (en) * 1990-02-13 1991-10-21 Agency Of Ind Science & Technol Memory access frequency measuring device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03235138A (en) * 1990-02-13 1991-10-21 Agency Of Ind Science & Technol Memory access frequency measuring device

Similar Documents

Publication Publication Date Title
CN106682036A (en) Data exchange system and exchange method thereof
DE19954532A1 (en) Storing JAVA objects in device of limited resources such as smart card uses extend form of interface based on added item included serialization of objects in format useable by card
Rajlich Incremental redocumentation using the web
FR2705477A1 (en) Method for creating specific programming systems and tools to facilitate work in creating programming systems.
JPS59119452A (en) Data preparation system of master file
JPS61156473A (en) Document writing system
JP3085922B2 (en) Drawing generation device for assembly group by 3D CAD
JPS5878231A (en) Program automatic generating method
JPH03147059A (en) Method and device for processing document
Weinert A Simscript-Fortran Case Study
JP2740428B2 (en) How to construct magnetic tape data
KR960029962A (en) Program automatic generator
JPH03156658A (en) Production system for store file of network control information
JPS63156254A (en) Control method for intermediate text by interpreter
Kent The objects are coming!
JP3138674B2 (en) Format information generator
Silverman Re-automation of serials control: from OCLC's serials control subsystem to INNOVACQ
JPS60229137A (en) Sorting system
JPH0517593B2 (en)
JPS6235856A (en) Output apparatus
JP3293652B2 (en) Simulation program generation method
Cantor Storing Network Survey Data at the Datacomputer
JPH0498529A (en) Back-up system for preparation of program
Grzegorz The algorithm for generation of connected closed linear graphs for lattice-spin systems
JPS63142764A (en) Picture storage device