JP2764782B2 - Data structure expansion method for COBOL programs - Google Patents

Data structure expansion method for COBOL programs

Info

Publication number
JP2764782B2
JP2764782B2 JP5044579A JP4457993A JP2764782B2 JP 2764782 B2 JP2764782 B2 JP 2764782B2 JP 5044579 A JP5044579 A JP 5044579A JP 4457993 A JP4457993 A JP 4457993A JP 2764782 B2 JP2764782 B2 JP 2764782B2
Authority
JP
Japan
Prior art keywords
data
data item
statement
update
analysis unit
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
JP5044579A
Other languages
Japanese (ja)
Other versions
JPH06236263A (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.)
ADOBANSUDO SHISUTEMU KENKYUSHO KK
Original Assignee
ADOBANSUDO SHISUTEMU KENKYUSHO KK
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 ADOBANSUDO SHISUTEMU KENKYUSHO KK filed Critical ADOBANSUDO SHISUTEMU KENKYUSHO KK
Priority to JP5044579A priority Critical patent/JP2764782B2/en
Publication of JPH06236263A publication Critical patent/JPH06236263A/en
Application granted granted Critical
Publication of JP2764782B2 publication Critical patent/JP2764782B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Devices For Executing Special Programs (AREA)
  • Stored Programmes (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、COBOL言語で記述
された既存アプリケーション・プログラムの再構築、再
設計、部品化再利用、メンテナンスなどを行なうための
アプリケーション・プログラムに対する各種解析処理の
前処理として、アプリケーション・プログラムのデータ
フローを構造化して展開するデータ構造展開方式に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to preprocessing of various analysis processes for an application program for reconstructing, redesigning, reusing parts, and maintaining an existing application program described in the COBOL language. And a data structure expansion method for structuring and expanding a data flow of an application program.

【0002】[0002]

【従来の技術及び発明が解決しようとする課題】アプリ
ケーション・プログラムの再構築、再設計、部品化再利
用、メンテナンスなどを行なう場合、それぞれの処理に
対応する各種解析ツールを用いて必要な解析処理を行な
う。
2. Description of the Related Art In the case of restructuring, redesigning, reusing parts, and maintaining an application program, necessary analysis processing is performed using various analysis tools corresponding to each processing. Perform

【0003】従来、この種の解析ツールは、各ツ−ル間
に共通して利用可能なデータ構造が確立されておらず、
プログラム構造の記述をそれぞれ独自の形式で行なって
いた。そのため、アプリケーション・プログラムの解析
処理を行なう場合において、解析処理、及び展開処理、
展開形式などを最初から開発することが必要になり、時
間的にも労力的にも多大な負荷がかかるという欠点があ
った。
Conventionally, in this type of analysis tool, a data structure that can be used in common between tools has not been established.
Each program structure was described in its own format. Therefore, when performing the analysis process of the application program, the analysis process, the expansion process,
It is necessary to develop a development format from the beginning, and there is a disadvantage that a great load is imposed on both time and labor.

【0004】また、既に同様の解析処理が行なわれたこ
とのあるアプリケーション・プログラムについて、かか
る既存の解析結果を流用する場合であっても、プログラ
ム構造の記述が流用した解析ツ−ルの記述形式に依存す
ることになり、汎用性がなくなるという欠点があった。
[0004] In addition, even when an existing analysis result is diverted for an application program that has already been subjected to the same analysis processing, the description of the program structure is diverted to the description format of the analysis tool. , And there is a disadvantage that versatility is lost.

【0005】本発明は、COBOL言語で記述されたア
プリケーション・プログラムを対象に、上記従来の課題
を解決し、種々の解析処理において共通して利用可能な
汎用性のあるプログラム構造の記述形式を提供し、様々
な解析ツールの開発負荷を軽減することを課題としてい
る。
SUMMARY OF THE INVENTION The present invention solves the above-mentioned conventional problems for an application program described in the COBOL language and provides a description format of a versatile program structure that can be commonly used in various analysis processes. And to reduce the development load of various analysis tools.

【0006】[0006]

【課題を解決するための手段】上記の目的を達成するた
め、本発明は、COBOL言語で記述されたアプリケー
ション・プログラムのソースプログラムをデータ構造に
基づいて展開するCOBOLプログラムのデータ構造展
開方式において、上記COBOL言語で記述されたアプ
リケーション・プログラムのソースプログラムを字句に
分解する字句解析部と、上記字句解析部の字句解析処理
で得られた字句の並びに対して構文解析をする構文解析
部と、上記構文解析部の構文解析処理の結果から、上記
アプリケーション・プログラム中の命令の内容を定義し
た命令定義部分を対象として、該命令定義部分内の命令
文中におけるデータ項目が参照データ項目及び更新デー
タ項目に該当するか否かを判定し、参照データ項目ある
いは更新データ項目に該当する場合に、命令文における
参照データ項目及び更新データ項目の有無とこれらのデ
ータ項目を有する各命令文のアプリケーション・プログ
ラム中での物理的な出現位置を示す定義位置からなるデ
ータ項目情報に上記データ項目の情報を加えることによ
りデータ項目の命令文中での参照及び更新関係を解析す
るデータ項目解析部と、上記データ項目解析部の解析処
理で得られる情報に基づいて、上記命令文におけるデー
タ項目名の参照及び更新関係を登録してなるデータフロ
ーテーブルを作成するデータフローテーブル作成部とか
らなることを特徴とする。
SUMMARY OF THE INVENTION In order to achieve the above object, the present invention relates to a COBOL program data structure expansion method for expanding a source program of an application program described in the COBOL language based on a data structure. A lexical analysis unit for decomposing a source program of an application program described in the COBOL language into lexical expressions, a lexical analysis unit for analyzing the lexical sequence obtained by the lexical analysis processing of the lexical analysis unit, From the result of the parsing process of the parsing unit, define the contents of the instructions in the above application program.
And as a target instruction definition part, the reference data items in an instruction statement of the instruction definition partial data item and updating data
When determining whether to correspond to data items, corresponding to the reference data item or updated data item, in the statement
Whether there are reference data items and update data items and their data
Application program for each statement with data items
Data consisting of defined positions that indicate physical appearance positions in the ram.
A data item analysis unit that analyzes the reference and update relationship in a command sentence of the data item by adding the information of the data item to the data item information, based on information obtained by the analysis processing of the data item analysis unit. And a data flow table creating unit for creating a data flow table in which the reference and update relation of the data item name in the above-mentioned statement are registered.

【0007】かかるデータ構造展開方式において、デー
タフローテーブルが、アプリケーション・プログラム中
の命令文によるデータ項目名の参照または更新関係を示
すと共に該命令文のアプリケーション・プログラム中で
物理的な出現位置を示す定義位置を登録してなるデー
タテーブルと、該データテーブルに登録されたデータ項
目の該データテーブルにおける登録位置を示す参照ポイ
ンタを登録してなる検索テーブルとからなることを特徴
とする。
In such a data structure development method, a data flow table indicates a reference or update relationship of a data item name by a statement in an application program , and indicates a physical appearance position of the statement in the application program. And a search table in which a reference pointer indicating a registration position in the data table of a data item registered in the data table is registered.

【0008】[0008]

【実施例】以下は、本発明の実施例について、図面を参
照して詳細に説明する。図1は、本発明の一実施例にか
かるCOBOLプログラムのデータ構造展開方式の構成
を示すブロック図である。
Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 1 is a block diagram showing a configuration of a data structure expansion method of a COBOL program according to an embodiment of the present invention.

【0009】本実施例のCOBOLプログラムのデータ
構造展開方式は、COBOL言語で記述されたアプリケ
ーション・プログラムのソースプログラムを入力し、デ
ータ構造展開処理を行なって、データフローテーブル1
0に展開する。作成したテーブルは、図示しない所定の
記憶装置に記憶する。
In the data structure development method of the COBOL program of the present embodiment, a source program of an application program described in the COBOL language is input, data structure development processing is performed, and a data flow table 1 is created.
Expand to 0. The created table is stored in a predetermined storage device (not shown).

【0010】ここで、データフローテーブル10は、ア
プリケーション・プログラム中の命令文によるデータ項
目名の参照または更新関係を示すと共に該命令文のプロ
グラム中での定義位置を登録してなるデータテーブル1
1と、データテーブル11によって参照または更新関係
を示したデータ項目名と該データ項目名を参照または更
新している命令文との関係を示す検索テーブル12とか
らなる。アプリケーション・プログラムのCOBOL言
語で記述されたソースプログラムの一例を図8に示す。
また、ソースプログラムをデータフローテーブル10に
展開した一例を図7に示す。
Here, the data flow table 10 indicates a reference or update relationship of a data item name by a statement in an application program, and registers a definition position of the statement in the program.
1 and a search table 12 indicating a relationship between a data item name indicating a reference or update relationship by the data table 11 and a statement referencing or updating the data item name. FIG. 8 shows an example of a source program described in the COBOL language of the application program.
FIG. 7 shows an example in which the source program is developed in the data flow table 10.

【0011】図1に示すように、本実施例によるデータ
構造展開処理は、入力したソースプログラムを構文上の
基本要素である字句に分解する字句解析部1と、字句解
析部1の解析によって得られた字句列に対して構文解析
をする構文解析部2と、構文解析部2の解析結果に基づ
いてデータ項目の関係を解析するデータ項目解析部3
と、データ項目解析部3の解析処理で得られる情報に基
づいてデータフローテーブル10を作成するデータフロ
ーテーブル作成部4とからなる。
As shown in FIG. 1, the data structure expansion processing according to the present embodiment is obtained by a lexical analysis unit 1 for decomposing an input source program into lexical expressions which are basic elements in syntax, and an analysis by the lexical analysis unit 1. A parsing unit 2 for parsing the lexical string obtained, and a data item analyzing unit 3 for analyzing the relationship between the data items based on the analysis result of the parsing unit 2
And a data flow table creation unit 4 that creates the data flow table 10 based on information obtained by the analysis processing of the data item analysis unit 3.

【0012】図2に上記データ構造展開処理の流れを示
す。まず、字句解析部1がアプリケーション・プログラ
ムのソースプログラムのファイルを入力すると、入力し
たソースプログラムを字句に分解する(ステップS
1)。そして、構文解析部2が、字句列に対して構文解
析をい、構文エラーの処理、命令文の種類及び構造の識
別をする(ステップS2)。
FIG. 2 shows the flow of the data structure expansion processing. First, when the lexical analyzer 1 inputs a file of a source program of an application program, the input source program is decomposed into lexical characters (step S).
1). Then, the syntax analysis unit 2 performs syntax analysis on the lexical string, processes the syntax error, and identifies the type and structure of the command sentence (step S2).

