JPH0895768A - Automatic program generation method using data item parts - Google Patents

Automatic program generation method using data item parts

Info

Publication number
JPH0895768A
JPH0895768A JP6226182A JP22618294A JPH0895768A JP H0895768 A JPH0895768 A JP H0895768A JP 6226182 A JP6226182 A JP 6226182A JP 22618294 A JP22618294 A JP 22618294A JP H0895768 A JPH0895768 A JP H0895768A
Authority
JP
Japan
Prior art keywords
data
processing
data item
library
definition
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
JP6226182A
Other languages
Japanese (ja)
Inventor
Norito Suganuma
憲人 菅沼
Yosuke Morioka
洋介 森岡
Yukari Furuhata
由香理 降旗
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 JP6226182A priority Critical patent/JPH0895768A/en
Publication of JPH0895768A publication Critical patent/JPH0895768A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

(57)【要約】 【目的】 外部仕様の定義作業時にデータ項目の処理仕
様を同時に定義可能にし、し、プログラム開発を効率良
く行えるようにする。 【構成】 画面や帳票などの外部仕様の属性およびレイ
アウト定義する定義作業時に、データ名称を定義させ、
そのデータ名称に同義の項目単位クラスを検索し、その
項目単位クラスに定義されている手続き情報を表示画面
に表示し、その表示された手続き情報の中でユーザが必
要とする手続き情報を選択させ、その選択された手続き
情報と外部仕様情報とを1組にして外部仕様定義ライブ
ラリに格納し、その外部仕様定義ライブラリに格納され
た手続き情報と前記外部仕様情報とに基づき入出力デー
タの画面、帳票等に対する処理プログラムを生成する。
(57) [Summary] [Purpose] It is possible to define processing specifications of data items at the same time when defining external specifications, and to enable efficient program development. [Structure] Define data names during definition work to define attributes and layout of external specifications such as screens and forms,
Search the item unit class that has the same meaning as the data name, display the procedure information defined in the item unit class on the display screen, and select the procedure information that the user needs from the displayed procedure information. A screen of input / output data based on the procedure information stored in the external specification definition library and the external specification information stored in the external specification definition library as a set of the selected procedure information and external specification information. A processing program for a form etc. is generated.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、計算機を利用するシス
テムにおいて、データ項目処理を扱う業務アプリケーシ
ョンに対して、項目単位のデータ項目部品を用いてデー
タ項目処理を行う処理プログラムを自動生成する方法に
関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for automatically generating a processing program for performing data item processing using a data item component in item units for a business application that handles data item processing in a computer-using system. It is about.

【0002】[0002]

【従来の技術】ソフトウェアの生産性を向上するための
有効な方法の一つに、既存のソフトウェアを再利用して
新規ソフトウェアを開発する方法がある。例えば、ソフ
トウェアをその機能に着目して標準サブルーチン等に細
分化することで部品化したうえ、これらの部品とプログ
ラムとの対応付け定義することにより新たなプログラム
を生成する方法である。
2. Description of the Related Art One of effective methods for improving software productivity is a method of reusing existing software to develop new software. For example, there is a method in which software is divided into standard subroutines or the like by focusing on its function to be made into parts, and then a new program is generated by defining the correspondence between these parts and the program.

【0003】しかし、この方法にあっては、ソフトウェ
アの部品化をどのような観点でどのレベルまで行うかの
明確な基準を設けることが難しく、設計者によってまち
まちな分割方法で部品化されることが多いため、ソフト
ウェアの標準化を徹底することができないという問題が
あった。
However, in this method, it is difficult to establish a clear standard from what point of view and to what level the software is divided into parts, and the designer divides the parts into various parts by various division methods. However, there was a problem that it was not possible to thoroughly standardize software.

【0004】この問題を解決するひとつの方法として、
システムで扱うデータ項目ひとつひとつの処理に着目
し、これを処理単位として部品化を行う方法がある。
As one method for solving this problem,
There is a method of paying attention to the processing of each data item handled by the system, and using this as a processing unit to create a component.

【0005】この方法によれば、設計者や適用業務の特
質に依存しない一定の基準で部品化を行うことができ、
既存ソフトウェアの再利用を容易にすることができる。
According to this method, it is possible to carry out componentization based on a fixed standard that does not depend on the characteristics of the designer or the application.
Reuse of existing software can be facilitated.

【0006】また、業務プログラムとソフトウェア部品
との関連を設計者が改めて定義することなしに、データ
項目の名称を基に該当プログラムに必要なソフトウェア
部品を選択してプログラムを自動生成することが可能で
ある。
Further, it is possible to automatically generate a program by selecting a software component required for the program based on the name of the data item without the designer having to redefine the relationship between the business program and the software component. Is.

【0007】なお、この種の技術として関連するものに
は、例えば特開平05−108319号(データ中心型
ソフトウェア部品によるプログラム自動生成方式)等が
挙げられる。
As a technique related to this type, there is, for example, Japanese Patent Laid-Open No. 05-108319 (a program automatic generation system using a data-centric software component).

【0008】[0008]

【発明が解決しようとする課題】しかし、上述したデー
タ項目を処理単位として部品化を行う方法にあっては、
データの入出力処理仕様をデータ項目辞書と呼ばれるフ
ァイルに定義記述するが、画面・帳票定義などの各外部
仕様の定義と入出力処理仕様とを別個に定義しているた
め、定義したデータ項目の入出力処理仕様を、画面・帳
票定義などの各外部仕様の定義作業時に確認することが
できない。
However, in the above-described method of dividing into parts using the data items as processing units,
The data input / output processing specifications are defined and described in a file called a data item dictionary, but since the definition of each external specification such as screen / form definition and the input / output processing specifications are defined separately, the defined data item I / O processing specifications cannot be checked when defining external specifications such as screen / form definition.

【0009】このため、定義したフィールドデータに対
して期待通りの入出力処理が実現されるかどうかを確認
しながら、外部仕様の定義作業を進めることができず、
定義内容の不備が外部仕様の定義作業終了後に発見され
た場合は、外部仕様の定義段階に戻って外部仕様の修正
作業を行わなければならず、戻り作業が多発してプログ
ラム開発を効率良く行えないという問題があった。
Therefore, it is impossible to proceed with the definition work of the external specifications while confirming whether the input / output processing as expected is realized for the defined field data.
If deficiencies in the definition are found after the definition work of the external specification is completed, it is necessary to return to the definition stage of the external specification to correct the external specification, and the return work occurs frequently to enable efficient program development. There was a problem of not having.

【0010】また、データ項目辞書では、ある1つのデ
ータ項目が複数の画面や帳票に使用されることを可能に
するため、画面や帳票上のデータ名を複数登録すること
ができ、このデータ名を変えることにより、1データ項
目について複数のデータ項目の処理仕様が定義可能であ
る。従って、複数のデータ名が存在することになる。
Further, in the data item dictionary, a certain data item can be used for a plurality of screens and forms, so that a plurality of data names on the screens and forms can be registered. By changing the, the processing specifications of a plurality of data items can be defined for one data item. Therefore, there are a plurality of data names.

【0011】しかし、画面や帳票などの外部仕様間でデ
ータ項目の処理仕様を統一しようとする場合、他の外部
仕様定義の内容を作業者自らが調べ上げてデータ項目処
理仕様を合わせるしかなく、他の外部仕様定義の内容の
調査時間がかかるうえ、調査が不十分な場合は各外部仕
様の定義内容が不統一になりがちであるという問題があ
った。
However, when trying to unify the processing specifications of data items among external specifications such as screens and forms, the worker must check the contents of other external specification definitions and match the data item processing specifications. There is a problem that it takes time to investigate the contents of other external specification definitions, and if the investigation is insufficient, the definition contents of each external specification tend to be inconsistent.

【0012】本発明の第1の目的は、画面・帳票等の入
出力データに対する入出力処理仕様を確認しながら画
面、帳票等の外部仕様を同時に定義可能にし、定義内容
修正による戻り作業の発生を解消し、データ項目部品に
よるプログラムを効率良く生成することができるデータ
項目部品によるプログラム自動生成方法を提供すること
である。
A first object of the present invention is to enable definition of external specifications such as screens and forms at the same time while confirming input / output processing specifications for input / output data such as screens / forms, and return work due to definition content correction. It is an object of the present invention to provide an automatic program generation method using a data item component that can efficiently generate a program using a data item component.

【0013】本発明の第2の目的は、画面・帳票などの
外部仕様間でデータ項目の処理仕様を他の外部仕様を調
査することなく統一できるようにし、画面・帳票などの
外部仕様間で一貫性のあるプログラムを生成することが
できるデータ項目部品によるプログラム自動生成方法を
提供することである。
A second object of the present invention is to make it possible to unify processing specifications of data items between external specifications such as screens / forms without investigating other external specifications. An object of the present invention is to provide a program automatic generation method using data item parts capable of generating a consistent program.

【0014】本発明の第3の目的は、データ項目処理仕
様の修正に際し、同一データ項目の処理仕様を自動的に
統一し、生成されるプログラムの保守性を向上させるこ
とができるデータ項目部品によるプログラム自動生成方
法を提供することである。
A third object of the present invention is to provide a data item component capable of automatically unifying the processing specifications of the same data item when modifying the data item processing specifications and improving the maintainability of the generated program. It is to provide an automatic program generation method.

【0015】[0015]

【課題を解決するための手段】前記第1の目的を達成す
るため、本発明のデータ項目部品によるプログラム自動
生成方法は、業務アプリケーションで扱う入出力データ
に対して、データ項目単位に、そのデータ項目に関する
データ型及び該データ型のデータを処理するための少な
くとも一つ以上の手続き情報から成る項目単位クラスを
項目単位クラスライブラリに定義しておき、プログラム
生成対象の任意の業務で扱う入出力データの画面、帳
票、ファイル等の属性やレイアウト等を規定する外部仕
様情報の定義に際し、当該外部仕様情報と共に入出力デ
ータのデータ名称をユーザに入力させた後、そのデータ
名称に同義の項目単位クラスを前記項目単位クラスライ
ブラリから検索し、その項目単位クラスに定義されてい
る手続き情報を表示画面に表示し、表示された手続き情
報の中でユーザが必要とする手続き情報をユーザに選択
させ、その選択された手続き情報と前記外部仕様情報と
を1組にして外部仕様定義ライブラリに格納し、この外
部仕様定義ライブラリに格納された手続き情報と前記外
部仕様情報とに基づき前記任意の業務で扱う入出力デー
タの画面、帳票、ファイル等に対する処理プログラムを
生成することを特徴とする。
In order to achieve the first object, a method for automatically generating a program by a data item component of the present invention is a data item unit for input / output data handled by a business application. Input / output data handled in any business for which a program is generated by defining in the item unit class library an item unit class consisting of a data type related to the item and at least one or more procedure information for processing the data of the data type When defining the external specification information that defines the attributes and layout of the screen, form, file, etc., after the user inputs the data name of the input / output data together with the external specification information, the item unit class that is synonymous with the data name Is searched from the item unit class library, and the procedure information defined in the item unit class is displayed. Displayed on the screen, allows the user to select the procedure information required by the user from the displayed procedure information, and stores the selected procedure information and the external specification information as a set in the external specification definition library. It is characterized in that a processing program for a screen, a form, a file, etc. of input / output data handled in the arbitrary work is generated based on the procedure information stored in the external specification definition library and the external specification information.

