JPH01286020A - Program retrieving system - Google Patents

Program retrieving system

Info

Publication number
JPH01286020A
JPH01286020A JP63114621A JP11462188A JPH01286020A JP H01286020 A JPH01286020 A JP H01286020A JP 63114621 A JP63114621 A JP 63114621A JP 11462188 A JP11462188 A JP 11462188A JP H01286020 A JPH01286020 A JP H01286020A
Authority
JP
Japan
Prior art keywords
program
record
feature value
search
characteristic value
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
JP63114621A
Other languages
Japanese (ja)
Inventor
Takefumi Shindo
武文 進藤
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP63114621A priority Critical patent/JPH01286020A/en
Publication of JPH01286020A publication Critical patent/JPH01286020A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To raise the efficiency of a program re-use by automatically preparing data for retrieval from a developed program when a similar program is retrieved out of a developed program group. CONSTITUTION:A similar program retrieving system extracts a characteristic value from a record-type data processing program 1a of a source program 1 and prepares a characteristic value record 3a. Based on a characteristic value extracting program 2 and a retrieving command inputted from a terminal device 5, the characteristic value record 3a is retrieved. The characteristic extracting program 2 extracts the characteristic value of the record type data processing program 1a described by a COBOL language and outputs it to a file 3. A syntax analysis is executed, and a data item name group to constitute record type data is extracted as a characteristic value. The name group and the program name are combined, the characteristic value record is prepared and outputted to a record file 3.

Description

【発明の詳細な説明】 (産業上の利用分野〕 本発明はプログラムの分類と検索に係り、特に旧プログ
ラムの再利用に好適な類似プログラムの検索を行なうプ
ログラム検索方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to classification and retrieval of programs, and particularly to a program retrieval method for retrieving similar programs suitable for reusing old programs.

〔従来の技術〕[Conventional technology]

従来、事務データ処理に代表されるレコード型データ処
理に対し、多くのプログラムが開発され運用されてきた
。新たなデータ処理の要求に対して既開発のプログラム
をベースにして開発しようとする場合、既開発プログラ
ムの検索方式はプログラム−覧リストの検索、ドキュメ
ントの閲覧。
Conventionally, many programs have been developed and operated for record-type data processing, typified by office data processing. When trying to develop a new data processing request based on an already developed program, the search method for already developed programs is to search the program list and view documents.

プログラムリストの閲覧等であり、開発担当者に既開発
プログラムを再利用させるための検索方式としては不充
分であった。
This method involves viewing a program list, etc., and is insufficient as a search method for allowing developers to reuse already developed programs.

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

上記従来技術では、プログラムの特徴を形式的に表わす
点について配慮がなされておらず、新規に開発しようと
するプログラムの特徴のデータから該当するプログラム
を検索するという方式が実現できないという問題点があ
った。
The above-mentioned conventional technology does not give consideration to the formal representation of program characteristics, and there is a problem in that it is not possible to search for a corresponding program from data on the characteristics of a newly developed program. Ta.

本発明の目的は、低開発のプログラムより、そのプログ
ラムの特徴値となるデータを抽出し、プログラム名称と
連結して特徴値レコードを作成し。
An object of the present invention is to extract data that is a feature value of a low-development program, and to create a feature value record by linking the data with the program name.

複数のプログラムより抽出した特徴値レコード群に対す
る効率的な検索手段を与えることにより、類似関係を有
するプログラムの検索方式を提供することにある。
The object of the present invention is to provide a search method for programs having similar relationships by providing an efficient search means for a group of feature value records extracted from a plurality of programs.

〔課題を解決するための手、段] レコード型データ処理プログラムは、処理するレコード
型データを構成するデータ項目群に従属した処理内容を
有している。ざるデータ項目名称は、他のプログラムに
おいても同一の意味を有していることが多く、ある同一
データ項目名称を処理する複数のプログラム同志には、
処理内容の類似性が少なからずあるといえる。従って、
複数の同一データ項目名称を有するプログラム同志では
[Means and means for solving the problem] A record type data processing program has processing contents that are dependent on a data item group that constitutes record type data to be processed. Data item names often have the same meaning in other programs, and multiple programs that process the same data item name may
It can be said that there is considerable similarity in processing content. Therefore,
For programs that have multiple identical data item names.

データ処理の類似度がより高い関係にあると判断するこ
とができる。
It can be determined that there is a higher degree of similarity in data processing.