【0013】次に、データ項目解析部3が、構文解析部
2によって構文解析処理を施された字句列から命令文を
順次検査して、命令文中のデータ項目の参照関係または
更新関係の有無を検出し、データ項目情報を作成する
(ステップS3)。
Next, the data item analysis unit 3 sequentially inspects the imperative sentence from the lexical string subjected to the syntax analysis processing by the syntactic analysis unit 2 and determines whether there is a reference relation or an update relation of the data item in the imperative sentence. Detect and create data item information (step S3).

【0014】次に、データフローテーブル作成部4が、
データ項目解析部3の解析処理で得られたデータ項目情
報に基づいて、上記命令文におけるデータ項目名の参照
及び更新関係をテーブルで構成されるデータ構造に基づ
いて展開したデータフローテーブルを作成する(ステッ
プS4)。
Next, the data flow table creation unit 4
Based on the data item information obtained by the analysis process of the data item analysis unit 3, a data flow table is created in which the reference and update relation of the data item name in the above-mentioned statement are developed based on a data structure composed of a table. (Step S4).

【0015】以上の各処理は、入力したプログラムファ
イルの全ての命令文について処理を終るまで繰り返し行
なう(ステップS5)。
The above processes are repeated until all the command statements in the input program file have been processed (step S5).

【0016】上記データ項目解析部3は、図3に示すよ
うに、入力ファイルの命令文中の参照データ項目を他の
データ項目名から識別する参照データ項目識別手段31
と、同命令文中の更新データ項目を他のデータ項目名か
ら識別する更新データ項目識別手段32とからなる。こ
れによって、命令文における参照データ項目及び更新デ
ータ項目の有無と、これらのデータ項目を有する各命令
文のアプリケーション・プログラムにおける物理的な定
義位置とからなるデータ項目情報を作成する。ここで、
参照データ項目とは命令文で参照しているデータ項目名
を言い、更新データ項目とは命令文で更新しているデー
タ項目名を言う。
As shown in FIG. 3, the data item analysis unit 3 includes a reference data item identification unit 31 for identifying a reference data item in a command sentence of an input file from another data item name.
And an update data item identifying means 32 for identifying an update data item in the same command statement from another data item name. As a result, data item information including the presence or absence of the reference data item and the update data item in the statement, and the physical definition position in the application program of each statement having these data items is created. here,
The reference data item refers to the name of the data item referenced in the statement, and the updated data item refers to the name of the data item updated in the statement.