【0016】また、前記第2の目的を達成するため、本
発明のデータ項目部品によるプログラム自動生成方法
は、業務アプリケーションで扱う入出力データに対し
て、データ項目単位に、そのデータ項目に関する処理仕
様をデータ項目仕様ライブラリに定義しておき、プログ
ラム生成対象の任意の業務で扱う入出力データの画面、
帳票、ファイル等の属性やレイアウト等を規定する外部
仕様情報の定義に際し、当該外部仕様情報と共に入出力
データのデータ名称をユーザに入力させた後、そのデー
タ名称に一致するデータ名称を持つデータ項目処理仕様
を前記データ項目仕様ライブラリから検索し、そのデー
タ項目処理仕様を表示画面に表示し、表示されたデータ
項目処理仕様がユーザが必要とする処理仕様に合致する
か否かをユーザに確認させ、合致する旨の確認操作に基
づき、表示されたデータ項目処理仕様と前記外部仕様情
報とを1組にして外部仕様定義ライブラリに格納し、こ
の外部仕様定義ライブラリに格納されたデータ項目処理
仕様と前記外部仕様情報とに基づき前記任意の業務で扱
う入出力データの画面、帳票、ファイル等に対する処理
プログラムを生成することを特徴とする。
In order to achieve the second object, the method for automatically generating a program using data item parts according to the present invention is, for input / output data handled by a business application, in data item units, processing specifications relating to the data item. Is defined in the data item specification library, and the screen of input / output data handled by any business for which a program is generated,
When defining external specification information that defines the attributes and layout of forms, files, etc., after the user inputs the data name of the input / output data together with the external specification information, a data item with a data name that matches the data name The processing specification is retrieved from the data item specification library, the data item processing specification is displayed on the display screen, and the user is asked to confirm whether the displayed data item processing specification matches the processing specification required by the user. , The data item processing specifications displayed and the external specification information are paired and stored in the external specification definition library, and the data item processing specifications stored in the external specification definition library are stored. Generate processing programs for screens, forms, files, etc. of input / output data handled by the arbitrary business based on the external specification information And wherein the Rukoto.

【0017】また、前記第2の目的を達成するため、本
発明のデータ項目部品によるプログラム自動生成方法
は、前記データ項目仕様ライブラリ内でのデータ項目処
理仕様の修正に対し、当該データ項目のデータ名称によ
って前記外部仕様定義ライブラリ内の外部仕様情報を検
索し、データ名称が一致する外部仕様情報内の該当する
データ項目処理仕様を修正することを特徴とする。
Further, in order to achieve the second object, the method for automatically generating a program by a data item component of the present invention is such that when the data item processing specification is corrected in the data item specification library, the data of the data item is corrected. The external specification information in the external specification definition library is searched by the name, and the corresponding data item processing specification in the external specification information having the same data name is corrected.

【0018】[0018]

【作用】本発明によれば、画面や帳票などの外部仕様の
属性およびレイアウト定義する定義作業時に、データ名
称を定義すると、そのデータ名称に同義(意味内容が合
致する)項目単位クラスを項目単位クラスライブラリか
ら検索し、その項目単位クラスに定義されている手続き
情報を表示画面に表示する。
According to the present invention, when a data name is defined at the time of definition work for defining attributes and layout of external specifications such as screens and forms, an item unit class synonymous with the data name (meaning content matches) is used as an item unit. Search from the class library and display the procedure information defined in the item unit class on the display screen.

【0019】これに対し、表示された手続き情報の中で
ユーザが必要とする手続き情報を選択すると、その選択
された手続き情報と前記外部仕様情報とを1組にして外
部仕様定義ライブラリに格納する。この後は、外部仕様
定義ライブラリに格納された手続き情報と前記外部仕様
情報とに基づき前記任意の業務で扱う入出力データの画
面、帳票、ファイル等に対する処理プログラムを生成す
る。
On the other hand, when the procedure information required by the user is selected from the displayed procedure information, the selected procedure information and the external specification information are paired and stored in the external specification definition library. . Thereafter, a processing program for a screen, a form, a file, etc. of input / output data handled in the arbitrary work is generated based on the procedure information stored in the external specification definition library and the external specification information.

【0020】これにより、外部仕様定義作業及びデータ
項目処理仕様定義作業と別々に行っていた作業を、同時
に行うことが可能となる。このため、実際にデータ項目
処理を行うクラスライブラリに定義された内容を参照し
ながら、データ項目処理仕様を定義することができるた
め、定義内容修正に起因する戻り作業がなくなるうえ、
生成した処理プログラムのデータ項目処理の信頼性が保
証され、プログラム開発効率を向上させることができ
る。また、別ライブラリに分けて格納していたデータ項
目の外部仕様定義情報とデータ項目処理仕様とを、外部
仕様定義ライブラリに1つにまとめて格納することで、
各ライブラリ間の整合性を保つ手間が省け、効率良くプ
ログラム開発を行うことができる。
This makes it possible to simultaneously perform the external specification defining work and the data item processing specification defining work which have been separately performed. Therefore, since it is possible to define the data item processing specifications while referring to the contents defined in the class library that actually performs the data item processing, there is no return work due to modification of the definition contents, and
The reliability of the data item processing of the generated processing program is guaranteed, and the program development efficiency can be improved. In addition, by storing the external specification definition information of the data items and the data item processing specifications, which have been stored separately in another library, in one in the external specification definition library,
Eliminates the need to maintain consistency among libraries and enables efficient program development.

【0021】また、プログラム生成対象の任意の業務で
扱う入出力データの画面、帳票、ファイル等の属性やレ
イアウト等を規定する外部仕様情報の定義作業時に、入
出力データのデータ名称をユーザが入力すると、そのデ
ータ名称に一致するデータ名称を持つデータ項目処理仕
様がデータ項目仕様ライブラリから検索され、表示画面
に表示される。
Further, the user inputs the data name of the input / output data at the time of defining the external specification information that defines the attributes and layout of the input / output data screen, form, file, etc. handled by the arbitrary work for which the program is generated. Then, a data item processing specification having a data name that matches the data name is retrieved from the data item specification library and displayed on the display screen.

【0022】そこで、表示されたデータ項目処理仕様が
ユーザが必要とする処理仕様に合致する旨の確認操作を
行うと、表示されたデータ項目処理仕様と外部仕様情報
とが1組にして外部仕様定義ライブラリに格納される。
この後は、外部仕様定義ライブラリに格納されたデータ
項目処理仕様と前記外部仕様情報とに基づき前記任意の
業務で扱う入出力データの画面、帳票、ファイル等に対
する処理プログラムを生成する。
Therefore, when a confirmation operation is performed to the effect that the displayed data item processing specifications match the processing specifications required by the user, the displayed data item processing specifications and external specification information are combined into a set of external specifications. It is stored in the definition library.
Thereafter, a processing program for a screen, a form, a file, etc. of input / output data handled in the arbitrary work is generated based on the data item processing specifications stored in the external specification definition library and the external specification information.

【0023】これにより、同じデータ項目に対して以前
に定義したデータ項目処理仕様を他の外部仕様を調査す
ることなく利用できるため、外部仕様間のデータ項目処
理仕様を外部仕様の定義時に統一することができ、設計
仕様が統一したプログラム開発を行うことができる。
As a result, since the data item processing specifications previously defined for the same data item can be used without investigating other external specifications, the data item processing specifications among the external specifications are unified when the external specifications are defined. Therefore, it is possible to develop a program with unified design specifications.

【0024】また、データ項目処理仕様の変更が発生し
た場合、データ項目仕様ライブラリに対し修正を行う
と、外部仕様定義ライブラリのデータ名称で検索して外
部仕様定義ライブラリの修正箇所を特定し、修正処理を
自動的に行う。
When the data item processing specification is changed, if the data item specification library is modified, the data name of the external specification definition library is searched to identify the modified part of the external specification definition library and the modification is performed. Process automatically.

【0025】これにより、システム開発時に多発する仕
様変更に対し、データ項目処理仕様の修正作業を迅速か
つ容易に行うことが可能となり、生成されるプログラム
の保守を容易に行うことができる。
As a result, it becomes possible to quickly and easily correct the data item processing specifications in response to specification changes that frequently occur during system development, and it is possible to easily maintain the generated program.

【0026】[0026]

【実施例】以下、本発明の一実施例を図を用いて詳細に
説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described in detail below with reference to the drawings.

【0027】図1は、本発明を適用したプログラム自動
生成システムの一実施例を示すハードウエア構成図であ
り、この実施例のプログラム自動生成システム107は
CPU103を中心に、プログラム生成の実行を指令す
るための入力を行ったり、データ項目の処理仕様を定義
する際のデータ入力を行うための入力装置105と、検
索された項目単位クラスに定義されたメソッド名などを
表示するための表示装置104と、各種データを出力す
るプリンタ102が設けられている。
FIG. 1 is a hardware configuration diagram showing an embodiment of an automatic program generation system to which the present invention is applied. The automatic program generation system 107 of this embodiment mainly commands the CPU 103 to instruct execution of program generation. Input device 105 for performing data input and data input when defining the processing specification of the data item, and a display device 104 for displaying the method name defined in the retrieved item unit class. And a printer 102 for outputting various data.

【0028】CPU103には、さらに、プログラム生
成時に、その生成元となるソフトウエア部品および生成
後のソースプログラムを格納するための外部記憶装置1
06と、プログラムの生成実行中にプログラムやデータ
を格納するためのメモリ101とが接続されている。
The CPU 103 further includes an external storage device 1 for storing a software component which is a source of the program and a source program after the generation when the program is generated.
06 is connected to the memory 101 for storing programs and data during generation and execution of the programs.