本発明は、このような観点に基づき、データ構造解析技
術により、レコード型データの項目名称を抽出し、プロ
グラム名称と連結した文字列をプログラムの特徴値レコ
ードとし、この特徴値レコードを低開発のレコード型デ
ータ処理プログラムより作成し、蓄積し、蓄積された特
徴値レコード群に対し、文字列検索技術を適用すること
により、指定されたデータ項目名称と同一のデータ項目
名称を有する特徴値レコードを検索して、その特徴値レ
コードより類似関係を有するプログラムの名称を得るこ
とにある。検索データとしてデータ項目名称を複数指定
すれば、より類似度の高いプログラムの名称を検索する
ことができる。
Based on this viewpoint, the present invention uses data structure analysis technology to extract item names of record-type data, sets a character string concatenated with the program name as a feature value record of the program, and converts this feature value record into a low-development method. By applying character string search technology to a group of feature value records created and accumulated using a record-based data processing program, feature value records with the same data item name as the specified data item name can be found. The purpose is to search and obtain the names of programs having a similar relationship from the feature value records. By specifying multiple data item names as search data, it is possible to search for program names with higher similarity.

〔作用〕[Effect]

データ構造解析技術では、レコード型データ処理プログ
ラムのデータ構造記述等に対する構文解析により、レコ
ード型データを構成するデータ項目名称群を抽出できる
ので、この名称群を連結した文字列をレコード型データ
処理プログラムの特徴値とし、これと同様に解析、抽出
したプログラム名称を連結して、該プログラムの特徴値
レコードを作成できる。
With data structure analysis technology, it is possible to extract a group of data item names that make up record-type data by parsing the data structure description of a record-type data processing program. A feature value record of the program can be created by linking the program names analyzed and extracted in the same way.

文字列検索技術では、蓄積された特徴値レコード群に対
して、検索文字列として、あるデータ項目名称を指定す
れば、そのデータ項目名称を含む特徴値レコードを検索
できるので、この特徴値レコードのプログラム名称を類
似プログラムの名称として得ることができる。データ項
目名称の指定に不確定な文字列要素を含む表現形式で用
いた。
With string search technology, if you specify a certain data item name as a search string for a group of accumulated feature value records, you can search for feature value records that include that data item name. The program name can be obtained as the name of a similar program. It was used in an expression format that included an indeterminate character string element in specifying the data item name.

言わゆるr正規表現形式」を応用すれば、データ項目名
称を不確定に指定でき、より効率良く、特徴値レコード
を検索することができる。
By applying the so-called "regular expression format", data item names can be specified indefinitely, and feature value records can be searched more efficiently.

〔実施例〕〔Example〕

以下1本発明の一実施例を第1図〜第9図で説明する。 An embodiment of the present invention will be described below with reference to FIGS. 1 to 9.

第1図は本発明を実現する情報処理システムの機能ブロ
ック図、第2図は本発明の実施例のハードウェアシステ
ム構成を示す0本発明の類似プログラム検索方式を適用
した検索システムは、第1図に示すように、レコード型
データ処理プログラムを記憶するソースプログラムライ
ブラリ1よりレコード型データ処理プログラム1aのソ
ースプログラムより特徴値を抽出して、特徴値レコード
3aを作成し、特徴値レコードファイル3に出力する特
徴値抽出プログラム2と、電子計算機システムの端末袋
!5より入力された検索コマンドに基づいて、特徴値レ
コードファイル3より特徴値レコード3aを検索し、該
レコードを端末装置5に出力する検索プログラム4とで
構成される。
Fig. 1 is a functional block diagram of an information processing system that implements the present invention, and Fig. 2 shows a hardware system configuration of an embodiment of the present invention. As shown in the figure, feature values are extracted from the source program of the record-type data processing program 1a from a source program library 1 that stores record-type data processing programs, a feature value record 3a is created, and a feature value record file 3 is stored. Output feature value extraction program 2 and computer system terminal bag! The search program 4 searches the feature value record file 3 for a feature value record 3a based on a search command inputted from the feature value record file 3, and outputs the record to the terminal device 5.