【0017】図4に、データ項目解析部3の処理の流れ
を示す。データ項目解析部3は、構文解析の施されたソ
ースプログラムの字句列を入力すると、まず参照データ
項目識別手段31によって、字句解析処理及び構文解析
処理によって得られた情報に基づいて、命令文中に参照
データ項目があるかどうかを判定する(ステップS
1)。そして、参照データ項目がある場合は当該命令文
中の参照データ項目をデータ項目情報に加える(ステッ
プS2)。この識別処理は、命令文中に参照データ項目
がなくなるまで繰り返し行なう。
FIG. 4 shows a flow of processing of the data item analysis unit 3. When the data item analysis unit 3 inputs the lexical sequence of the source program subjected to the syntax analysis, the reference data item identification unit 31 first converts the lexical sequence into a command sentence based on information obtained by the lexical analysis process and the syntax analysis process. It is determined whether there is a reference data item (step S
1). If there is a reference data item, the reference data item in the statement is added to the data item information (step S2). This identification process is repeated until there is no reference data item in the command sentence.

【0018】次に、更新データ項目識別手段32によっ
て、字句解析処理及び構文解析処理によって得られた情
報に基づいて、命令文中に更新データ項目があるかどう
かを判定する(ステップS3)。そして、更新データ項
目がある場合は当該命令文中の更新データ項目をデータ
項目情報に加える(ステップS4)。この識別処理は、
命令文中に更新データ項目がなくなるまで繰り返し行な
う。
Next, the update data item identification means 32 determines whether there is an update data item in the command statement based on the information obtained by the lexical analysis processing and the syntax analysis processing (step S3). If there is an update data item, the update data item in the statement is added to the data item information (step S4). This identification process
Repeat until no update data item is left in the statement.