【0029】図2は、本実施例の機能ブロック図であ
り、本発明の主要部である外部仕様定義ツール201お
よびプログラムジェネレータ202と、項目クラス単位
ライブラリ203、データ項目仕様ライブラリ204、
外部仕様定義ライブラリ205、標準パターンライブラ
リ206、原始文ライブラリ208の各ファイルから構
成される。
FIG. 2 is a functional block diagram of this embodiment. The external specification definition tool 201 and the program generator 202 which are the main parts of the present invention, the item class unit library 203, the data item specification library 204,
The external specification definition library 205, the standard pattern library 206, and the source text library 208 are included.

【0030】このうち、項目クラス単位ライブラリ20
3、データ項目仕様ライブラリ204、外部仕様定義ラ
イブラリ205、標準パターンライブラリ206、原始
文ライブラリ208の各ファイルは、外部記憶装置10
6に格納される。
Of these, the item class unit library 20
3, the data item specification library 204, the external specification definition library 205, the standard pattern library 206, and the source text library 208 are stored in the external storage device 10.
6 is stored.

【0031】本実施例は、図2に示している外部仕様定
義ツール201が有するデータ項目処理仕様定義機能2
09、データ項目処理仕様変換機能210及び既存技術
であるプログラムジェネレータ202の3つの機能によ
り実現される。
In this embodiment, the data item processing specification defining function 2 included in the external specification defining tool 201 shown in FIG.
09, a data item processing specification conversion function 210, and a program generator 202 which is an existing technology.