本発明を実現するためのハードウェアシステムは、第2
図に示すように、CPUII、メモリ12、入力装置1
3.出力装置!14.端末15゜外部記憶装置16から
なっており、’CPU°llにおいて、第1図の特徴値
抽出プログラム2.検索プログラムを実行するようにな
っており、メモリ12又は外部記憶装置!6にソースプ
ログラムライブラリ1.特徴値レコードファイル4.プ
ログラム2,4等が格納される。
The hardware system for realizing the present invention is a second
As shown in the figure, CPU II, memory 12, input device 1
3. Output device! 14. It consists of a terminal 15° and an external storage device 16, and the feature value extraction program 2 of FIG. The search program is executed, and the memory 12 or external storage device! 6. Source program library 1. Feature value record file 4. Programs 2, 4, etc. are stored.

特徴値抽出プログラム2は第4図に示す手順で。The feature value extraction program 2 follows the procedure shown in FIG.

C0BOL言語で記述されたレコード型データ処理プロ
グラム1aの特徴値を抽出して、特徴値レコードを特徴
値レコードファイル3に出力する。
The feature values of the record type data processing program 1a written in the C0BOL language are extracted and the feature value records are output to the feature value record file 3.

第3図に示すC0BOL言語で記述されたレコ−ド型デ
ータ処理プログラム1aのソースプログラムに対し、構
文解析を施しくステップ41)、手続き記述部の0PE
N文1dにおけるレコード名称と“INPUT”の関係
より特定した入力ファイルのレコード型データ構造記述
部ICより上記解析によって生成された情報より、レコ
ード型データを構成するデータ項目名称群を特徴値とし
て抽出する(ステップ43)、抽出したデータ項目名称
群とプログラム名称記述部1bより抽出した(ステップ
42)プログラム名称を第5図に示す如く連結して第6
図に示す如く特徴値レコードを作成し、特徴値レコード
ファイル3に出力する(ステップ44)。
The source program of the record type data processing program 1a written in the C0BOL language shown in FIG.
From the information generated by the above analysis from the record type data structure description part IC of the input file identified from the relationship between the record name and "INPUT" in N sentence 1d, the data item name group that constitutes the record type data is extracted as a feature value. (Step 43), the extracted data item name group and the program name extracted from the program name description section 1b (Step 42) are concatenated as shown in FIG.
A feature value record is created as shown in the figure and output to the feature value record file 3 (step 44).

特徴値レコード3aはキ一部とデータ部で構成したレコ
ードであり、特徴値レコードファイル3内ではキ一部の
昇順に各レコードは位置付けられる。キ一部はプログラ
ム名称とその属性値で構成し、属性値には、そのプログ
ラムのソースコードが記憶されているソースプログラム
ファイル1の名称やバージョン等の値を付加して、キ一
部の値を特徴値レコードファイル内で一意にする。
The feature value record 3a is a record composed of a key part and a data part, and within the feature value record file 3, each record is positioned in ascending order of the key part. A part of the key consists of a program name and its attribute value, and values such as the name and version of the source program file 1 in which the source code of the program is stored are added to the attribute value. be unique within the feature value record file.

電子計算機システムの端末装置5より、第7図に示す構
文のコマンドを検索プログラム4に入力すると、検索プ
ログラム4は第8図に示す手順で特徴値レコードファイ
ル3より特徴値レコードを検索して端末5に出力する。
When a command with the syntax shown in FIG. 7 is input to the search program 4 from the terminal device 5 of the computer system, the search program 4 searches for feature value records from the feature value record file 3 according to the procedure shown in FIG. Output to 5.

第8図において、コマンドが入力されると(ステップ8
1)、そのコマンドから項目名称を取り出しくステップ
82)、そのデータ項目が1回目であれば(ステップ8
3.84)、検索デ−タ項目名目むプログラム特徴値レ
コードを検索レコードファイルより抽出して、テーブル
に有効レコードとして登録する(ステップ85)、また
、データ項目が2回目以降であれば、テーブルより有効
レコードを検索し、該当しないレコードを無効にする(
ステップ86)、データ項目が終了であれば、テーブル
の有効レコードを表示する(ステップ87)。
In FIG. 8, when a command is input (step 8
1), extract the item name from the command (step 82), and if the data item is the first time (step 82),
3.84) Extract the program feature value record with the name of the search data item from the search record file and register it as a valid record in the table (step 85); Search for more valid records and disable records that are not applicable (
Step 86), if the data item is complete, display the valid records of the table (step 87).