【0019】以上の識別処理の後、データ項目解析部3
は、識別した命令文のアプリケーション・プログラム中
での定義位置を検出しデータ項目情報に加える(ステッ
プS5)。上記各処理によって識別したデータ項目名及
びその定義位置からなるデータ項目情報は作業用メモリ
などに記憶させておく。
After the above identification processing, the data item analysis unit 3
Detects the defined position of the identified statement in the application program and adds it to the data item information (step S5). The data item information including the data item name and its defined position identified by each of the above processes is stored in a work memory or the like.

【0020】上記データフローテーブル作成部4は、図
5に示すように、記憶装置の記憶領域にテーブルを格納
する領域を確保するテーブル領域確保手段41と、デー
タ項目解析部3で作成したデータ項目情報を読込む読込
み手段42と、テーブル領域確保手段41によって確保
された領域に読込み手段42で読取った所定の情報を登
録する登録手段43とからなる。
As shown in FIG. 5, the data flow table creating section 4 includes a table area securing means 41 for securing an area for storing a table in the storage area of the storage device, and a data item created by the data item analyzing section 3. It comprises a reading means 42 for reading information and a registration means 43 for registering predetermined information read by the reading means 42 in the area secured by the table area securing means 41.

【0021】図6に、データフローテーブル作成部4の
処理の流れを示す。データ項目解析部3によってデータ
項目情報が作成されると、データフローテーブル作成部
4は、テーブル領域確保手段41によって、記憶装置の
記憶領域中にデータテーブル11及び検索テーブル12
の領域を確保する(ステップS1)。
FIG. 6 shows the flow of processing of the data flow table creation unit 4. When the data item information is created by the data item analysis unit 3, the data flow table creation unit 4 uses the table area securing unit 41 to store the data table 11 and the search table 12 in the storage area of the storage device.
Area is secured (step S1).