【0032】外部仕様定義ツール201が有するデータ
項目処理仕様定義機能209は、画面や帳票などの外部
仕様に定義されたレイアウト情報が入力装置105から
入力された時、その入力された情報を基に、外部記憶装
置106上にあるデータ項目仕様ライブラリ204及び
項目単位クラスライブラリ203に格納されたデータ項
目の処理仕様を検索し、その結果を表示装置104上に
表示し、その中からプログラム設計者(ユーザ)が必要
とするものをユーザに選択させることにより、データ項
目の処理仕様を定義し、外部仕様定義ライブラリ205
及びデータ項目仕様ライブラリ204に格納するもので
ある。
The data item processing specification definition function 209 provided in the external specification definition tool 201, when the layout information defined in the external specification such as a screen or a form is input from the input device 105, based on the input information. , The processing specifications of the data items stored in the data item specification library 204 and the item unit class library 203 on the external storage device 106 are searched, and the results are displayed on the display device 104, from which the program designer ( The external specification definition library 205 defines the processing specifications of the data items by allowing the user to select what the user needs.
And the data item specification library 204.

【0033】また、外部仕様定義ツール201が有する
データ項目処理仕様変更機能210は、外部記憶装置1
06上にあるデータ項目仕様ライブラリ204のデータ
項目処理仕様を入力装置105から入力し、その入力さ
れた情報をデータ項目単位に編集して表示装置104上
に表示し、入力装置105からデータ項目仕様ライブラ
リ204の修正が行われた時に、外部記憶装置106上
にある外部仕様定義ライブラリ205の内容を修正して
格納するものである。
The data item processing specification change function 210 of the external specification definition tool 201 is used in the external storage device 1.
The data item processing specifications of the data item specification library 204 on 06 are input from the input device 105, the input information is edited in data item units and displayed on the display device 104, and the data item specifications are input from the input device 105. When the library 204 is modified, the contents of the external specification definition library 205 on the external storage device 106 are modified and stored.

【0034】プログラムジェネレータ202は、外部記
憶装置106上にある項目単位クラスライブラリ20
3、外部仕様定義ライブラリ205、標準パターンライ
ブラリ206内の情報を入力し、処理プログラム207
を生成して外部記憶装置106上にある原始文ライブラ
リ208に格納するものである。
The program generator 202 is an item unit class library 20 on the external storage device 106.
3, the information in the external specification definition library 205, the standard pattern library 206 is input, and the processing program 207 is entered.
Is generated and stored in the source text library 208 on the external storage device 106.

【0035】本実施例では、外部仕様定義ツール201
を用いて画面や帳票などの外部仕様のレイアウト定義及
びデータ項目処理の定義を行う方法と、生成した処理プ
ログラム207が項目単位クラスライブラリ203に記
述された処理を実現する様子、および外部仕様定義ツー
ル201を用いてデータ項目の処理仕様変更に伴い発生
するデータ項目処理仕様の修正作業を一括して行う方法
と、既存技術であるプログラムジェネレータ202によ
り外部仕様定義ライブラリ201に格納された情報から
処理プログラム207を生成する方法について、’Ob
ject−Oriented Extensions
to COBOL X3J4.1/R3−0043’の
仕様に基づいたプログラム生成例を用いて詳細に説明す
る。
In this embodiment, the external specification definition tool 201
A layout definition of external specifications such as screens and forms and definition of data item processing using the above, a state in which the generated processing program 207 realizes the processing described in the item unit class library 203, and an external specification definition tool A method of collectively performing the modification work of the data item processing specifications that occurs due to the modification of the data item processing specifications by using 201, and the processing program based on the information stored in the external specification definition library 201 by the program generator 202 which is the existing technology. About the method to generate 207, 'Ob
eject-Oriented Extensions
A detailed description will be given using a program generation example based on the specification of to COBOL X3J4.1 / R3-0043 '.

【0036】図3は、本発明の適用対象となる業務プロ
グラムの一例を示す概略図である。
FIG. 3 is a schematic diagram showing an example of a business program to which the present invention is applied.

【0037】この例の「給与リスト作成」という業務プ
ログラム302は、ファイル「KYFIL」301から
図示のようなフィールドデータから成る給与レコード3
05のデータを読み込み、データの妥当性のチェックを
行って、不当なデータは出力帳票「KYERR」304
に図示のようなエラーリスト307として、正常データ
は出力帳票「KYLST」303に図示のような給与リ
スト306といてそれぞれ編集して出力するというプロ
グラムである。以後、このプログラム例を対象として本
実施例の説明を行う。
A business program 302 called "salary list creation" in this example is a salary record 3 composed of field data as shown in the figure from a file "KYFIL" 301.
05 data is read, the validity of the data is checked, and invalid data is output form “KYERR” 304
The error list 307 as shown in the figure is a program in which the normal data is edited and outputted as the salary list 306 as shown in the output form "KYLST" 303. Hereinafter, this embodiment will be described with reference to this program example.

【0038】尚、本実施例ではバッチ処理のプログラム
を例としているが、帳票の他に画面やデータベースを使
用するシステムにおいては画面定義部品、データベース
定義部品を同様に定義でき、これについても本発明に含
まれる。
In the present embodiment, the batch processing program is taken as an example, but in a system using screens and databases other than forms, screen definition parts and database definition parts can be defined in the same manner. include.

【0039】初めに、生成した処理プログラム207が
項目単位クラスライブラリ203に記述されたデータ項
目の処理を実現する様子を説明する。
First, how the generated processing program 207 realizes the processing of the data item described in the item unit class library 203 will be described.

【0040】まず、図4および図5を用いて項目単位ク
ラスライブラリ203に存在する項目単位クラス401
の説明を行う。
First, the item unit class 401 existing in the item unit class library 203 will be described with reference to FIGS. 4 and 5.
Will be explained.

【0041】図4は、項目単位クラスライブラリ203
に格納された項目単位クラス401の構成を示すもので
あり、項目単位クラスライブラリ203には、年月日ク
ラス、氏名クラス、住所クラスといったデータ項目単位
に独立した項目単位クラス401が複数存在し、プログ
ラム言語を用いて記述されている。
FIG. 4 shows the item unit class library 203.
Shows the configuration of the item unit class 401 stored in the item unit class 401. In the item unit class library 203, there are a plurality of independent item unit classes 401 for each data item unit such as a date class, a name class, and an address class. It is written using a programming language.

【0042】項目単位クラス401では、その項目に関
する情報の形式をデータ部402に、そのデータ部40
2の情報にアクセスしてデータ項目の処理を行う処理形
式を手続き部403にメソッドとして定義する。
In the item unit class 401, the format of information about the item is stored in the data section 402 and the data section 40.
A processing format for accessing information 2 and processing a data item is defined in the procedure unit 403 as a method.

【0043】データ部402に格納される情報は、項目
データ404である。項目データ404とは、各クラス
のデータ項目の処理対象となるデータを表し、クラスが
扱うデータ項目によっては複数存在する場合もある。
The information stored in the data section 402 is item data 404. The item data 404 represents the data to be processed by the data item of each class, and there may be a plurality of items depending on the data item handled by the class.

【0044】手続き部403に定義されるメソッドに
は、チェック処理405、入力編集処理406、出力編
集処理407の3種類がある。チェック処理405は入
力されたデータの妥当性を調べるための処理であり、入
力編集処理406は入力されたデータの形式をファイル
やデータベースなどに格納する形式に変換する処理であ
り、出力編集処理407はファイルやデータベースに格
納されているデータを出力したい形式に変換する処理を
表す。
There are three types of methods defined in the procedure unit 403: a check process 405, an input edit process 406, and an output edit process 407. The check processing 405 is processing for checking the validity of the input data, the input editing processing 406 is processing for converting the format of the input data into a format to be stored in a file or a database, and the output editing processing 407. Represents the process of converting the data stored in a file or database into the format for output.

【0045】図5は、年月日クラス401で扱う項目デ
ータ404の例を示している。本例では、年月日クラス
401より生成された実行体である「入社年月日」オブ
ジェクト502の項目データ404として「19940
208」514が設定されているが、この例は「西暦1
994年2月8日」を表している。
FIG. 5 shows an example of the item data 404 handled by the date class 401. In this example, “19940” is set as the item data 404 of the “hire date” object 502 which is the execution body generated from the date class 401.
"208" 514 is set, but in this example, "AD 1
“February 8, 994”.

【0046】入力データ「H6/2/8」518が項目
データ404に格納されるまでの流れと、項目データを
編集して出力形式データ「1994年2月8日」517
が処理プログラム207に渡されるまでの処理の流れを
次に説明する。
The flow until the input data "H6 / 2/8" 518 is stored in the item data 404 and the item data is edited and output format data "February 8, 1994" 517
Next, the flow of processing until is passed to the processing program 207 will be described.

【0047】まず、入力画面のデータフィールドに入力
されたデータ「H6/2/8」が処理プログラム207
に渡されると、処理プログラム207は、外部仕様に定
義されたデータ項目のデータ項目処理を実行するための
「入社年月日」オブジェクト502を生成する命令50
7を発行する。
First, the data “H6 / 2/8” input in the data field of the input screen is processed by the processing program 207.
When passed to the processing program 207, the processing program 207 generates an instruction 50 for generating a “hire date” object 502 for executing the data item processing of the data item defined in the external specification.
Issue 7.

【0048】次に、処理プログラム207は生成された
「入社年月日」オブジェクト502に対し、チェック処
理405を行うメッセージ送信文506を発行する。メ
ッセージを受け取った「入社年月日」オブジェクト50
2は、受け取った入力データ「H6/2/8」518の
チェック処理405としてチェックメソッド(1)51
1を行い、チェックした結果として「NOERR」とい
うリターンコード515を処理プログラム207に返
す。
Next, the processing program 207 issues a message transmission statement 506 for performing the check processing 405 to the generated "hire date" object 502. "Completion date" object 50 that received the message
2 is the check method (1) 51 as the check processing 405 of the received input data “H6 / 2/8” 518.
1 is performed, and as a result of the check, a return code 515 “NOERR” is returned to the processing program 207.

【0049】次に、処理プログラム207は、「入社年
月日」オブジェクト502に対し、入力編集処理406
を行うメッセージ送信文506を発行する。このメッセ
ージを受け取った「入社年月日」オブジェクト502
は、入力編集メソッド(1)512を起動し、入力デー
タ「H6/2/8」518の形式を、項目データ404
の格納形式に変換して項目データ404に格納する処理
504を行い、また、ファイルやデータベースの格納形
式に変換した格納形式データ「19940208」51
6を処理プログラム207に返す。
Next, the processing program 207 inputs the input edit processing 406 for the "hire date" object 502.
A message transmission statement 506 is issued. "Completion date" object 502 that received this message
Activates the input editing method (1) 512 and sets the format of the input data “H6 / 2/8” 518 to the item data 404.
Processing 504 of converting to the storage format of the item data 404 and storing it in the item data 404, and the storage format data “19940208” 51 converted to the storage format of the file or database.
6 is returned to the processing program 207.

【0050】また、出力形式データの編集処理では、ま
ず、処理プログラム207が「入社年月日」オブジェク
ト502に対し出力編集を行うメッセージ送信文506
を発行する。
In the edit processing of the output format data, first, the processing program 207 outputs and edits a message to the "hire date" object 502.
To issue.

【0051】このメッセージを受け取った「入社年月
日」オブジェクト502は、出力編集メソッド(1)5
13を起動し、項目データ404に格納されているデー
タ「19940208」514を出力形式データ「19
94年2月8日」517に変換し、処理プログラム20
7に返す。
The "commissioning date" object 502 that received this message is output editing method (1) 5
13 is started, and the data “19940208” 514 stored in the item data 404 is output as the output format data “19.
February 8, 1994 "converted to 517, processing program 20
Return to 7.

【0052】次に、外部仕様定義ツール201を用いて
外部仕様を定義する手順について説明する。
Next, the procedure for defining external specifications using the external specification definition tool 201 will be described.

【0053】手順の説明に先立ち、外部仕様定義ツール
201が利用する外部仕様定義ライブラリ205及びデ
ータ項目仕様ライブラリ204について詳細に説明す
る。
Prior to the description of the procedure, the external specification definition library 205 and the data item specification library 204 used by the external specification definition tool 201 will be described in detail.

【0054】外部仕様定義ライブラリ205は、画面、
帳票、ファイルなどの情報を定義した画面定義部品、帳
票定義部品、ファイル定義部品及びレコード定義部品な
どを格納するものである。本例では、プログラム生成例
で使用する帳票定義部品、ファイル定義部品、レコード
定義部品について説明する。
The external specification definition library 205 has a screen,
It stores screen definition parts, form definition parts, file definition parts, record definition parts, etc. that define information such as forms and files. In this example, form definition parts, file definition parts, and record definition parts used in the program generation example will be described.

【0055】まず、図6を用いて、帳票定義部品につい
て説明する。この図6に示す部品は、図3における「給
与リスト」306の帳票についての情報を定義したもの
である。
First, the form defining parts will be described with reference to FIG. The parts shown in FIG. 6 define information about the form of the “salary list” 306 in FIG.

【0056】帳票定義部品には、処理プログラム定義部
601と入力媒体定義部602と帳票属性定義部603
と、帳票レイアウト定義部604とがある。
The form definition part includes a processing program definition part 601, an input medium definition part 602, and a form attribute definition part 603.
And a form layout definition unit 604.

【0057】処理プログラム定義部601には、プログ
ラム記号名605として「PROG01」、標準パター
ン名606として「CHK01」が定義され、入出力媒
体定義部602には、定義部品名607として「KYF
IL」,「KYERR」、入出力区分608として(以
下、I/O区分とよぶ)「I」,「O」、区分609と
して「FILE」,「ERR」、論理装置名610とし
て「SYS010」,「SYSERR」、接頭語611
として「IN−」,「ER−」が定義されている。
"PROG01" is defined as the program symbol name 605 and "CHK01" is defined as the standard pattern name 606 in the processing program definition unit 601, and "KYF" is defined as the defined component name 607 in the input / output medium definition unit 602.
IL ”,“ KYERR ”, input / output section 608 (hereinafter referred to as I / O section)“ I ”,“ O ”, section 609“ FILE ”,“ ERR ”, logical unit name 610“ SYS010 ”, "SYSERR", prefix 611
"IN-" and "ER-" are defined as.

【0058】また、帳票属性定義部603には、帳票定
義部品名612として「KYLST」、帳票名613と
して「給与リスト」、帳票記号名614として「KYU
YO−LIST」、レコード長615として「25
5」、印刷行数616として「50」、使用区分617
として「−」が定義されている。
In the form attribute definition unit 603, the form definition component name 612 is “KYLST”, the form name 613 is “salary list”, and the form symbol name 614 is “KYU”.
YO-LIST ”, record length 615 is“ 25
5 "," 50 "as the number of print lines 616, and use category 617
"-" Is defined as.

【0059】また、帳票レイアウト定義部604には、
帳票上の全データ項目について、帳票の上にデータ項目
を印刷するときの開始行618、開始列619、明細行
の反復数620、データ項目名621、属性622、出
力編集処理623、クラス名624が定義されている。
Further, the form layout definition section 604 has
For all data items on the form, the start line 618, the start column 619, the number of repetitions 620 of the detail line, the data item name 621, the attribute 622, the output editing process 623, the class name 624 when printing the data item on the form. Is defined.

【0060】ここで、区分609とは、各標準パターン
において、ある特別な用途で使用するファイルであるこ
とを示す区分である。本例では、入出力媒体「KYER
R」の使用区分を「ERR」と定義してあるが、これ
は、標準パターン「CHK01」において、チェック処
理で編集されるエラーコードやエラーメッセージの出力
先であることを示している。
Here, the section 609 is a section indicating that each standard pattern is a file used for a certain special purpose. In this example, the input / output medium “KYER
The usage classification of “R” is defined as “ERR”, which indicates that the standard code “CHK01” is the output destination of the error code or error message edited in the check process.

【0061】また、使用区分617は、定義されている
帳票自身がある特殊な用途で使用するファイルであるか
どうかを示している。
The use category 617 indicates whether or not the defined form itself is a file used for a special purpose.

【0062】図7は同じく図3における「エラーリス
ト」307に関する帳票定義部品であるが、内容は図6
と同様であるのでその説明は省略する。
FIG. 7 is a form definition component related to the “error list” 307 in FIG. 3 as well.
The description is omitted because it is the same as the above.

【0063】次に、図8を用いて、ファイル定義部品お
よびレコード定義部品について説明する。
Next, the file definition parts and the record definition parts will be described with reference to FIG.

【0064】この図8に示す部品は、図3のプログラム
例におけるファイル301および給与レコード305の
フォーマットを定義したものである。
The parts shown in FIG. 8 define the formats of the file 301 and the salary record 305 in the program example of FIG.

【0065】ファイル定義部品701には、ファイル定
義部品名702としてが「KYFIL」、ファイル名7
03として「給与ファイル」、プログラム内で使用する
ファイル記号名704として「KYUYO−FIL
E」、このファイルに対するレコードフォーマットを定
義したレコード定義部品名705として「KYRE
C」、またファイルの属性を示すレコード長706とし
て「20」、ブロック長707として「3120」、レ
コード形式708として「FB」が定義されている。
In the file definition component 701, the file definition component name 702 is "KYFIL", and the file name 7
"Salary file" as 03, and "KYUYO-FIL" as the file symbol name 704 used in the program
"E", "KYRE" as the record definition component name 705 that defines the record format for this file
In addition, “20” is defined as the record length 706 indicating the attribute of the file, “3120” as the block length 707, and “FB” as the record format 708.

【0066】一方、図8(b)に示すレコード定義部品
は、レコード属性定義部709とレコードレイアウト定
義部712とから構成され、レコード属性定義部709
にはレコード定義部品名710として「KYREC」、
レコード名711として「給与レコード」が定義されて
いる。
On the other hand, the record definition part shown in FIG. 8B is composed of a record attribute definition section 709 and a record layout definition section 712, and the record attribute definition section 709.
"KYREC" as the record definition component name 710,
“Salary record” is defined as the record name 711.

【0067】一方、レコードレイアウト定義部712に
は、レベル番号713、データ項目名714、属性71
5、チェック処理716、入力編集処理717、クラス
名718が定義されている。
On the other hand, the record layout definition section 712 has a level number 713, a data item name 714, and an attribute 71.
5, check processing 716, input editing processing 717, and class name 718 are defined.

【0068】外部仕様定義ライブラリ205の外部仕様
定義情報は、以上のように構成されている。
The external specification definition information of the external specification definition library 205 is structured as described above.

【0069】次に、図9を用いてデータ項目仕様ライブ
ラリ204について説明する。
Next, the data item specification library 204 will be described with reference to FIG.

【0070】データ項目仕様ライブラリ204には、デ
ータ部402の名称801、定義クラス802、チェッ
クメソッド名803、入力編集メソッド名804、出力
編集メソッド名805が定義されている。
The data item specification library 204 defines a name 801, a definition class 802, a check method name 803, an input edit method name 804, and an output edit method name 805 of the data section 402.

【0071】本例では、データ名称801として「入社
年月日」、定義クラス802として「年月日」、チェッ
クメソッド名803として「実在日チェック」、入力編
集メソッド名803として「西暦変換」、出力編集メソ
ッド名804として「西暦編集」を定義していることを
示している。
In this example, the data name 801 is “date of entry”, the definition class 802 is “date”, the check method name 803 is “existence date check”, and the input editing method name 803 is “year conversion”. This indicates that “Edited year” is defined as the output edit method name 804.

【0072】次に、図10および図11を参照し、外部
仕様定義ツール201により外部仕様の定義及びデータ
項目の処理仕様の定義を行う方法について説明する。
Next, with reference to FIGS. 10 and 11, a method of defining external specifications and data item processing specifications by the external specification definition tool 201 will be described.

【0073】図10では、帳票の定義として帳票レイア
ウト上の「入社年月日」の入力フィールド901の定義
およびデータ項目の処理仕様の定義例を、図11では、
外部仕様定義ツール201を使用した定義手順の処理フ
ローを示している。
FIG. 10 shows an example of the definition of the entry field 901 of “date of joining company” on the form layout and the definition of the processing specification of the data item as the form definition.
The processing flow of the definition procedure using the external specification definition tool 201 is shown.

【0074】まず、外部仕様定義ツール201を起動し
(ステップ1010)、「入社年月日」の入力フィール
ド901の定義として開始列、開始行、属性の他に、デ
ータ名称902「入社年月日」をユーザに入力させる
(ステップ1011)。
First, the external specification definition tool 201 is started (step 1010), and in addition to the starting column, starting line, and attribute as the definition of the entry field 901 of "hire date", the data name 902 "hire date" Is input to the user (step 1011).

【0075】すると、外部仕様定義ツール201は、既
定義検索処理905によりデータ名称902をキーとし
てデータ項目仕様ライブラリ204に格納されたデータ
名称902と完全一致するデータ名称802を持つデー
タ項目処理仕様を検索する(ステップ1012)。
Then, the external specification definition tool 201 creates a data item processing specification having a data name 802 that exactly matches the data name 902 stored in the data item specification library 204 by using the data name 902 as a key by the predefined search processing 905. A search is performed (step 1012).

【0076】この検索処理により、データ項目仕様ライ
ブラリ204内にデータ名称902と合致したデータ名
称802が存在する場合(ステップ1014)、データ
名称802と1組になって格納してある図10(c)に
示すような既定義のデータ項目処理仕様906を定義画
面上に表示する(ステップ1015)。
By this search processing, when the data name 802 matching the data name 902 exists in the data item specification library 204 (step 1014), the data name 802 and the data name 802 are stored as a set and stored in FIG. A defined data item processing specification 906 as shown in () is displayed on the definition screen (step 1015).

【0077】次に、外部仕様定義ツール201は、表示
した既定義データ項目処理仕様906とユーザが定義し
たいデータ項目処理仕様とが一致するか否かをユーザに
確認させ(ステップ1017)、一致する旨の確認操作
が行われた場合は、表示した既定義のデータ項目処理仕
様906を、このデータ項目のデータ項目の処理仕様と
して採用し、外部仕様定義ライブラリ205に格納する
(ステップ1022)。
Next, the external specification defining tool 201 causes the user to confirm whether the displayed defined data item processing specification 906 and the data item processing specification desired by the user match (step 1017) and they match. If a confirmation operation to that effect is performed, the displayed predefined data item processing specification 906 is adopted as the processing specification of the data item of this data item and stored in the external specification definition library 205 (step 1022).

【0078】一致していない旨の操作が行われた場合
は、項目単位クラスライブラリ203のソースプログラ
ム(項目単位クラス)を検索し、項目単位クラス401
の宣言を行っている固定の文字列の後に記述されている
クラス名を全て取得する。
When the operation indicating that they do not match is performed, the source program (item unit class) of the item unit class library 203 is searched and the item unit class 401 is searched.
Get all the class names described after the fixed string that declares.

【0079】次に、その取得した全クラス名を入力とし
てクラス検索処理904を行い、データ名称902「入
社年月日」からクラス名「年月日」を得る(ステップ1
018)。
Next, a class search process 904 is performed by inputting all the acquired class names, and the class name "date" is obtained from the data name 902 "hire date" (step 1).
018).