検索文字列すなわちデータ項目名称の指定には第9図に
示す不確定文字列規則を設けることによって、1項目名
称に対して、複数パターンの項目名称の指定を可能にす
る6例えば、’BU/BUHIN/PART:No/B
ANGO/BAN’と指定することにより1次の9通り
の文字列が検索でき、検索効率を高くすることができる
When specifying a search string, that is, a data item name, by providing an indeterminate character string rule shown in Figure 9, it is possible to specify multiple patterns of item names for one item name6. For example, 'BU/ BUHIN/PART:No/B
By specifying ANGO/BAN', nine first-order character strings can be searched, increasing search efficiency.

RTBAN。RTBAN.

以上のように本実施例によれば、レコード型データのデ
ータ項目名称群とプログラム名称とを連結した文字列を
特徴値レコードとして、既開発のレコード型データ処理
プログラムから抽出して蓄積し、蓄積された特徴値レコ
ード群に対して不確定文字列表現を用いたデータ項目名
称の検索指定を行なうことにより、類似プログラムの検
索を簡易に実現できる効果がある。
As described above, according to this embodiment, a character string in which a group of data item names of record type data and a program name are concatenated is extracted from an already developed record type data processing program as a feature value record, and stored. By specifying a search for a data item name using an indeterminate character string expression for a group of characteristic value records, it is possible to easily search for similar programs.

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

本発明によれば、(1)プログラムの特徴値をそのプロ
グラムが処理するレコード型データの項目名称を連結し
た文字列に帰結されたことにより。
According to the present invention, (1) feature values of a program are reduced to a character string that is a concatenation of item names of record-type data processed by the program.

人為的なデータ作成を行うことなく、自動的に検索対象
データを生成できる。(2)特徴値が文字列であること
から、不確定文字列表現を用いた検索文字列指定を可能
とし、可能性のあるデータ項目名称を複数指定でき、検
索確率を高めることができる。
Search target data can be automatically generated without creating data manually. (2) Since the feature value is a character string, it is possible to specify a search string using an indeterminate character string expression, and a plurality of possible data item names can be specified, increasing the search probability.

以上により、既開発プログラム群の中から類似するプロ
グラムを検索するにあたり、検索用データを既開発プロ
グラムから自動生成し、蓄積しておくことにより、検索
可能となるので、プログラム再利用の効率を著しく向上
できる効果がある。
As described above, when searching for similar programs from a group of already developed programs, the search data is automatically generated from the already developed programs and stored, making it possible to search, which greatly improves the efficiency of program reuse. There is an effect that can be improved.

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

第1図は本発明の実施例の機能ブロック図、第2図は本
発明の実施例のハードウェア構成図、第3図はレコード
型処理プログラム1aの詳細図、第4図は特徴値抽出プ
ログラムの処理フロー図、第5図は特徴値レコードの詳
細図、第6図は第3図に示したレコード型処理プログラ
ムより抽出した特徴値レコードの詳細図、第7図は検索
用コマンドの構文図、第8図は検索プログラムの処理フ
ロー図、第9図は検索文字列の指定形式を示す図であ′
る。 1・・・ソースプログラムライブラリ、1a・・・レコ
ード型データ処理プログラム、2・・・特徴値抽出プロ
グラム、3・・・特徴値レコードファイル、3a・・・
特徴値レコード、4・・・検索プログラム、5・・・端
末装第 1 凹 ■2図 冨 3 図 不 4 図 Z 5 図 第 6 固
Fig. 1 is a functional block diagram of an embodiment of the present invention, Fig. 2 is a hardware configuration diagram of an embodiment of the invention, Fig. 3 is a detailed diagram of the record type processing program 1a, and Fig. 4 is a feature value extraction program. Figure 5 is a detailed diagram of the feature value record, Figure 6 is a detailed diagram of the feature value record extracted from the record type processing program shown in Figure 3, and Figure 7 is a syntax diagram of the search command. , Fig. 8 is a processing flow diagram of the search program, and Fig. 9 is a diagram showing the specification format of the search string.
Ru. DESCRIPTION OF SYMBOLS 1... Source program library, 1a... Record type data processing program, 2... Feature value extraction program, 3... Feature value record file, 3a...
Feature value record, 4... Search program, 5... Terminal equipment No. 1 Concave ■2 Fig. 3 Not shown 4 Fig. Z 5 Fig. 6 Hard

Claims (1)