【0022】次に、読込み手段42によってデータ項目
情報を読込み、登録手段43によって、プログラム中で
の命令文の定義位置とデータ項目を参照しているかまた
は更新しているかといった情報を、命令文ごとにデータ
テーブル11に登録する(ステップS2)。
Next, the data item information is read by the reading means 42, and the information such as whether the definition position of the command statement in the program and the data item are referred to or updated is stored by the registering means 43 for each command statement. Is registered in the data table 11 (step S2).

【0023】次に、データフローテーブル作成部4は、
登録手段43によって、ステップS2でデータテーブル
11に登録したデータ項目のデータテーブル11におけ
る登録位置を示す参照ポインタを検索テーブル12に登
録する(ステップS3)。この参照ポインタによって、
検索テーブル12において参照データ項目または更新デ
ータ項目とこれらのデータ項目名を参照または更新して
いる命令文との関係を示すことができる。すなわち、上
記データ項目名をキーとして、参照ポインタによって検
索テーブル12の中の登録位置を計算することによっ
て、上記データ項目名と命令文との関係を表すこととな
る。
Next, the data flow table creation unit 4
The registration unit 43 registers a reference pointer indicating a registration position in the data table 11 of the data item registered in the data table 11 in step S2 in the search table 12 (step S3). With this reference pointer,
In the search table 12, the relationship between the reference data item or the update data item and the command statement referencing or updating these data item names can be indicated. That is, by using the data item name as a key and calculating the registration position in the search table 12 using the reference pointer, the relationship between the data item name and the command statement is represented.

【0024】以上のデータフローテーブル作成部4によ
る処理は、データ項目解析部3によって識別された参照
データ項目または更新データ項目がデータ項目情報に残
っているうちは繰り返し行なう。そして、参照データ項
目または更新データ項目がなくなった時点で処理を終了
する(ステップS4)。
The above-described processing by the data flow table creation unit 4 is repeatedly performed while the reference data item or the update data item identified by the data item analysis unit 3 remains in the data item information. Then, when there are no more reference data items or update data items, the process ends (step S4).

【0025】[0025]

【発明の効果】以上説明したように本発明は、COBO
L言語で記述されたアプリケーション・プログラムのソ
ースプログラムをデータ項目の参照・更新関係を登録し
てなるデータフローテーブルに展開することとしたた
め、かかるアプリケーション・プログラムの構造を汎用
的に記述することができ、データ項目名の参照または更
新関係を示すと共に、参照または更新関係を示したデー
タ項目名と該データ項目名を参照または更新している命
令文との関係を示すことができることにより、各種解析
ツール間のデータ交換や新たな解析ツールの開発が容易
になり、時間的及び労力的な負荷を軽減することができ
るという効果がある。
As described above, the present invention provides a COBO
Since the source program of the application program described in the L language is developed into a data flow table in which data item reference / update relationships are registered, the structure of the application program can be described in a general manner. By showing the reference or update relationship of the data item name, and showing the relationship between the data item name indicating the reference or update relationship and the command statement referencing or updating the data item name, various analysis tools Data exchange between them and development of a new analysis tool are facilitated, and there is an effect that time and labor can be reduced.

【0026】また、アプリケーション・プログラムのプ
ログラム構造を記述する手段としてデータ項目の参照・
更新関係を登録してなるデータフローテーブルを採用し
たことにより、プログラム解析時に処理の流れをデータ
フロー解析する場合に、データ項目名の参照または更新
関係を追跡することが容易にでき、かつ、データ項目名
に着目して該当する命令文を検索することが容易にでき
るという効果がある。
As a means for describing the program structure of an application program, reference to data items
By adopting a data flow table in which update relationships are registered, it is easy to refer to data item names or track update relationships when analyzing the flow of processing during program analysis, and There is an effect that it is possible to easily search for a corresponding statement by paying attention to the item name.

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

【図1】本発明の一実施例にかかるCOBOLプログラ
ムのデータ構造展開方式の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing a configuration of a data structure expansion method of a COBOL program according to an embodiment of the present invention.

