JPH0275036A - Number control processing method - Google Patents

Number control processing method

Info

Publication number
JPH0275036A
JPH0275036A JP63227910A JP22791088A JPH0275036A JP H0275036 A JPH0275036 A JP H0275036A JP 63227910 A JP63227910 A JP 63227910A JP 22791088 A JP22791088 A JP 22791088A JP H0275036 A JPH0275036 A JP H0275036A
Authority
JP
Japan
Prior art keywords
bit
value
numbers
bit string
processing step
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
JP63227910A
Other languages
Japanese (ja)
Inventor
Kiyohide Takesue
武末 清英
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 JP63227910A priority Critical patent/JPH0275036A/en
Publication of JPH0275036A publication Critical patent/JPH0275036A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To facilitate the reuse of the existing numbers which are not necessary for scan of a bit train by preparing the bits equal to the number of pieces of desired numbers and showing the using state of the corresponding number based on the value of each bit. CONSTITUTION:A bit train contains the bits equal to the number of pieces of desired numbers and shows the using state of the number which is decided by the value of each bit and in response to the value showing the bit position. When a new number is produced, the bit train is scanned and a single bit of the value showing an unused state is detected for output of the number decided in response to the bit. Then the using number is cancelled. In such a case, the corresponding bit is updated to the value that shows an unused state. Thus the reuse of the undesired existing numbers is facilitated and at the same time the number of pieces of advantageous numbers can be easily recognized.

Description