【0080】その後、再び項目単位クラスライブラリ2
03に格納されたソースプログラムを検索し、「年月
日」クラスに定義されているメソッド名の中で出力編集
処理407を行うメソッド名を図10(b)に示すよう
なメソッド一覧903に表示する(ステップ101
9)。
Thereafter, the item unit class library 2 is again used.
The source program stored in 03 is searched, and the method name for performing the output edit processing 407 among the method names defined in the “year / month / day” class is displayed in the method list 903 as shown in FIG. 10B. (Step 101
9).

【0081】ユーザは、表示されたメソッド一覧903
の中から入出力フィールド901の入力データに対する
処理として最も適当であるメソッド名をそれぞれ選択す
る(ステップ1020)。すると、外部仕様定義ツール
201は、その情報をデータ項目仕様ライブラリ204
及び外部仕様定義ライブラリ205に格納する(ステッ
プ1021、1022)。
The user can display the displayed method list 903.
A method name that is most suitable for processing the input data of the input / output field 901 is selected from among these (step 1020). Then, the external specification definition tool 201 sends the information to the data item specification library 204.
And stored in the external specification definition library 205 (steps 1021, 1022).

【0082】一方、データ項目仕様ライブラリ204を
検索してデータ名称902と合致するデータ名称802
が存在しなかった場合(ステップ1014)、同様にク
ラス検索処理904を使用してデータ項目処理仕様を定
義し(ステップ1018〜1020)、データ項目仕様
ライブラリ204及び外部仕様定義ライブラリ205に
格納する(ステップ1021、1022)。
On the other hand, the data item specification library 204 is searched to find a data name 802 that matches the data name 902.
If no data exists (step 1014), the data item processing specification is similarly defined using the class search processing 904 (steps 1018 to 1020) and stored in the data item specification library 204 and the external specification definition library 205 (step 1018 to 1020). Steps 1021, 1022).

【0083】なお、ファイル・レコード定義時には、チ
ェック処理405、入力編集処理406を行うメソッド
名を表示し、画面定義時には、チェック処理405、入
力編集処理406、出力編集処理407を行うメソッド
名を表示し、そこから作業者が必要とするメソッド名を
選択させ、その情報をデータ項目仕様ライブラリ204
及び外部仕様定義ライブラリ205に格納する。
When defining a file / record, the method name for performing the check processing 405 and the input editing processing 406 is displayed, and for defining the screen, the method name for performing the check processing 405, the input editing processing 406, and the output editing processing 407 is displayed. Then, the operator selects the method name required by the operator, and the information is stored in the data item specification library 204.
And the external specification definition library 205.

【0084】ここで、外部仕様定義ツール201が有す
るクラス検索処理904について説明する。
The class search processing 904 of the external specification defining tool 201 will be described.

【0085】クラス検索処理とは、データ名称とクラス
名を末尾から1文字ずつ比較し、データ名称とクラス名
がクラス名の長さだけ合致した場合、そのクラス名を検
索結果とする機能である。この検索処理機能により定義
フィールドの処理として妥当と考えられるメソッドを定
義したクラスを検索できる。
The class search processing is a function of comparing the data name and the class name one character at a time from the end, and if the data name and the class name match only the length of the class name, the class name is used as the search result. . With this search processing function, it is possible to search for a class that defines a method that is considered to be appropriate for processing the definition field.

【0086】これは、データ項目の意味は、その日本語
名称を単語単位に分割した際、末尾にある単語(ドメイ
ン名と呼ぶ)によって決定づけられる結果が、経験則に
よって得られているためである。このため、項目単位ク
ラスのクラス名を業務で使用するドメイン名で定義し、
ドメイン名称が持つ意味から決定される処理をメソッド
として定義して、項目単位クラスライブラリを作成する
ことで、定義フィールドの処理として適当と考えられる
メソッドを定義したクラスを検索できる。
This is because the meaning of the data item is obtained by empirical rules when the Japanese name is divided into word units and is determined by the word at the end (called a domain name). . Therefore, define the class name of item unit class by the domain name used in the business,
By defining a process that is determined from the meaning of the domain name as a method and creating an item unit class library, it is possible to search for a class that defines a method that is considered appropriate as a process of the definition field.

【0087】また、ここでデータ項目仕様ライブラリ2
04に格納される情報について説明する。
Further, here, the data item specification library 2
The information stored in 04 will be described.

【0088】データ項目仕様ライブラリ204は、まず
第1に、過去に一度定義されたデータ項目の処理仕様を
記憶し、画面や帳票などの外部仕様の定義時に、この情
報を参照することで画面や帳票などの外部仕様間で同じ
データ項目に対する処理仕様を統一できるようにするこ
とを目的としている。また、外部仕様で定義された全デ
ータ項目のデータ名称とデータ項目処理仕様をデータ名
称で整理した形で一意に保持し、システムで扱う全デー
タ項目についてそのデータ項目の処理仕様を一元管理す
ることも目的としている。
First, the data item specification library 204 stores the processing specifications of data items once defined in the past, and by referring to this information when defining external specifications such as screens and forms, the screen and The purpose is to be able to unify the processing specifications for the same data items among external specifications such as forms. In addition, the data names of all data items defined in the external specifications and the data item processing specifications are uniquely retained in a form organized by data name, and the processing specifications of all data items handled by the system are centrally managed. Is also intended.

【0089】一意に記憶するために、データ項目仕様ラ
イブラリ204には、外部仕様定義ライブラリ205を
参照して定義された情報は格納せず、項目単位クラスラ
イブラリ203から選択されて定義されたデータ項目の
処理仕様をデータ名称についてソートを行って記憶す
る。
In order to store uniquely, the data item specification library 204 does not store the information defined by referring to the external specification definition library 205, but the data item defined by being selected from the item unit class library 203. The processing specifications of are sorted by data name and stored.

【0090】これは、過去に定義されたデータ項目処理
仕様を定義するのは、データ項目仕様ライブラリを参照
して定義を行う場合であり、過去に定義されていないデ
ータ項目処理仕様を定義するのは、項目単位クラスライ
ブラリを参照して定義を行う場合だからである。従っ
て、項目単位クラスライブラリから選択されて定義され
たデータ項目処理仕様のみを格納するデータ項目仕様ラ
イブラリは、過去に定義されていない情報が蓄積されて
いくため、重複した情報が登録されない。
This means that the data item processing specifications defined in the past are defined when the data item specification library is referred to, and the data item processing specifications not defined in the past are defined. This is because the definition is performed by referring to the item unit class library. Therefore, in the data item specification library that stores only the data item processing specifications defined and selected from the item unit class library, information that has not been defined in the past is accumulated, so that duplicate information is not registered.

【0091】次に、外部仕様定義ツール201を用いて
仕様変更にともない発生する定義情報の修正作業を一括
して行う方法を説明する。
Next, a method of using the external specification definition tool 201 to collectively perform the work of modifying the definition information that occurs when the specifications are changed will be described.