【図2】図1のデータ構造展開方式の処理の流れを示す
フローチャートである。
FIG. 2 is a flowchart showing the flow of processing of the data structure expansion method of FIG.

【図3】図1のデータ項目解析部の機能を示す機能ブロ
ック図である。
FIG. 3 is a functional block diagram illustrating functions of a data item analysis unit in FIG. 1;

【図4】図3のデータ項目解析部の処理の流れを示すフ
ローチャートである。
FIG. 4 is a flowchart showing a flow of processing of a data item analysis unit in FIG. 3;

【図5】図1のデータフローテーブル作成部の機能を示
す機能ブロック図である。
FIG. 5 is a functional block diagram illustrating functions of a data flow table creation unit of FIG. 1;

【図6】図5のデータフローテーブル作成部の処理の流
れを示すフローチャートである。
FIG. 6 is a flowchart showing a flow of processing of a data flow table creation unit of FIG. 5;

【図7】データフローテーブルの例を示す図である。FIG. 7 is a diagram illustrating an example of a data flow table.

【図8】COBOL言語で記述されたアプリケーション
・プログラムのソースプログラムの例を示す図である。
FIG. 8 is a diagram showing an example of a source program of an application program described in the COBOL language.

【符号の説明】[Explanation of symbols]

1 字句解析部 2 構文解析部 3 データ構造解析部 4 データフローテーブル作成部 10 データフローテーブル 11 データテーブル 12 検索テーブル DESCRIPTION OF SYMBOLS 1 Lexical analysis part 2 Syntax analysis part 3 Data structure analysis part 4 Data flow table creation part 10 Data flow table 11 Data table 12 Search table

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 「情報処理学会研究報告」 VOL. 93,NO.4 (1993−1−19) (93 −IS−42−11) 「情報処理学会研究報告」 VOL. 92,NO.79 (1992−9) (92−S E−87−1) (58)調査した分野(Int.Cl.6,DB名) G06F 9/06──────────────────────────────────────────────────続 き Continued on the front page (56) References “IPSJ Research Report” Vol. 93, NO. 4 (1993-1-19) (93-IS-42-11) "Information Processing Society of Japan" Vol. 92, NO. 79 (1992-9) (92-SE-87-1) (58) Field surveyed (Int. Cl. 6 , DB name) G06F 9/06

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 COBOL言語で記述されたアプリケー
ション・プログラムのソースプログラムをデータ構造に
基づいて展開するCOBOLプログラムのデータ構造展
開方式において、 上記COBOL言語で記述されたアプリケーション・プ
ログラムのソースプログラムを字句に分解する字句解析
部と、 上記字句解析部の字句解析処理で得られた字句の並びに
対して構文解析をする構文解析部と、 上記構文解析部の構文解析処理の結果から、上記アプリ
ケーション・プログラム中の命令の内容を定義した命令
定義部分を対象として、該命令定義部分内の命令文中に
おけるデータ項目が参照データ項目及び更新データ項目
に該当するか否かを判定し、参照データ項目あるいは更
新データ項目に該当する場合に、命令文における参照デ
ータ項目及び更新データ項目の有無とこれらのデータ項
目を有する各命令文のアプリケーション・プログラム中
での物理的な出現位置を示す定義位置からなるデータ項
目情報に上記データ項目の情報を加えることによりデー
タ項目の命令文中での参照及び更新関係を解析するデー
タ項目解析部と、 上記データ項目解析部の解析処理で得られる情報に基づ
いて、上記命令文におけるデータ項目名の参照及び更新
関係を登録してなるデータフローテーブルを作成するデ
ータフローテーブル作成部とからなることを特徴とする
COBOLプログラムのデータ構造展開方式。
1. A data structure development method for a COBOL program which expands a source program of an application program described in a COBOL language based on a data structure, wherein a source program of the application program described in the COBOL language is lexically expressed. A lexical analysis unit to be decomposed; a lexical analysis unit that parses a sequence of lexical characters obtained by the lexical analysis processing of the lexical analysis unit; and a lexical analysis result of the lexical analysis unit. Instruction that defines the contents of the instruction
For the definition part , the data items in the statement in the instruction definition part are a reference data item and an update data item.
Judge whether it corresponds to the reference data item or the update data item .
Data items and update data items, and these data items
In the application program of each statement having an eye
Term consisting of defined positions that indicate physical appearance positions in the
A data item analysis unit for analyzing the reference and update relationship in the command sentence of the data item by adding the information of the data item to the eye information; and the instruction based on the information obtained by the analysis processing of the data item analysis unit. A data structure development method for a COBOL program, comprising: a data flow table creation unit for creating a data flow table in which a reference to a data item name in a statement and an update relationship are registered.
【請求項2】 データフローテーブルが、アプリケーシ
ョン・プログラム中の命令文によるデータ項目名の参照
または更新関係を示すと共に該命令文のアプリケーショ
ン・プログラム中での物理的な出現位置を示す定義位置
を登録してなるデータテーブルと、該データテーブルに
登録されたデータ項目の該データテーブルにおける登録
位置を示す参照ポインタを登録してなる検索テーブルと
からなることを特徴とする請求項1に記載するCOBO
Lプログラムのデータ構造展開方式。
2. A data flow table showing a reference or update relationship of a data item name by a statement in an application program and an application of the statement.
A data table in which a defined position indicating a physical appearance position in a program and a reference pointer indicating a registered position in the data table of a data item registered in the data table are registered. 2. The COBO according to claim 1, comprising: a search table comprising:
Data structure expansion method for L programs.
JP5044579A 1993-02-09 1993-02-09 Data structure expansion method for COBOL programs Expired - Lifetime JP2764782B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5044579A JP2764782B2 (en) 1993-02-09 1993-02-09 Data structure expansion method for COBOL programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5044579A JP2764782B2 (en) 1993-02-09 1993-02-09 Data structure expansion method for COBOL programs

