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
JPH0213336B2 - - Google Patents
[go: Go Back, main page]

JPH0213336B2 - - Google Patents

Info

Publication number
JPH0213336B2
JPH0213336B2 JP57052661A JP5266182A JPH0213336B2 JP H0213336 B2 JPH0213336 B2 JP H0213336B2 JP 57052661 A JP57052661 A JP 57052661A JP 5266182 A JP5266182 A JP 5266182A JP H0213336 B2 JPH0213336 B2 JP H0213336B2
Authority
JP
Japan
Prior art keywords
record
line number
data
entry
module
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 - Lifetime
Application number
JP57052661A
Other languages
Japanese (ja)
Other versions
JPS58169267A (en
Inventor
Koji Saito
Hideo Hoya
Koichi Inahara
Minoru Katayama
Hidetoshi Inoe
Michihiro Ooba
Kunihiko Ooshima
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 JP57052661A priority Critical patent/JPS58169267A/en
Publication of JPS58169267A publication Critical patent/JPS58169267A/en
Publication of JPH0213336B2 publication Critical patent/JPH0213336B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は、レコード内の全フイールドの利用を
可能にするために行番号をレコード外に持たせる
行番号設定方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a line number setting method in which the line number is placed outside the record in order to make it possible to use all fields within the record.

〔従来技術と問題点〕[Conventional technology and problems]

従来は、レコードを編集する場合において、そ
のために行番号をつけるときは当然レコード中に
行番号を付けているので、その結果レコード内の
全フイールドを使用することができないこととな
る。そで、レコード内の全フイールドを使用でき
るようにするために、行番号を付けないこともあ
る。しかしこのように行番号が付けられていない
と、EDITコマンドなどのEDITORでは、例えば
LIST100、LIST1000等のコマンドによる行番号
指定ができず、このようなコマンドは使えないた
め、NONUM(ノー・ナンバー)指定で行わなけ
ればならない。この場合には、相対番号で何番目
のレコードかを位置付けして表示をしなければな
らない。したがつて編集のとき、目的のレコード
を検索するのが困難であつた。
Conventionally, when editing a record, line numbers are naturally added to the record, and as a result, it is not possible to use all the fields in the record. Therefore, line numbers may not be added to allow use of all fields in a record. However, if line numbers are not added in this way, EDITOR such as the EDIT command, for example,
Line numbers cannot be specified using commands such as LIST100 and LIST1000, and such commands cannot be used, so NONUM (no number) must be specified. In this case, the relative number of the record must be located and displayed. Therefore, when editing, it is difficult to search for a desired record.

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

本発明は、上記の問題点を解決するものであつ
て、行番号をレコード外に持たせることによつ
て、レコード内の全フイールドの利用を可能に
し、全レコードのリナンバ処理を容易かつ効率的
に行え、目的のレコード検索を容易にすることを
目的とするものである。
The present invention solves the above-mentioned problems, and by providing the line number outside the record, it makes it possible to use all the fields in the record, making it easy and efficient to renumber all the records. The purpose is to make it easier to search for desired records.

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

上記目的を達成するため、本発明の行番号設定
方式は、外部記憶装置上に複数のデータ・レコー
ドを含むモジユールを構成する際、データ・レコ
ードの先頭に世代ごとの初期値と増分値とを含む
行番号制御情報を設け、該行番号制御情報の各世
代ごとの初期値と増分値に基づいて、以下に続く
データ・レコードへ世代単位に対応した行番号を
定めるようにしたことを特徴とするものである。
In order to achieve the above object, the line number setting method of the present invention sets the initial value and increment value for each generation at the beginning of the data record when configuring a module containing multiple data records on an external storage device. The method is characterized in that line number control information is provided, and line numbers corresponding to each generation are determined for subsequent data records based on the initial value and increment value for each generation of the line number control information. It is something to do.

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

以下、本発明を図面を参照しつつ説明する。 Hereinafter, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例を示すブロツク図、
第2図は本発明によるデータ構造のモジユールに
ついての例を示す図、第3図ないし第8図は本発
明によるテーブル管理情報とシーケンス・テーブ
ル・エントリの状態の例を示す図である。
FIG. 1 is a block diagram showing one embodiment of the present invention;
FIG. 2 is a diagram showing an example of a data structure module according to the present invention, and FIGS. 3 to 8 are diagrams showing examples of table management information and sequence table entry states according to the present invention.

図において、1はデータ、2は行番号管理処理
部、3は処理対象データ・セツト(GEMライブ
ラリ)、Aはモジユール、4はリスト出力、11
はテーブル管理情報、12はシーケンス・テーブ
ル、12′はシーケンス・テーブル・エントリを
示す。
In the figure, 1 is data, 2 is line number management processing unit, 3 is processing target data set (GEM library), A is module, 4 is list output, 11
is table management information, 12 is a sequence table, and 12' is a sequence table entry.

第1図において、データ1と ADD A,INIT=100、INCR=100 という情報を入力すると、モジユールAの最初の
レコード記憶場所にレコードの長さと識別フラグ
とレベルと処理順番と初期値と増分値とをもつ行
番号制御レコード1が書込まれ、次のレコード記
憶場所に100番という番号が与えられたデータ・
レコードが書込まれ、更に次のレコード記憶場所
に200番という番号が与えられたデータ・レコー
ドが書込まれる。データがデータ1とデータ2し
かないとすると最後のレコード記憶場所にモジユ
ールの終りと示す行番号制御レコード2が書込ま
れる。
In Figure 1, when data 1, ADD A, INIT=100, INCR=100 are input, the record length, identification flag, level, processing order, initial value, and increment value are stored in the first record storage location of module A. Line number control record 1 with
A record is written, and then a data record numbered 200 is written to the next record storage location. If there are only data 1 and 2, line number control record 2 indicating the end of the module is written in the last record storage location.

第1図のモジユールAに対して初期値10、増分
値10でナンバリングする場合、モジユールの先頭
に行番号制御レコードを追加するだけでナンバリ
ングが完了し、従来方式のように、いちいち各レ
コード内の行番号を書替える必要がない。
When numbering module A in Figure 1 with an initial value of 10 and an increment value of 10, numbering is completed simply by adding a line number control record at the beginning of the module, and the numbering is completed by simply adding a line number control record to the beginning of the module. There is no need to rewrite line numbers.

第2図は、データ1と2とを訂正し、データ1
と2との間に新たにデータ1′を挿入した場合の
データ構造を示すものである。なお、最初に作ら
れたときはレベル1とされ、次にそのモジユール
が訂正された場合にはレベル2とされる。以下同
じである。第2図においては、NUM用SEQレコ
ード,とINS(NRG)用SEQレコードとを
もつモジユールの構成の例を示しているが、
NUM用SEQレコードは第1図の行番号制御レコ
ード1に相当し、EOMレコードは第1図の行番
号制御レコード2に相当する。第2図では、まず
2枚のデータ・レコードを初期値100、増分値100
で登録している。その時に作成されたのがNUM
用SEQレコードである。ここで、0CはX0C
即ちレコードの長さが12バイトであることを示
し、64は行番号のレコードを示すフラグで、全
体を通してのオリジナルの行番号情報であること
を示し、1はレベルを示し、0は処理順番を示
し、100は夫々初期値と増分値とを示している。
次のレベルで初期値10、増分値10にリナンバリン
グする場合、モジユールの先頭にNUM用SEQレ
コードを追加するだけでリナンバリングが完了
する。その後、行番号10のデータ1の後にレコー
ド1枚を挿入する場合、INS用SEQレコードと
挿入データの終りを示すEODレコードを作成
してデータ1′を挿入する。
Figure 2 shows data 1 and 2 corrected and data 1
This shows the data structure when new data 1' is inserted between and 2. Note that when the module is first created, it is set to level 1, and when the module is subsequently corrected, it is set to level 2. The same applies below. Figure 2 shows an example of a module configuration that has a SEQ record for NUM and a SEQ record for INS (NRG).
The SEQ record for NUM corresponds to line number control record 1 in FIG. 1, and the EOM record corresponds to line number control record 2 in FIG. In Figure 2, we first set two data records with an initial value of 100 and an incremental value of 100.
I am registered with . NUM was created at that time.
This is a SEQ record for Here, 0C is X0C
In other words, the length of the record is 12 bytes, 64 is a flag indicating the line number record, indicating that it is the original line number information throughout, 1 indicates the level, and 0 indicates the processing order. 100 indicates an initial value and an increment value, respectively.
If you want to renumber to an initial value of 10 and an increment value of 10 at the next level, simply add a SEQ record for NUM to the beginning of the module to complete the renumbering. After that, if one record is to be inserted after data 1 in line number 10, a SEQ record for INS and an EOD record indicating the end of the inserted data are created and data 1' is inserted.

以上第2図に示したようなモジユールをリスト
出力したり、デイスプレイ装置へ出力する場合に
SEQレコードの情報をどのように使用するかを
第3図ないし第8図により説明する。モジユール
のNUM用SEQレコードとを読込んだとき、
第1図に示す行番号処理部2が作成するテーブル
を示したのが第3図である。第3図のテーブルは
記憶装置上に存在すると考えてよい。シーケン
ス・テーブル12の最初のエントリ12′が
NUM用SEQレコードにより作成され、2番目
のエントリ12′がNUM用SEQレコードによ
り作成されている。この状態でデータ1を読込む
と、このレコードには最初のエントリの初期値10
を割当てる。この時、そのエントリ中の「次の行
番号」フイールドには、次に読込んだレコードに
対する行番号として初期値(10)+増分値(10)=20を設
定し、2番目のエントリ中の「次の行番号」フイ
ールドにも同様の処理、即ち200を設定しておく。
設定した状態を示すのが第4図である。したがつ
て、次に読込んだモジユールがデータ・レコード
であれば、このレコードには行番号20が割当てら
れることになる。しかし、第2図に示す例の場合
には、次のレコードがINS用SEQレコードであ
るので、シーケンス・テーブル12の新しい(3
番目の)エントリ12′がINS用SEQレコード
により作成される。その作成された状態を示すの
が第5図である。このエントリ12′の内容に従
うと、次に読込んだデータ・レコードには11の行
番号が割当てられる。この時、該3番目のエント
リ中の「次の行番号」フイールドには、先に述べ
たと同様の処理を行つて12を設定しておく。その
状態を示すのが第6図である。次にレコードを読
込むと、EODレコードであり、このレコード
は、識別フラグ60のINS用SEQレコードの
管理範囲の終了を意味するので、3番目のエント
リ情報は削除される。その状態を示すのが第7図
である。したがつて、その次に読込んだデータ・
レコードは行番号20が割当てられる。この時、エ
ントリ中の「次の行番号」フイールドには、先に
説明したと同様の処理を行い、30と300を設定し
ておく、その状態を示すのが第8図である。も
し、ここでデータ3というデータ・レコードがあ
つて、これを読込むとすると、そのときのデー
タ・レコードには行番号30が割当てられることに
なる。
When outputting a list of modules as shown in Figure 2 or outputting to a display device,
How to use the information in the SEQ record will be explained with reference to FIGS. 3 to 8. When reading the module's NUM SEQ record,
FIG. 3 shows a table created by the line number processing section 2 shown in FIG. 1. The table in FIG. 3 may be considered to exist on a storage device. The first entry 12' of the sequence table 12 is
A SEQ record for NUM is created, and the second entry 12' is created by a SEQ record for NUM. When data 1 is read in this state, this record has an initial value of 10 for the first entry.
Assign. At this time, in the "Next line number" field in that entry, set the initial value (10) + increment value (10) = 20 as the line number for the next record read, and The same process is applied to the "Next line number" field, that is, 200 is set.
FIG. 4 shows the set state. Therefore, if the next module read is a data record, line number 20 will be assigned to this record. However, in the case of the example shown in FIG. 2, the next record is the INS SEQ record, so the new (3
Entry 12' (th) is created by the INS SEQ record. FIG. 5 shows the created state. According to the contents of this entry 12', line number 11 is assigned to the next read data record. At this time, the "next line number" field in the third entry is set to 12 by performing the same process as described above. FIG. 6 shows this state. When the next record is read, it is an EOD record, and this record signifies the end of the management range of the INS SEQ record with identification flag 60, so the third entry information is deleted. FIG. 7 shows this state. Therefore, the next read data
The record is assigned line number 20. At this time, the "next line number" field in the entry is subjected to the same processing as described above and is set to 30 and 300. FIG. 8 shows this state. If there is a data record called data 3 and this is to be read, line number 30 will be assigned to the data record at that time.

第3図ないし第8図において、テーブル管理情
報では、最抵NUM用エントリ・アドレス、空エ
ントリ・アドレス(次に使うエントリのアドレ
ス)、最高レベルのエントリ・アドレス、最新エ
ントリ・アドレス、現(削除)レベル・エント
リ・アドレス、挿入レベル・エントリ・アドレス
を管理している。第3図ないし第8図において
夫々の管理先を矢印で示している。
In Figures 3 to 8, the table management information includes the entry address for the lowest NUM, the empty entry address (address of the next entry to be used), the highest level entry address, the latest entry address, and the current (deleted) entry address. ) manages level entry addresses and insertion level entry addresses. In FIGS. 3 to 8, each management destination is indicated by an arrow.

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

以上の説明から明らかなように、本発明によれ
ば、レコード内の全フイールドを有効に利用で
き、全レコードに対してリナンバリングする時に
はモジユールの先頭にSEQレコードを作成する
だけなので効率がよい。そして履歴管理を容易に
行うことができる。
As is clear from the above description, according to the present invention, all fields in a record can be used effectively, and when renumbering all records, only a SEQ record is created at the beginning of a module, which is efficient. And history management can be easily performed.

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

第1図は本発明の一実施例を示すブロツク図、
第2図は本発明によるデータ構造のモジユールに
ついての例を示す図、第3図ないし第8図は本発
明によるテーブル管理情報とシーケンス・テーブ
ル・エントリの状態の例を示す図である。 1…データ、2…行番号管理処理部、3…処理
対象データ・セツト(GEMライブラリ)、A…モ
ジユール、4…リスト出力、11…テーブル管理
情報、12…シーケンス・テーブル、12′…シ
ーケンス・テーブル・エントリ。
FIG. 1 is a block diagram showing one embodiment of the present invention;
FIG. 2 is a diagram showing an example of a data structure module according to the present invention, and FIGS. 3 to 8 are diagrams showing examples of table management information and sequence table entry states according to the present invention. 1...Data, 2...Line number management processing section, 3...Processing target data set (GEM library), A...Module, 4...List output, 11...Table management information, 12...Sequence table, 12'...Sequence table table entry.

Claims (1)

【特許請求の範囲】[Claims] 1 外部記憶装置上に複数のデータ・レコードを
含むモジユールを構成する際、データ・レコード
の先頭に世代ごとの初期値と増分値とを含む行番
号制御情報を設け、該行番号制御情報の各世代ご
との初期値と増分値に基づいて、以下に続くデー
タ・レコードへ世代単位に対応した行番号を定め
るようにしたことを特徴とする行番号設定方式。
1. When configuring a module containing multiple data records on an external storage device, line number control information including an initial value and increment value for each generation is provided at the beginning of the data record, and each line number control information A line number setting method characterized in that a line number corresponding to each generation is determined for subsequent data records based on an initial value and an increment value for each generation.
JP57052661A 1982-03-31 1982-03-31 Line number setting system Granted JPS58169267A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57052661A JPS58169267A (en) 1982-03-31 1982-03-31 Line number setting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57052661A JPS58169267A (en) 1982-03-31 1982-03-31 Line number setting system

Publications (2)

Publication Number Publication Date
JPS58169267A JPS58169267A (en) 1983-10-05
JPH0213336B2 true JPH0213336B2 (en) 1990-04-04

Family

ID=12921043

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57052661A Granted JPS58169267A (en) 1982-03-31 1982-03-31 Line number setting system

Country Status (1)

Country Link
JP (1) JPS58169267A (en)

Also Published As

Publication number Publication date
JPS58169267A (en) 1983-10-05

Similar Documents

Publication Publication Date Title
EP0487331B1 (en) Directory management system
CA2013154C (en) Apparatus and method for digital data management
EP0798734A3 (en) A synchronous semiconductor memory integrated circuit, a method for accessing said memory and a system comprising such a memory
JPH11144478A (en) Information storage method for nonvolatile semiconductor memory and electronic device
JPH0213336B2 (en)
US6694319B1 (en) Method of characterizing video data, and video data memory comprising means for generating a video data code
JPS59212971A (en) Image data producer
JPH05314483A (en) Recording method of information
JPS59139765A (en) Image memory control method
JPS6129955A (en) Information storage method in write-once media
JPS603035A (en) Storage device
JPH01136252A (en) File structure
JP2670276B2 (en) Character reader
US6820270B1 (en) Programming device
JPS59119458A (en) Method of garbage collection
JPH07182215A (en) Data management device
JP2977848B2 (en) Dictionary construction method for character recognition
JPH02253450A (en) File managing method and file editing method
JPH01306954A (en) Text management system for picture editor
JPH01175663A (en) Document edition system
JPH01106146A (en) File management method
JPH04220736A (en) Sharing method for binary format data file between different kind of computers
JPH0195062A (en) File editing device
JPH01112425A (en) Program source filing maintaining system at time of editing by editor
JPH04114244A (en) File reading system