【0092】図12は、外部仕様定義ツール201によ
り、データ項目仕様ライブラリ204を編集した結果が
外部仕様定義ライブラリ205の内容に反映される様子
を、図13は、データ項目処理仕様修正作業の手順をフ
ローで表している。
FIG. 12 shows how the result of editing the data item specification library 204 by the external specification definition tool 201 is reflected in the contents of the external specification definition library 205. FIG. 13 shows the procedure of the data item processing specification correction work. Is represented by a flow.

【0093】外部仕様の定義作業中または終了後に、デ
ータ項目処理仕様の変更が生じ、データ項目「入社年月
日」1103のチェック処理仕様を「実在日チェック」
1104から「年月日範囲内チェック」1105に変更
する必要が生じたとする。このとき外部仕様定義ツール
201のデータ項目処理仕様変換機能210が起動され
ると(ステップ1207)、外部仕様定義ライブラリ2
05に定義されている全データ項目をそのデータ項目の
処理仕様とともに表示装置104上に表示する(ステッ
プ1108)。
During the definition work of the external specifications or after the completion, the data item processing specifications are changed, and the check processing specifications of the data item "hire date" 1103 are "existence date check".
It is assumed that it is necessary to change from 1104 to “check within date range” 1105. At this time, when the data item processing specification conversion function 210 of the external specification definition tool 201 is activated (step 1207), the external specification definition library 2
All data items defined in No. 05 are displayed on the display device 104 together with the processing specifications of the data items (step 1108).

【0094】そこで、「入社年月日」1103のチェッ
ク処理仕様「実在日チェック」1104を変更したいチ
ェック処理仕様「年月日範囲内チェック」1105に修
正する(ステップ1209)。
Therefore, the check processing specification “existing date check” 1104 of “date of entry” 1103 is corrected to the check processing specification “check within date range” 1105 to be changed (step 1209).

【0095】すると、外部仕様定義ツール201は、外
部仕様定義ライブラリ205の全外部仕様にアクセス
し、データ名称が「入社年月日」1106である全ての
チェック処理仕様を検索し(ステップ1210)、その
内容が「実在日チェック」1104である場合、図12
に示すように「年月日範囲内チェック」1105に置換
する(ステップ1211)。
Then, the external specification definition tool 201 accesses all external specifications of the external specification definition library 205 and searches for all the check processing specifications whose data name is "hire date" 1106 (step 1210). If the content is “Existing day check” 1104, FIG.
As shown in (1), it is replaced with "check within the date range" 1105 (step 1211).

【0096】このように、データ項目仕様ライブラリ2
04を変更するだけで、そのデータ項目が出現する全外
部仕様を一括変換できる機能を有することで、全データ
項目の処理仕様を統一的に管理することができる。
As described above, the data item specification library 2
By having a function of collectively converting all external specifications in which the data item appears by simply changing 04, the processing specifications of all the data items can be managed in a unified manner.

【0097】次に、処理プログラム207の生成手順に
ついて説明する。
Next, the procedure for generating the processing program 207 will be described.

【0098】処理プログラム207の生成手順の説明に
先立って、図14を用いて標準パターンライブラリ20
6について説明する。
Prior to the description of the generation procedure of the processing program 207, the standard pattern library 20 will be described with reference to FIG.
6 will be described.

【0099】標準パターンライブラリ206は、画面、
帳票、ファイル等の処理プログラムを制御構造に着目し
ていくつかの種類に分け、業務個別処理をそれ自身に含
まないパターンとして部品化されたプログラムスケルト
ン標準パターン部品(以下、標準パターンとよぶ)を格
納したものである。図14の例は、ファイルを読み込
み、チェックを行って正常データとエラーデータに別け
て出力するタイプの標準パターンを示しており、図14
の1301は標準パターン名、1302は標準パターン
本体であるプログラムスケルトン部品であり、チェック
処理部1303、編集処理部1305は業務個別の処理
であり、これらは標準パターン本体1302に含まず、
プログラムジェネレータ202がデータ項目中心のソフ
トウエア部品を展開する部分である。
The standard pattern library 206 includes a screen,
A program skeleton standard pattern component (hereinafter referred to as a standard pattern) is created by dividing the processing programs such as forms and files into several types by focusing on the control structure, and dividing the individual business processing into a pattern that does not include itself. It is stored. The example of FIG. 14 shows a standard pattern of a type in which a file is read, checked, and output separately for normal data and error data.
1301 is a standard pattern name, 1302 is a program skeleton part which is the standard pattern body, the check processing section 1303 and the edit processing section 1305 are business-specific processing, and these are not included in the standard pattern body 1302.
The program generator 202 is a part that develops software parts centering on data items.

【0100】以下、プログラム生成手順を図15のフロ
ーチャートを用いて詳細に説明する。
The program generation procedure will be described in detail below with reference to the flowchart of FIG.

【0101】初めに、生成対象の業務プログラム(以
下、該プログラムと略す)の帳票定義部品(図6)の処
理プログラム定義部601から使用する標準パターン名
「CHK01」606を取得し、対応する標準パターン
であるプログラムスケルトン部品1302を標準パター
ンライブラリ206から入力する(ステップ140
1)。
First, the standard pattern name “CHK01” 606 to be used is acquired from the processing program definition unit 601 of the form definition component (FIG. 6) of the business program to be generated (hereinafter abbreviated as the program), and the corresponding standard is obtained. A program skeleton part 1302, which is a pattern, is input from the standard pattern library 206 (step 140).
1).

【0102】続いて、入出力部品展開処理において、入
出力媒体定義部602で定義した入出力媒体名をもとに
外部仕様定義ライブラリ205から入出力媒体の定義部
品を入力し、該プログラムの入出力宣言部分のソースコ
ードを生成し、これを入力した標準パターンであるプロ
グラムスケルトン部品1302と合成する(ステップ1
402)。
Subsequently, in the input / output component expansion processing, the input / output medium definition component is input from the external specification definition library 205 based on the input / output medium name defined by the input / output medium definition unit 602, and the program is input. The source code of the output declaration part is generated, and this is synthesized with the program skeleton part 1302 that is the standard pattern that has been input (step 1).
402).

【0103】ここで、図16および図17を参照して入
出力宣言部分1501の展開方法を具体的に説明する。
Here, the expansion method of the input / output declaration portion 1501 will be specifically described with reference to FIGS. 16 and 17.

【0104】プログラムジェネレータ202は、入出力
媒体定義部602に記載された定義部品名607より定
義部品名「KYFIL」を取得し、これをもとに対応す
るファイル定義部品701を読み込み、これらの情報か
ら該プログラムの入出力環境定義1502、1503、
ファイル記述1504、1506およびデータ記述15
09、1510を生成し、これを標準パターン1302
に合成する。
The program generator 202 acquires the definition component name “KYFIL” from the definition component name 607 described in the input / output medium definition unit 602, reads the corresponding file definition component 701 based on this, and reads these information. From the input / output environment definition 1502, 1503 of the program,
File description 1504, 1506 and data description 15
09, 1510 are generated, and this is used as a standard pattern 1302.
To synthesize.

【0105】なお、入出力宣言部分1501の後には、
図18に示す実行部分1511が展開される。
After the input / output declaration part 1501,
The execution part 1511 shown in FIG. 18 is expanded.

【0106】入出力媒体の定義部品名607、I/O区
分608、区分609、論理装置名610、接頭語61
1は、外部仕様定義ライブラリ205の入出力媒体定義
部602より取得したものを出力する。
Input / output medium definition part name 607, I / O section 608, section 609, logical unit name 610, prefix 61
1 outputs what is acquired from the input / output medium definition unit 602 of the external specification definition library 205.

【0107】帳票印刷処理展開処理(ステップ140
4)では、該プログラムが帳票を出力する標準パターン
を使用している場合に行い、該外部仕様定義ライブラリ
205に記載されている出力媒体定義部品名をもとに外
部仕様定義ライブラリ205から該当する帳票定義部品
を入力し、これから帳票編集用作業領域および帳票出力
手続きを生成し、入力した標準パターン1302に合成
する。
Form printing process expansion process (step 140
In 4), the process is performed when the program uses a standard pattern for outputting a form, and it corresponds from the external specification definition library 205 based on the output medium definition part name described in the external specification definition library 205. A form definition component is input, a form editing work area and a form output procedure are generated from this, and the input pattern is combined with the input standard pattern 1302.

【0108】図16を用いて帳票印刷処理展開処理(ス
テップ1404)について具体的に説明する。
The form printing process expansion process (step 1404) will be specifically described with reference to FIG.

【0109】プログラムジェネレータ202は、図6の
帳票定義部品を読み込み、これらの定義内容から帳票に
関する帳票編集作業領域1507およびプログラム実行
時に使用するカウンタなどの作業領域1505を生成
し、これを標準パターン1302に合成する。
The program generator 202 reads the form definition parts shown in FIG. 6, generates a form editing work area 1507 relating to the form and a work area 1505 such as a counter used when the program is executed from these definition contents, and uses this as a standard pattern 1302. To synthesize.

【0110】チェック、編集処理展開(ステップ140
5)においては、外部仕様定義ライブラリ205に記載
されているキーワードをもとに、データ項目中心の処理
を生成して、これを標準パターン1302のチェック処
理部1303、編集処理部1305にそれぞれ展開す
る。
Check, edit processing expansion (step 140
In 5), data item-centered processing is generated based on the keyword described in the external specification definition library 205, and this is expanded to the check processing unit 1303 and the edit processing unit 1305 of the standard pattern 1302, respectively. .

【0111】図19および図20を参照してソースプロ
グラム展開方法について編集条件からの展開を例に挙
げ、具体的に説明する。
With reference to FIGS. 19 and 20, the source program expanding method will be specifically described by taking expansion from the editing condition as an example.

【0112】まず、該プログラムの帳票定義部品(図
6)に記述された編集条件623を読み込み、この編集
条件に定義されている編集処理仕様をもとに該データ項
目に対する処理を生成し、これを標準パターンの編集処
理部1305にそれぞれ展開する。
First, the edit condition 623 described in the form definition component (FIG. 6) of the program is read, and the process for the data item is generated based on the edit process specification defined in the edit condition. To the standard pattern edit processing unit 1305.

【0113】さらに、データ項目に対する処理を展開す
る際には、本例で示すように入出力媒体定義部602で
定義した接頭語611をそれぞれのファイル上の項目名
に付加する。
Further, when developing the process for the data item, the prefix 611 defined by the input / output medium definition unit 602 is added to the item name on each file as shown in this example.