Publications (2)

Publication Number Publication Date
JPH06236263A JPH06236263A (en) 1994-08-23
JP2764782B2 true JP2764782B2 (en) 1998-06-11

Family

ID=12695416

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5044579A Expired - Lifetime JP2764782B2 (en) 1993-02-09 1993-02-09 Data structure expansion method for COBOL programs

Country Status (1)

Country Link
JP (1) JP2764782B2 (en)

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
「情報処理学会研究報告」 VOL.92,NO.79 (1992−9) (92−SE−87−1)
「情報処理学会研究報告」 VOL.93,NO.4 (1993−1−19) (93−IS−42−11)

Also Published As

Publication number Publication date
JPH06236263A (en) 1994-08-23

Similar Documents

Publication Publication Date Title
US5758160A (en) Method and apparatus for building a software program using dependencies derived from software component interfaces
Wilde et al. A comparison of methods for locating features in legacy software
US8719786B2 (en) Method for performing conditionalized N-way merging of source code
CN109710220B (en) Relational database query method, relational database query device, relational database query equipment and storage medium
US6240546B1 (en) Identifying date fields for runtime year 2000 system solution process, method and article of manufacture
JP2005529384A5 (en)
JPH0540616A (en) Method for generating program specifications
JP2764782B2 (en) Data structure expansion method for COBOL programs
JP2807854B2 (en) Data structure expansion method for COBOL programs
JP2722040B2 (en) Separation of procedural language program components
JPH09288580A (en) Device and method for optimizing source program
JP2000181691A (en) Program structure analysis system
JP3419483B2 (en) Natural language processing apparatus and method
JPH04148336A (en) Fortran program grammar analyzing system
JPH06231181A (en) Distributed database control system
JPH0793144A (en) Program analyzer
JPH07168711A (en) Program managing method
JP2797749B2 (en) File destruction pre-check mechanism
JPH03282935A (en) Compile processor and compile processing system
JPH0690669B2 (en) Character string manipulation instruction compilation processing method
JP3034527B2 (en) Editor device
Dempsey Using an APL macroprocessor to implement generalized software systems
JPH0795273B2 (en) Partial expansion processing method of sum calculation in compiler
JP2001125779A (en) Device and method for managing constitution relation of program described in object oriented programming language and storage medium
JPH04281527A (en) Software specification preparation and evaluation supporting system