【発明の詳細な説明】 〔概 要〕 計算機における番号の自動発行の管理に関し1、重複し
ないように番号を発行する場合に、不要となった既発行
の番号の再使用が容易にでき、併せて有効な番号の個数
等の把握を容易にした番号管理処理方法を目的とし、 所定の重複しない番号を発行する計算機の処理において
、該発行を要する番号の個数のビットを有し、各該ビッ
トの(直によって、当該ピントのビット位置を表す値に
対応して定まる該番号の使用状態を示すビット列を設け
、新たに該番号を発行する場合には、該ビット列を走査
し、未使用を表す値の1ビットを検出して、該ビットを
使用中を表す値に更新し、該検出したビットに対応して
定まる該番号を出力し、使用中の該番号を取り消す場合
には、該ビット列の該取り消す番号に対応する該ビット
を未使用を表す値に更新するように構成する。
[Detailed Description of the Invention] [Summary] Concerning the management of automatic number issuance in computers: 1. When issuing numbers to avoid duplication, it is possible to easily reuse already issued numbers that are no longer needed; The purpose of the number management processing method is to make it easy to grasp the number of valid numbers, etc., and in the processing of a computer that issues a predetermined number that does not overlap, it has the number of bits of the number required to be issued, and each bit A bit string indicating the usage status of the number determined corresponding to the value representing the bit position of the focus is provided, and when issuing a new number, the bit string is scanned to indicate unused. If you want to detect one bit of the value, update the bit to a value indicating that it is in use, output the number that is determined according to the detected bit, and cancel the number that is in use, update the bit string. The bit corresponding to the number to be canceled is updated to a value indicating unused.

〔産業上の利用分野〕[Industrial application field]

本発明は、計算機における番号の自動発行のための番号
管理処理方法に関する。
The present invention relates to a number management processing method for automatically issuing numbers in a computer.

計算機において、内部の処理で使用するためのファイル
の識別名として、或いはデータのレコードのキーとして
、自動的に所定形式の番号を追番式に順次生成して発行
することが行われ、その場合には重複した番号を生成し
ないように番号を管理する必要がある。
In a computer, numbers in a predetermined format are automatically generated and issued sequentially in a serial number format as identification names for files used in internal processing or as keys for data records. It is necessary to manage numbers to avoid generating duplicate numbers.

〔従来の技術と発明が解決しようとする課題〕例えばプ
ログラムの保守のための計算機システムにおいて、プロ
グラムの修正のための修正データからなるデータベース
を持ち、障害情報から必要な修正データを検索できるよ
うにするために、各修正データのレコードごとに、ユニ
ークなキーを付与して管理することが行われる。
[Problems to be solved by conventional technology and the invention] For example, in a computer system for program maintenance, it is possible to have a database consisting of correction data for program correction, and to be able to search for necessary correction data from fault information. In order to do this, each modified data record is managed by being assigned a unique key.

第3図は計算機システムの構成例を示すブロック図であ
り、番号管理部1は最後に付与した番号値2を、例えば
外部記憶装置の所定のファイル3に格納しておく。修正
データのレニ1−ドが新たに入力されて番号が必要にな
るごとに、番号発行要求に応じて番号管理部1はファイ
ル3から番号値2を読み出し、追番式に1増加した番号
を生成して、その番号をレコードのキーとして出力し、
その最新の番号値2を再びファイル3に保存することに
より、重複した番号を発行しないよう番ご管理している
FIG. 3 is a block diagram showing an example of the configuration of a computer system, and the number management unit 1 stores the last assigned number value 2 in a predetermined file 3 of an external storage device, for example. Every time a new number is required due to a new input of modified data, the number management unit 1 reads the number value 2 from the file 3 in response to a number issuance request, and increments the number by 1 in serial number format. generate and output that number as the key of the record,
By saving the latest number value 2 in file 3 again, the number is managed so that duplicate numbers are not issued.

第4図は蕃号管理部lの前記の処理の流れを示し、処理
ステップ10でファイル3から前の番号値2を読み出す
と、処理ステップ11でその番号値に1を加え、処理ス
テップ12でそれを新番号として出力し、処理ステップ
13で新しい番号値をファイル3に書き出して保存する
FIG. 4 shows the flow of the above-mentioned processing of the number management unit l. In processing step 10, the previous number value 2 is read from file 3, in processing step 11, 1 is added to that number value, and in processing step 12, the previous number value 2 is read out from file 3. This is output as a new number, and in processing step 13, the new number value is written to file 3 and saved.

以上のようにして、重複しない番号の発行が可能である
が、前記の修正データの例のような場合には、修正デー
タに誤りがある等のために取り消されることがあり、そ
の場合には取り消しによって削除されたレコードのキー
として付与した番号は不要になる。
As described above, it is possible to issue unique numbers, but in cases such as the above example of corrected data, it may be canceled due to an error in the corrected data, etc. The number assigned as a key to a record deleted by cancellation is no longer needed.

しかし、不要になった番号を再使用する機構が無く、そ
れらを欠番として常に新しい番号を生成しなければなら
ないようになっているので、削除されるレコードを含め
て番号値の容量を考慮してお(必要がある。
However, there is no mechanism to reuse numbers that are no longer needed, and new numbers must always be generated using them as unused numbers. Oh (I need it.

本発明は、重複しないように番号を発行する場合に、不
要となった既発行の番号の再使用が容易にでき、併せて
有効な番号の個数等の把握が容易にできる番号管理処理
方法を目的とする。
The present invention provides a number management processing method that makes it easy to reuse already issued numbers that are no longer needed when issuing numbers to avoid duplication, and also makes it easy to keep track of the number of valid numbers, etc. purpose.

〔課題を解決するための手段〕[Means to solve the problem]

第1図は、本発明の構成を示す処理の流れ図である。 FIG. 1 is a process flowchart showing the configuration of the present invention.

図は番号管理部の処理の流れを示し、20〜28は処理
ステップである。
The figure shows the flow of processing by the number management section, and 20 to 28 are processing steps.

〔作 用〕[For production]

所定の重複しない番号を発行する計算機の処理において
、発行を要する番号の個数のビットを有し、各該ビット
の値によって、当該ビットのビット位置を表す値に対応
して定まる番号の使用状態を示すビット列を設けてファ
イルに保存する。
In the processing of a computer that issues a predetermined unique number, the number has the same number of bits as the number that needs to be issued, and the use status of the number is determined by the value of each bit, corresponding to the value representing the bit position of the bit. Create the bit string shown and save it in a file.

番号の管理に際し番号管理部は先ず処理ステップ20で
そのビット列を読込み、処理ステップ21で新たに番号
を発行する要求があると識別した場合は、処理ステップ
22でビット列を走査し、未使用を表す値を持つ1ビッ
トを検出し、処理ステップ23でそのビットを使用中を
表す値に更新する。
When managing numbers, the number management unit first reads the bit string in processing step 20, and if it is identified in processing step 21 that there is a request to issue a new number, it scans the bit string in processing step 22 and indicates that it is unused. One bit having a value is detected, and in processing step 23 that bit is updated to a value indicating that it is in use.

処理ステップ24.25でその検出したピッi・に対応
して定まる番号を出力する。
In processing steps 24 and 25, a number determined corresponding to the detected pip i is output.

又、使用中の番号が不要になって、取り消しの要求があ
る場合には、処理ステップ26.27でビット列中の取
り消す番号に対応するビットを未使用を表す値に更新す
る。何れの場合も以−ヒの処理の後処理ステップ28で
ビット列を書き出して保存する。
Further, if the number in use is no longer needed and there is a request for cancellation, the bit corresponding to the number to be canceled in the bit string is updated to a value indicating unused in processing steps 26 and 27. In either case, the bit string is written out and saved in the subsequent post-processing step 28.

以上により、欠番を容易に再使用することがiJ能にな
ると共に、有効な番号の個数従ってそれらの番号を使用
しているレコード等の件数等の状況をビット列から容易
に把握することができる。
As described above, it becomes possible to easily reuse missing numbers, and the situation such as the number of valid numbers and the number of records using those numbers can be easily grasped from the bit string.

〔実施例〕〔Example〕

第2図は計算機システムの構成例を示すブ1コック図で
あり、番号管理部30は必要な番号の個数だけのビット
を有するビット列31を生成して、初めに全ビットを未
使用を示す“0“に設定して、ファイル3に格納してお
く。
FIG. 2 is a block diagram showing an example of the configuration of a computer system, in which the number management unit 30 generates a bit string 31 having as many bits as the required number, and first indicates that all bits are unused. Set it to 0" and store it in file 3.

例えば修正データのデータベースシステムで、修正デー
タのレコードが新たに入力されて番号が必要になるごと
に、番号発行の要求により番号管理部30は第1図の処
理ステップ20でファイル3からビット列31を読み出
し、処理ステップ21で番号発行要求と識別すると、処
理ステップ22でビット列31の先頭ビットから走査し
てビットの値が“0゜の最初のビットのビット位置を決
定する。
For example, in a corrected data database system, each time a new corrected data record is input and a number is required, the number management unit 30 receives a number issuance request and extracts the bit string 31 from the file 3 in step 20 of FIG. When it is read and identified as a number issuance request in processing step 21, the bit string 31 is scanned from the first bit in processing step 22 to determine the bit position of the first bit whose bit value is “0°”.

この処理は例えば、ビット位置を指示するレジスタを1
にして処理を始め、第1ビットからビット値をテストし
、ビット値が“1”であれば、レジスタの値をト1して
指示するビット位置を進める処理を繰り返し、ビット値
が“0″であれば繰り返しから抜は出すというような通
常の方法によって、繰り返しから出たときにレジスタに
残る値から値が“0”の最初のビットのビット位置を得
ることができる。
This process, for example, sets the register that specifies the bit position to 1.
The bit value is tested from the first bit, and if the bit value is "1", the register value is set to 1 and the specified bit position is advanced, and the process is repeated until the bit value becomes "0". If so, the bit position of the first bit whose value is "0" can be obtained from the value remaining in the register when exiting from the repetition by the usual method of removing from the repetition.

ビット位置が決定すると処理ステップ23で、そのビッ
トを使用中を表す“1”に更新し、処理ステップ24で
そのビット位置に対応して定まる番号を決定する。番号
の決定は、例えばビット位置を表す値をそのま一番号に
使用し、又は必要により例えばその王位に一定のビット
列を付加する等による。
Once the bit position is determined, in processing step 23 that bit is updated to "1" indicating that it is in use, and in processing step 24 a number to be determined corresponding to that bit position is determined. The number is determined by, for example, using the value representing the bit position as the number, or by adding a certain bit string to the throne if necessary.

処理ステップ25で、上記で決定した番号を出力した後
、処理ステップ28で前記の更新したピッl−列31を
ファイル3に書き出す。
After outputting the number determined above in processing step 25, the updated pill column 31 is written to file 3 in processing step 28.

又、使用中の番号が不要になって、番号の取り消しを要
求された場合には、番号管理部30は処理ステップ21
から処理ステップ26に進み、取消を指定された番号に
対応するビット列31のビット位置を決定し、処理ステ
ップ27でビット列31中の当該ビットを“0”にし、
処理ステップ28でビット列31をファイル3に書き出
す。
Further, when the number in use is no longer needed and cancellation of the number is requested, the number management section 30 performs processing step 21.
Proceeding to processing step 26, the bit position of the bit string 31 corresponding to the number specified for cancellation is determined, and in processing step 27, the corresponding bit in the bit string 31 is set to "0",
In processing step 28, bit string 31 is written to file 3.

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

以上の説明から明らかなように本発明によれば、計算機
における番号の自動発行の管理において、ビット列走査
によって不要となった既発行の番号の再使用が容易にで
きると共に、併せて有効な番号の個数従ってそれらの番
号を使用しているレコード等の件数等の状況をビット列
から容易に把握することができるようになるという著し
い工業的効果がある。
As is clear from the above description, according to the present invention, in the management of automatic number issuance in a computer, it is possible to easily reuse already issued numbers that are no longer needed through bit string scanning, and at the same time, it is possible to easily reuse already issued numbers that are no longer needed by bit string scanning. There is a significant industrial effect in that it becomes possible to easily grasp the number of records, etc. that use those numbers from the bit string.

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

第1図は本発明の構成を示す処理の流れ図、第2図は本
発明の計算機の構成例ブロック図、第3図は従来の計算
機の構成例ブロック図、第4図は従来の処理の流れ図で
ある。 図において、 1.30は番号管理部、 2は番号値、3はファイル、
     31はビット列、10〜13.20〜28は
処理ステップを示す、     7本発明の構成を示す
処理の流れ図 第1図
Fig. 1 is a flowchart of processing showing the configuration of the present invention, Fig. 2 is a block diagram of an example configuration of a computer of the invention, Fig. 3 is a block diagram of an example configuration of a conventional computer, and Fig. 4 is a flowchart of conventional processing. It is. In the figure, 1.30 is the number management section, 2 is the number value, 3 is the file,
31 is a bit string, 10 to 13, 20 to 28 are processing steps, 7 Processing flowchart showing the configuration of the present invention Fig. 1

Claims (1)

【特許請求の範囲】 所定の重複しない番号を発行する計算機の処理において
、 該発行を要する番号の個数のビットを有し、各該ビット
の値によって、当該ビットのビット位置を表す値に対応
して定まる該番号の使用状態を示すビット列を設け(2
0)、 新たに該番号を発行する場合には(21)、該ビット列
を走査し(22)、未使用を表す値の1ビットを検出し
て該ビットを使用中を表す値に更新し(23)、該検出
したビットに対応して定まる該番号を出力し(24、2
5)、 使用中の該番号を取り消す場合には(21)、該ビット
列の該取り消す番号に対応する該ビットを未使用を表す
値に更新する(26、27)ように構成されていること
を特徴とする番号管理処理方法。
[Claims] In the processing of a computer that issues a predetermined unique number, the computer has the same number of bits as the number that needs to be issued, and the value of each bit corresponds to a value representing the bit position of the bit. A bit string is provided to indicate the usage status of the number determined by
0), when issuing a new number (21), scans the bit string (22), detects 1 bit of value indicating unused, and updates the bit to a value indicating in use ( 23), and outputs the number determined corresponding to the detected bit (24, 2).
5) When canceling the number in use (21), the bit string corresponding to the number to be canceled is updated to a value indicating unused (26, 27). Characteristic number management processing method.
JP63227910A 1988-09-12 1988-09-12 Number control processing method Pending JPH0275036A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63227910A JPH0275036A (en) 1988-09-12 1988-09-12 Number control processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63227910A JPH0275036A (en) 1988-09-12 1988-09-12 Number control processing method

Publications (1)

Publication Number Publication Date
JPH0275036A true JPH0275036A (en) 1990-03-14

Family

ID=16868217

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63227910A Pending JPH0275036A (en) 1988-09-12 1988-09-12 Number control processing method

Country Status (1)

Country Link
JP (1) JPH0275036A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5465700A (en) * 1993-05-31 1995-11-14 Mitsubishi Denki Kabushiki Kaisha Fuel injection device for an engine with optimized control of a fuel injection amount after acceleration

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5465700A (en) * 1993-05-31 1995-11-14 Mitsubishi Denki Kabushiki Kaisha Fuel injection device for an engine with optimized control of a fuel injection amount after acceleration

Similar Documents

Publication Publication Date Title
US7801855B2 (en) Method and apparatus for merging log entries in a database management system
JP2002149454A (en) Transaction support on logical disk
US7194486B2 (en) Method and system for data processing with data replication for the same
JPH0275036A (en) Number control processing method
JP3636773B2 (en) Information processing device for database check
JPH0934758A (en) Relational data base access control system
JP2004355203A (en) Update/history/tabulation management system for data
JP2822869B2 (en) Library file management device
JP2752785B2 (en) Dynamic operating environment change method
JP3840726B2 (en) Database system
JP3027782B2 (en) Database recovery method
JP2768050B2 (en) Bureau data management data update method
JPH11175376A (en) Updating method and updating device for data base and recording medium in which updating method is written
JP2834985B2 (en) Equipment number management device
JPS6336375A (en) File managing method in data filling device
JP3771753B2 (en) Integrated resource management method
JPH113262A (en) Simple distributed fa data base management system
JP2006072626A (en) Document management device, method and program
JPH01140353A (en) System for maintaining data in data base
JP2006189976A (en) Storage device, data processing method for the same, data processing program for the same, and data processing system
JPH05189284A (en) Relational data base management system
JP2908050B2 (en) Drawing and record management system
JPH0659964A (en) Management system for distributed operation of dictionary
JP2000003275A (en) Device for managing design information and method therefor
JPH07200253A (en) Program generation management method and program generation management device