【0114】例えば、符号1520,1521の枠内に
示すようにデータ項目「SYOKUI−NO」、「SI
MEI」に対し入力項目には「IN−」を、出力項目に
は「OU−」をそれぞれ付加し、入力ファイル上の記号
項目名は「IN−SYOKUI−NO」(1520)、
出力ファイル上の記号項目名は「OU−SIMEI」
(1521)とプログラム生成時に決定している。
For example, as indicated by boxes 1520 and 1521, data items "SYOKUI-NO" and "SI" are displayed.
"IN-" is added to the input item and "OU-" is added to the output item for "MEI", and the symbol item name on the input file is "IN-SYOKUI-NO" (1520),
The symbolic item name on the output file is "OU-SIMEI"
(1521) is determined when the program is generated.

【0115】このことにより、データ項目中心のソフト
ウエア部品を、そのデータ項目を扱うファイルなどの入
出力媒体の定義部品から独立させている。
As a result, the software component centering on the data item is made independent from the definition component of the input / output medium such as the file that handles the data item.

【0116】ソースプログラム出力処理(ステップ14
06)では、以上の処理により生成できた目的の業務プ
ログラムを原始文ライブラリ208に出力する。
Source program output processing (step 14)
In 06), the target business program generated by the above processing is output to the source text library 208.

【0117】なお、図19の「UNT−CHK−PRO
C」が記述されている行の前に図118の実行部分が展
開される。
The "UNT-CHK-PRO" shown in FIG.
The execution portion of FIG. 118 is expanded before the line in which "C" is described.

【0118】[0118]

【発明の効果】以上説明したように本発明によれば、画
面や帳票などの外部仕様の属性およびレイアウト定義す
る定義作業時に、データ名称を定義すると、そのデータ
名称に同義(意味内容が合致する)項目単位クラスを項
目単位クラスライブラリから検索し、その項目単位クラ
スに定義されている手続き情報を表示画面に表示し、そ
の表示された手続き情報の中でユーザが必要とする手続
き情報を選択させ、その選択された手続き情報と前記外
部仕様情報とを1組にして外部仕様定義ライブラリに格
納し、この後は、外部仕様定義ライブラリに格納された
手続き情報と前記外部仕様情報とに基づき前記任意の業
務で扱う入出力データの画面、帳票、ファイル等に対す
る処理プログラムを生成するようにしたので、外部仕様
定義作業及びデータ項目処理仕様定義作業と別々に行っ
ていた作業を、同時に行うことが可能となる。このた
め、実際にデータ項目処理を行うクラスライブラリに定
義された内容を参照しながら、データ項目処理仕様を定
義することができるため、定義内容修正に起因する戻り
作業がなくなるうえ、生成した処理プログラムのデータ
項目処理の信頼性が保証され、プログラム開発効率を向
上させることができる。
As described above, according to the present invention, when a data name is defined during the definition work for defining the attributes and layout of external specifications such as screens and forms, the data name has the same meaning (meaning content matches). ) The item unit class is searched from the item unit class library, the procedure information defined in the item unit class is displayed on the display screen, and the procedure information required by the user is selected from the displayed procedure information. , The selected procedure information and the external specification information are stored as a set in the external specification definition library, and then the arbitrary information is stored based on the procedure information stored in the external specification definition library and the external specification information. Since processing programs for input / output data screens, forms, files, etc. handled by Item Processing specifications defined tasks and operations that were performed separately, it is possible to perform simultaneously. Therefore, since the data item processing specifications can be defined while referring to the contents defined in the class library that actually performs the data item processing, there is no return work due to modification of the definition contents, and the generated processing program The reliability of the data item processing is guaranteed and the program development efficiency can be improved.

【0119】また、別ライブラリに分けて格納していた
データ項目の外部仕様定義情報とデータ項目処理仕様と
を、外部仕様定義ライブラリに1つにまとめて格納する
ことで、各ライブラリ間の整合性を保つ手間が省け、効
率良くプログラム開発を行うことができる。
Further, by storing the external specification definition information of the data items and the data item processing specifications, which are separately stored in the separate libraries, in one in the external specification definition library, the consistency between the libraries is improved. It is possible to save the trouble of maintaining and to develop programs efficiently.

【0120】さらに、プログラム生成対象の任意の業務
で扱う入出力データの画面、帳票、ファイル等の属性や
レイアウト等を規定する外部仕様情報の定義作業時に、
入出力データのデータ名称をユーザが入力すると、その
データ名称に一致するデータ名称を持つデータ項目処理
仕様をデータ項目仕様ライブラリから検索して表示画面
に表示し、その表示されたデータ項目処理仕様がユーザ
が必要とする処理仕様に合致する旨の確認操作を行う
と、表示されたデータ項目処理仕様と外部仕様情報とを
1組にして外部仕様定義ライブラリに格納し、この外部
仕様定義ライブラリに格納されたデータ項目処理仕様と
前記外部仕様情報とに基づき前記任意の業務で扱う入出
力データの画面、帳票、ファイル等に対する処理プログ
ラムを生成するようにしたので、同じデータ項目に対し
て以前に定義したデータ項目処理仕様を他の外部仕様を
調査することなく利用できるため、外部仕様間のデータ
項目処理仕様を外部仕様の定義時に統一することがで
き、設計仕様が統一したプログラム開発を行うことがで
きる。
Further, at the time of defining the external specification information that defines the attributes and layout of input / output data screens, forms, files, etc. handled in any business for which a program is generated,
When the user inputs the data name of the input / output data, the data item processing specifications with the data name that matches the data name are retrieved from the data item specification library and displayed on the display screen. When a confirmation operation to the effect that the user meets the processing specifications is performed, the displayed data item processing specifications and external specification information are stored as a set in the external specification definition library, and stored in this external specification definition library. Since the processing program for the input / output data screen, form, file, etc. handled in the arbitrary work is generated based on the specified data item processing specification and the external specification information, the same data item is defined previously. Data item processing specifications can be used without investigating other external specifications. Can be unified at the time like the definition, it is possible to carry out the program development design specification has been unified.

【0121】さらにまた、データ項目処理仕様の変更が
発生した場合、データ項目仕様ライブラリに対し修正を
行うと、外部仕様定義ライブラリのデータ名称で検索し
て外部仕様定義ライブラリの修正箇所を特定し、修正処
理を自動的に行うようにしたので、プログラム開発時に
多発する仕様変更に対し、データ項目処理仕様の修正作
業を迅速かつ容易に行うことが可能となり、生成される
プログラムの保守を容易に行うことができ、保守性を向
上させることができる。
Furthermore, when the data item processing specification is changed, if the data item specification library is modified, the data name of the external specification definition library is searched to identify the modified part of the external specification definition library. Since the modification process is automatically performed, it is possible to quickly and easily modify the data item processing specifications in response to specification changes that frequently occur during program development, and to easily maintain the generated program. It is possible to improve maintainability.

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

【図1】本発明を適用したプログラム自動生成システム
の一実施例を示すハードウェア構成図である。
FIG. 1 is a hardware configuration diagram showing an embodiment of an automatic program generation system to which the present invention is applied.

【図2】本発明を適用したプログラム自動生成システム
の一実施例を示す機能ブロック図である。
FIG. 2 is a functional block diagram showing an embodiment of an automatic program generation system to which the present invention is applied.

【図3】本発明の適用対象となる業務プログラムの一例
を示す説明図である。
FIG. 3 is an explanatory diagram showing an example of a business program to which the present invention is applied.

【図4】項目単位クラスライブラリに格納された項目単
位クラスの一例を示す構成図である。
FIG. 4 is a configuration diagram showing an example of an item unit class stored in an item unit class library.

【図5】年月日クラスにおける手続き部を実行したとき
のデータフロー例を示す説明図である。
FIG. 5 is an explanatory diagram showing an example of a data flow when a procedure part in a date class is executed.

【図6】帳票定義部品の定義例を示す説明図である。FIG. 6 is an explanatory diagram showing a definition example of a form definition part.

【図7】他の帳票定義部品の定義例を示す説明図であ
る。
FIG. 7 is an explanatory diagram showing a definition example of another form definition component.

【図8】ファイル定義部品及びレコード定義部品の定義
例を示す説明図である。
FIG. 8 is an explanatory diagram showing a definition example of a file definition component and a record definition component.

【図9】データ項目仕様ライブラリの定義例を示す説明
図である。
FIG. 9 is an explanatory diagram showing a definition example of a data item specification library.

【図10】外部仕様の定義時に使用するライブラリの関
連を示す説明図である。
FIG. 10 is an explanatory diagram showing the relationship of libraries used when defining external specifications.

【図11】外部仕様定義ツールを使用した作業手順を示
すフローチャートである。
FIG. 11 is a flowchart showing a work procedure using an external specification definition tool.

【図12】外部仕様定義ツールのデータ項目仕様変換機
能および使用するライブラリの関連を示す説明図であ
る。
FIG. 12 is an explanatory diagram showing the relationship between a data item specification conversion function of an external specification definition tool and a library to be used.

【図13】データ項目処理仕様の一括変換機能の処理手
順をフローチャートである。
FIG. 13 is a flowchart of a processing procedure of a batch conversion function of data item processing specifications.

【図14】標準パターン部品の一例を示す説明図であ
る。
FIG. 14 is an explanatory diagram showing an example of standard pattern components.

【図15】プログラム生成手順を表すフローチャートで
ある。
FIG. 15 is a flowchart showing a program generation procedure.

【図16】プログラムの入出力宣言部分の展開例を示す
説明図である。
FIG. 16 is an explanatory diagram showing an example of expansion of an input / output declaration portion of a program.

【図17】図16のプログラム展開例と帳票レイアウト
定義等との関係を示す説明図である。
FIG. 17 is an explanatory diagram showing the relationship between the program development example of FIG. 16 and the form layout definition.

【図18】図16のプログラム展開例に続く実行部分の
説明図である。
18 is an explanatory diagram of an execution part following the program expansion example of FIG.

【図19】プログラムの編集条件からの展開例を示す説
明図である。
FIG. 19 is an explanatory diagram showing an example of expansion of a program from editing conditions.

【図20】図19のプログラム展開例と帳票レイアウト
定義等との関係を示す説明図である。
FIG. 20 is an explanatory diagram showing the relationship between the program development example of FIG. 19 and the form layout definition and the like.

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