【特許請求の範囲】[Claims] 1、ソースプログラムライブラリ内のレコード型データ
処理ソースプログラムより検索用の情報を抽出し、抽出
した特徴値レコードを特徴値レコードファイルに記憶し
ておき、検索指示データに基づいて特徴値レコードファ
イルより特徴値レコードを検索するプログラム検索方式
において、該レコード型データ処理プログラムより、デ
ータ項目名称を抽出し、プログラム名称とを連結した文
字列を該レコード型データ処理プログラムの特徴値レコ
ードとして上記ファイルに記憶し、指定されたデータ項
目名称に対応するデータ項目名称を有する特徴値レコー
ドを検索し、該特徴値レコードより類似関係を有するプ
ログラムの名称を得ることを特徴とするプログラム検索
方式。
1. Extract search information from the record-type data processing source program in the source program library, store the extracted feature value records in a feature value record file, and extract features from the feature value record file based on search instruction data. In a program search method for searching a value record, a data item name is extracted from the record type data processing program, and a character string concatenated with the program name is stored in the above file as a feature value record of the record type data processing program. , a program search method characterized in that a feature value record having a data item name corresponding to a specified data item name is searched, and a name of a program having a similar relationship is obtained from the feature value record.
JP63114621A 1988-05-13 1988-05-13 Program retrieving system Pending JPH01286020A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63114621A JPH01286020A (en) 1988-05-13 1988-05-13 Program retrieving system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63114621A JPH01286020A (en) 1988-05-13 1988-05-13 Program retrieving system

Publications (1)

Publication Number Publication Date
JPH01286020A true JPH01286020A (en) 1989-11-17

Family

ID=14642440

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63114621A Pending JPH01286020A (en) 1988-05-13 1988-05-13 Program retrieving system

Country Status (1)

Country Link
JP (1) JPH01286020A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009086851A (en) * 2007-09-28 2009-04-23 Hitachi Software Eng Co Ltd Display method and system for picture transition diagram
JP2012168598A (en) * 2011-02-10 2012-09-06 Mitsubishi Electric Corp Software component management device and software component management program
JP2013080355A (en) * 2011-10-03 2013-05-02 Mitsubishi Electric Corp Software reuse support device, software reuse support method and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009086851A (en) * 2007-09-28 2009-04-23 Hitachi Software Eng Co Ltd Display method and system for picture transition diagram
JP2012168598A (en) * 2011-02-10 2012-09-06 Mitsubishi Electric Corp Software component management device and software component management program
JP2013080355A (en) * 2011-10-03 2013-05-02 Mitsubishi Electric Corp Software reuse support device, software reuse support method and program

Similar Documents

Publication Publication Date Title
JP2896634B2 (en) Full-text registered word search device and full-text registered word search method
US8924837B2 (en) Text file interface support in an object oriented application
JP2001167087A (en) Device and method for retrieving structured document, program recording medium for structured document retrieval and index preparing method for structured document retrieval
JP2008052662A (en) Structured document management system and program
JP4247135B2 (en) Structured document storage method, structured document storage device, structured document search method
JP4247108B2 (en) Structured document search method, structured document search device, and program
US5895473A (en) System for extracting text from CAD files
JPH11328218A (en) Contents attribute information normalization method, information collecting/service providing system, attribute information setting device and program storage recording medium
JPH01286020A (en) Program retrieving system
JP2016018279A (en) Document file search program, document file search device, document file search method, document information output program, document information output device, and document information output method
US6357002B1 (en) Automated extraction of BIOS identification information for a computer system from any of a plurality of vendors
JP2005056085A (en) Data structure conversion program
JP2002202973A (en) Structured document management device
JP2001101184A (en) Method and device for generating structurized document and storage medium with structurized document generation program stored therein
JP6361472B2 (en) Correspondence information generation program, correspondence information generation apparatus, and correspondence information generation method
JP3239845B2 (en) Full-text search apparatus and method
JP2006106907A (en) Structured document management system, method for constructing index, and program
JP4034503B2 (en) Document search system and document search method
US20230376310A1 (en) Information processing method and information processing apparatus
JP3439368B2 (en) Data conversion processing system and recording medium recording program for realizing the function
JPH06203078A (en) Information retrieval method and device therefor
CN115934751A (en) Data retrieval method, device and medium
CN111026712A (en) File uploading method and device, file querying method and device and electronic equipment
JP2001195400A (en) Method and device for structuralizing document context
JP4405493B2 (en) Structured document management system and program