101…メモリ、102…プリンタ、103…CPU、
104…入力装置、105…表示装置、106…外部記
憶装置、201…外部仕様定義ツール、202…プログ
ラムジェネレータ、203…項目単位クラスライブラ
リ、204…データ項目仕様ライブラリ、205…外部
仕様定義ライブラリ、206…標準パターンライブラ
リ、207…処理プログラム、208…原始文ライブラ
リ、209…データ項目仕様定義機能、210…データ
項目処理仕様変換機能、301…給与ファイル、302
…業務プログラム、303…給与リスト、304…エラ
ーリスト、305…給与レコード、401…項目単位ク
ラス、402…データ部、403…手続き部、404…
項目データ、405…チェック処理、406…入力編集
処理、407…出力編集処理、502…「入社年月日」
オブジェクト、511…チェックメソッド1、512…
入力編集メソッド1、513…出力編集メソッド1、6
01…処理プログラム定義部、602…入出力媒体定義
部、603…帳票属性定義部、604…帳票レイアウト
定義部、605…プログラム記号名、606…標準パタ
ーン名、607…定義部品名、701…ファイル定義部
品、709…レコード属性定義部、802…定義クラ
ス、803…チェックメソッド名、804…入力編集メ
ソッド名、805…出力編集メソッド名、901…入出
力フィールド、902…データ名称、903…メソッド
一覧、904…クラス検索処理、905…既定義検索処
理、906…既定義データ項目処理仕様、1301…標
準パターン名、1302…標準パターン、1303…チ
ェック処理部、1305…編集処理部、1501…入出
力宣言部分、1502…入出力環境定義、1503…入
出力環境定義、1504…ファイル記述、1505…作
業領域、1506…ファイル記述、1507…帳票編集
作業領域、1509…データ記述、1510…データ記
述。
101 ... Memory, 102 ... Printer, 103 ... CPU,
104 ... Input device, 105 ... Display device, 106 ... External storage device, 201 ... External specification definition tool, 202 ... Program generator, 203 ... Item unit class library, 204 ... Data item specification library, 205 ... External specification definition library, 206 ... standard pattern library, 207 ... processing program, 208 ... source text library, 209 ... data item specification definition function, 210 ... data item processing specification conversion function, 301 ... salary file, 302
... Business program, 303 ... Salary list, 304 ... Error list, 305 ... Salary record, 401 ... Item unit class, 402 ... Data section, 403 ... Procedure section, 404 ...
Item data, 405 ... Check processing, 406 ... Input editing processing, 407 ... Output editing processing, 502 ... "Company entry date"
Object 511 ... Check method 1, 512 ...
Input edit method 1, 513 ... Output edit method 1, 6
01 ... Processing program definition part, 602 ... Input / output medium definition part, 603 ... Form attribute definition part, 604 ... Form layout definition part, 605 ... Program symbol name, 606 ... Standard pattern name, 607 ... Definition part name, 701 ... File Definition component, 709 ... Record attribute definition part, 802 ... Definition class, 803 ... Check method name, 804 ... Input edit method name, 805 ... Output edit method name, 901 ... Input / output field, 902 ... Data name, 903 ... Method list , 904 ... Class search processing, 905 ... Predefined search processing, 906 ... Predefined data item processing specifications, 1301 ... Standard pattern name, 1302 ... Standard pattern, 1303 ... Check processing section, 1305 ... Editing processing section, 1501 ... Input / output Declaration part, 1502 ... I / O environment definition, 1503 ... I / O environment definition, 15 4 ... file description, 1505 ... work area, 1506 ... file description, 1507 ... document editing area, 1509 ... data description, 1510 ... data description.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 業務アプリケーションで扱う入出力デー
タに対して、データ項目単位に、そのデータ項目に関す
るデータ型及び該データ型のデータを処理するための少
なくとも一つ以上の手続き情報から成る項目単位クラス
を項目単位クラスライブラリに定義しておき、プログラ
ム生成対象の任意の業務で扱う入出力データの画面、帳
票、ファイル等の属性やレイアウト等を規定する外部仕
様情報の定義に際し、当該外部仕様情報と共に入出力デ
ータのデータ名称をユーザに入力させた後、そのデータ
名称に同義の項目単位クラスを前記項目単位クラスライ
ブラリから検索し、その項目単位クラスに定義されてい
る手続き情報を表示画面に表示し、表示された手続き情
報の中でユーザが必要とする手続き情報をユーザに選択
させ、その選択された手続き情報と前記外部仕様情報と
を1組にして外部仕様定義ライブラリに格納し、この外
部仕様定義ライブラリに格納された手続き情報と前記外
部仕様情報とに基づき前記任意の業務で扱う入出力デー
タの画面、帳票、ファイル等に対する処理プログラムを
生成することを特徴とするデータ項目部品によるプログ
ラム自動生成方法。
1. An item unit class for input / output data handled by a business application, comprising, in data item units, a data type relating to the data item and at least one or more procedure information for processing data of the data type. Is defined in the item unit class library, and when defining the external specification information that defines the attributes and layout of input / output data screens, forms, files, etc. handled in any job for which a program is generated, After the user inputs the data name of the input / output data, the item unit class synonymous with the data name is searched from the item unit class library, and the procedure information defined for the item unit class is displayed on the display screen. , Allow the user to select the procedure information that the user needs from the displayed procedure information, and select that procedure information. I / O data which is stored in the external specification definition library as a set of the procedure information and the external specification information, and which is handled in the arbitrary work based on the procedure information and the external specification information stored in the external specification definition library. An automatic program generation method using data item parts, which is characterized in that a processing program for the screen, form, file, etc.
【請求項2】 業務アプリケーションで扱う入出力デー
タに対して、データ項目単位に、そのデータ項目に関す
る処理仕様をデータ項目仕様ライブラリに定義してお
き、プログラム生成対象の任意の業務で扱う入出力デー
タの画面、帳票、ファイル等の属性やレイアウト等を規
定する外部仕様情報の定義に際し、当該外部仕様情報と
共に入出力データのデータ名称をユーザに入力させた
後、そのデータ名称に一致するデータ名称を持つデータ
項目処理仕様を前記データ項目仕様ライブラリから検索
し、そのデータ項目処理仕様を表示画面に表示し、表示
されたデータ項目処理仕様がユーザが必要とする処理仕
様に合致するか否かをユーザに確認させ、合致する旨の
確認操作に基づき、表示されたデータ項目処理仕様と前
記外部仕様情報とを1組にして外部仕様定義ライブラリ
に格納し、この外部仕様定義ライブラリに格納されたデ
ータ項目処理仕様と前記外部仕様情報とに基づき前記任
意の業務で扱う入出力データの画面、帳票、ファイル等
に対する処理プログラムを生成することを特徴とするデ
ータ項目部品によるプログラム自動生成方法。
2. Input / output data to be handled by an arbitrary job for which a program is to be generated, by defining processing specifications for the data item in the data item specification library for the input / output data handled by the business application. When defining the external specification information that defines the attributes, layout, etc. of the screen, form, file, etc., after the user inputs the data name of the input / output data together with the external specification information, the data name that matches the data name is input. The data item processing specifications that the user has are retrieved from the data item specification library, the data item processing specifications are displayed on the display screen, and the user determines whether the displayed data item processing specifications match the processing specifications required by the user. And confirms that the data item processing specifications and the external specification information are displayed as a set. Stored in the external specification definition library, and processing programs for screens, forms, files, etc. of input / output data handled in the arbitrary work based on the data item processing specifications stored in the external specification definition library and the external specification information. A method for automatically generating a program by a data item component, which is characterized in that:
【請求項3】 前記データ項目仕様ライブラリ内でのデ
ータ項目処理仕様の修正に対し、当該データ項目のデー
タ名称によって前記外部仕様定義ライブラリ内の外部仕
様情報を検索し、データ名称が一致する外部仕様情報内
の該当するデータ項目処理仕様を修正することを特徴と
する請求項2記載のデータ項目部品によるプログラム自
動生成方法。
3. When the data item processing specification is modified in the data item specification library, the external specification information in the external specification definition library is searched by the data name of the data item, and the external specification having the same data name is searched. 3. The automatic program generation method using data item parts according to claim 2, wherein the corresponding data item processing specification in the information is modified.
JP6226182A 1994-09-21 1994-09-21 Automatic program generation method using data item parts Pending JPH0895768A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6226182A JPH0895768A (en) 1994-09-21 1994-09-21 Automatic program generation method using data item parts

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6226182A JPH0895768A (en) 1994-09-21 1994-09-21 Automatic program generation method using data item parts

Publications (1)

Publication Number Publication Date
JPH0895768A true JPH0895768A (en) 1996-04-12

Family

ID=16841178

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6226182A Pending JPH0895768A (en) 1994-09-21 1994-09-21 Automatic program generation method using data item parts

Country Status (1)

Country Link
JP (1) JPH0895768A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022143770A (en) * 2021-03-18 2022-10-03 三菱電機Itソリューションズ株式会社 System development method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022143770A (en) * 2021-03-18 2022-10-03 三菱電機Itソリューションズ株式会社 System development method

Similar Documents

Publication Publication Date Title
US6651240B1 (en) Object-oriented software development support apparatus and development support method
US6243835B1 (en) Test specification generation system and storage medium storing a test specification generation program
US6269474B1 (en) Software re-engineering system
US6041330A (en) System and method for generating year 2000 test cases
US20190220504A1 (en) Method and system for editing text with a find and replace function leveraging derivations of the find and replace input
US20060015839A1 (en) Development of software systems
US20030221184A1 (en) Template-based application development system
US20050005239A1 (en) System and method for automatic insertion of cross references in a document
US20050149868A1 (en) User interface application development program and development apparatus
US7519947B2 (en) Orchestration designer
JP3577400B2 (en) System design equipment and data warehouse design system
JP3186117B2 (en) Automatic program generation system using data-centric software components
US20040181774A1 (en) Work flow program generating apparatus and method
JPH0895768A (en) Automatic program generation method using data item parts
JPH06110733A (en) Program test case generator
JP3516843B2 (en) Database access method
JP3345522B2 (en) Program development support device using data item parts
JP6817523B2 (en) Information processing device, control method of information processing device, and program
US8839097B2 (en) System and method for information encapsulation for providing multiple deliverable formats from one information source
CN1332302C (en) Navigation in computer software applications developed in procedural language
JPH09204301A (en) Program generation system
JP4117110B2 (en) Electronic form program creation system, electronic form program creation method, and electronic form program creation program
JP2001117761A (en) Method and device for manufacturing picture program and recording medium stored with picture program manufacturing program
JP3069050B2 (en) Program conversion method
JPH04172529A (en) Automatic program generation method using data-centric software components