JPH01147621A - Automatic program producing method - Google Patents

Automatic program producing method

Info

Publication number
JPH01147621A
JPH01147621A JP62305611A JP30561187A JPH01147621A JP H01147621 A JPH01147621 A JP H01147621A JP 62305611 A JP62305611 A JP 62305611A JP 30561187 A JP30561187 A JP 30561187A JP H01147621 A JPH01147621 A JP H01147621A
Authority
JP
Japan
Prior art keywords
information
input
output
data
program
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
JP62305611A
Other languages
Japanese (ja)
Inventor
Ichiro Naito
一郎 内藤
Hiroyuki Maezawa
前澤 裕行
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 JP62305611A priority Critical patent/JPH01147621A/en
Publication of JPH01147621A publication Critical patent/JPH01147621A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To facilitate the description of a specification and at the same time to realize the describing capability in a wide range of a job by using a means which supplies the information on the input/output order, the calculation order, etc., of the files, slips, etc., for input/output of the subject jobs. CONSTITUTION:A user supplies the information on the layout specifications for each input/output of names of files and slips, the information on the specifications of a production formula, and the executing order information on the input and output and the data editing processes from a specification input part 1 via a terminal equipment. Thus a program structure production part 6 produces the program structure information from the information on the decision table specifications for subject jobs, the input/output and data editing information, and the information on the executing order of the input/ output and the editing processes. When these processes are through to all decision table specifications, a data editing part generating part 8 produces the data editing part information contained in a program from the information on the specifications of production formulas for the subject jobs. Then a data defining part generating part 10 produces the data defining part information contained in the program out of the information on the layout specifications.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、ソフトウェア開発支援方式に係り。[Detailed description of the invention] [Industrial application field] The present invention relates to a software development support system.

特にバッチ業務処理プログラムの効率的開発に好適なプ
ログラム自動生成方法に関する。
In particular, the present invention relates to an automatic program generation method suitable for efficiently developing batch business processing programs.

〔従来の技術〕[Conventional technology]

事務処理分野のソフトウェアの開発を効率化するために
、業務が対象とする。ファイルや帳票などの入出力デー
タ単位に、非手続き的に記述された仕様情報から、計算
機で直接実行することが出来る手続き的なプログラムを
自動生成する方法が、最近開発されている。
Business operations are targeted in order to streamline the development of software in the office processing field. Recently, a method has been developed for automatically generating a procedural program that can be directly executed on a computer from specification information written in a non-procedural manner for each input/output data unit such as a file or a form.

入出力データ単位に非手続き的に記述されたデータのレ
イアウトや、出力データの値の求め方などの仕様情報か
ら手続き的なプログラムを生成する方法には、従来、2
つの方法がある。
Conventionally, there are two methods for generating a procedural program from specification information such as the layout of data written non-procedurally in units of input/output data and how to calculate the value of output data.
There are two ways.

第1の方法は、予め定められた、プログラム構造の情報
を選択し、その構造内の該当箇所に、利用者が入力した
各出力データの値の求め方の論理を組み込むことにより
、プログラム内の手続き部の論理情報を生成し、これに
、利用者が入力した各入出力データ毎に指定された桁数
、型などの属性を定義したデータレイアウト仕様情報よ
り生成した、プログラム内のデータ定義部の情報を結合
して、プログラムを生成するものである。
The first method is to select predetermined program structure information and incorporate the logic of how to calculate the value of each output data input by the user into the corresponding part of the structure. A data definition section within a program that generates logical information for the procedure section and uses data layout specification information that defines attributes such as the number of digits and type specified for each input/output data input by the user. The program is generated by combining the information.

第2の方法は、上記データレイアウト仕様情報内、ある
いは別個に指定された、各入出力データ内の各データ項
目の繰返し2選択などを示すデータ構造仕様情報にもと
づき、それと対応する、階層、繰返し9選択よりなるプ
ログラム構造を生成する方法で、プログラム構造を生成
した後は第1の方法と同様に、利用者が入力した、各出
力データの値の生成方法の論理を、該プログラム構造内
に組みこんで、プログラム手続き部論理情報を生成し、
これに利用者が入力したデータレイアウトの仕様情報よ
り生成したプログラムデータ定義部の情報を結合してプ
ログラムを生成するものである。
The second method is based on the data structure specification information indicating the repetition 2 selection of each data item in each input/output data, which is specified within the data layout specification information or separately, and the corresponding hierarchy, repetition This method generates a program structure consisting of 9 selections. After the program structure is generated, the logic of how to generate each output data value input by the user is inserted into the program structure, as in the first method. Incorporate and generate program procedure division logical information,
This is combined with information in a program data definition section generated from data layout specification information input by the user to generate a program.

第1の方法を採ったシステムは例えば「販売会社向はオ
フィスコンピュータ用システム開発ツール” E A 
G L E / P E T”、嘉藤、外1日立評論第
68巻第5号、1986年5月、第43頁〜第48頁」
に記載されたシステムがあり、第2の方法を採ったシス
テムには、例えば、「データに着目した仕様を入力とす
るC0BOLプログラム生成システムDSLの開発、河
野、外1日立評論第65巻7号、1983年7月、第5
3頁〜第58頁」に記載されたシステムがある。
A system using the first method is, for example, a system development tool for office computers for sales companies.
GLE/PET”, Kato, et al. Hitachi Review Vol. 68, No. 5, May 1986, pp. 43-48.”
For example, there is a system described in ``Development of a C0BOL program generation system DSL that takes data-focused specifications as input,'' Kono, et al. 1 Hitachi Review Vol. 65, No. 7. , July 1983, No. 5
There is a system described on pages 3 to 58.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記の2つの方法はいずれも、事務処理業務の主対象で
あるファイル・帳票などの入出力データに対応して非手
続き的に記述した仕様からプログラムを生成するもので
あり、従来のC0BOL。
Both of the above two methods generate programs from specifications written in a non-procedural manner corresponding to input/output data such as files and forms, which are the main objects of office processing work, and are different from conventional COBOL.

PL/Iなどの手続き型言語を直接記述するよりも、生
産性が高い利点をもつ。
It has the advantage of higher productivity than directly writing a procedural language such as PL/I.

しかし、第1の方法では1作成できるプログラムの構造
が固定されているので、ファイル・帳票のデータ構造や
入出力順序などが固定され、作成できる業務範囲が制約
される問題点がある。
However, in the first method, since the structure of a program that can be created is fixed, the data structure of files and forms, input/output order, etc. are fixed, and there is a problem that the scope of work that can be created is restricted.

第2の方法では、入出力となるファイル、帳票のデータ
構造により、プログラム構造が決定されるので、第1の
方法よりも作成できる業務範囲が広いが、ファイル・帳
票の出力順序など、実行順序に関する指定が出来ないの
で、C0BOL。
In the second method, the program structure is determined by the data structure of input/output files and forms, so the scope of work that can be created is wider than in the first method, but the execution order, such as the output order of files and forms, is C0BOL because it is not possible to specify.

PL/Hなどの手続き型言語に比較すれば、第1の方法
と同様記述できる業務範囲が制約される。
Compared to procedural languages such as PL/H, the scope of work that can be described is restricted as in the first method.

本発明の目的は、入出力データを中心にして記述する非
手続き型仕様記述を用いることによる仕様記述の容易化
と、広い業務範囲の記述能力を両立させた、プログラム
生成方式を提供することにある。
The purpose of the present invention is to provide a program generation method that facilitates specification description by using non-procedural specification description that mainly describes input/output data, and that achieves both the ability to describe a wide range of work. be.

〔問題点を解決するための手段〕[Means for solving problems]

上記目的は、従来方法における対象業務の仕様情報を入
力する手段において、対象業務の入出力となるファイル
・帳票等の入出力順序や計算順序等の実行順序の情報を
入力するステップを加え。
The above purpose is to add a step of inputting information on the input/output order of files, forms, etc. that are input/output of the target business, and execution order such as calculation order, to the means for inputting specification information of the target business in the conventional method.

仕様情報からプログラムを作成する手段は、該実行順序
情報より対象プログラムのプログラム制御構造情報を生
成するステップを加え、この制御構造情報を利用して、
従来方式と同様に、(1)対応出力データの値の生成方
法の論理の組みこみによるプログラム手続き部の生成、
(2)データレイアウト仕様情報にもとづき生成したデ
ータ定義部の結合、を行なってプログラムを生成するこ
とにより、解決される。
The means for creating a program from specification information includes the step of generating program control structure information of the target program from the execution order information, and using this control structure information,
As with the conventional method, (1) generation of a program procedure section by incorporating the logic of the method of generating the value of the corresponding output data;
(2) This problem can be solved by combining data definition sections generated based on data layout specification information to generate a program.

〔作用〕[Effect]

仕様情報を入力する手段において、対象とする業務の入
出カフアイル・帳票の入出力順序、計算順序等の実行順
序に関する情報を指定することが出来るので、従来可能
でなかった、実行順序に関する情報を記述することが出
来、手続き型言語を直接使用する場合と同様の広い業務
範囲の記述が可能になる。
In the means of inputting specification information, it is possible to specify information regarding the execution order such as the input/output file, the input/output order of forms, and the calculation order for the target business, so it is possible to write information regarding the execution order, which was previously not possible. This makes it possible to describe a wide range of tasks in the same way as when using a procedural language directly.

仕様情報からプログラムを生成する手段においては、指
定された実行順序情報を反映したプログラム制御構造を
生成し、この制御構造により、対象業務処理プログラム
を生成する。従って、業務要求に近い、入出力データ中
心の仕様記述から。
The means for generating a program from specification information generates a program control structure that reflects specified execution order information, and generates a target business processing program using this control structure. Therefore, start with specification descriptions centered on input/output data that are close to business requirements.

対象業務プログラムが自動生成できるので、従来方式と
同様1手続き型言語を直接使用する場合に比較してプロ
グラム開発の工数を低減することが出来る。
Since the target business program can be automatically generated, the number of man-hours for program development can be reduced compared to the case where a single procedural language is used directly, as in the conventional method.

〔実施例〕〔Example〕

第1図は本発明の1実施例におけるプログラム自動生成
システムを機能構成図の形式で表現したものである。図
示の諸機能ブロックは、蓄積部を除き、単一のプロセッ
サとソフトウェアにより実現されていてもよいし、或い
は複数のプロセッサが分担してもよい。
FIG. 1 shows an automatic program generation system according to an embodiment of the present invention in the form of a functional configuration diagram. The illustrated functional blocks, except for the storage section, may be implemented by a single processor and software, or may be implemented by multiple processors.

第2図は単一のプロセッサでソフトウェアで実現した場
合のハードウェア構成を示す図である。
FIG. 2 is a diagram showing a hardware configuration when realized by software using a single processor.

第1図の仕様入力部1は、端末から作成対象業務の仕様
記述情報を入力する。入出力関係仕様蓄積部2.レイア
ウト仕様蓄積部3.生成式仕様蓄積部4.デシジョンテ
ーブル仕様蓄積部5は仕様入力部1により入力された仕
様蓄積を蓄積する。
The specification input unit 1 shown in FIG. 1 inputs specification description information of a task to be created from a terminal. Input/output related specification storage section 2. Layout specification storage section 3. Generation formula specification storage section 4. The decision table specification storage section 5 stores the specifications inputted by the specification input section 1.

入出力関係仕様蓄積部2は対象となる業務名と業務で使
用する入出カフアイル・帳票の名称と、入出力種別の情
報を蓄積する。
The input/output related specification storage unit 2 stores information on the name of the target business, the name of the input/output office/form used in the business, and the type of input/output.

第3図にこの情報をワークシート形式で表現した例を示
す0本例では業務名が「振込支給ファイル作成」であり
、「支給明細」と「給与台帳」の2つのファイルからデ
ータが入力され、「振込支給」のファイルにデータを出
力することが示されている。
Figure 3 shows an example of this information expressed in a worksheet format.In this example, the job name is ``Create transfer payment file,'' and data is input from two files: ``Payment details'' and ``Payroll ledger.'' , it is shown that the data is to be output to the file ``Transfer Payment''.

レイアウト仕様蓄積部3は対象となる業務で使用する帳
票・ファイル等の各々について、含まれるデータ項目名
称・桁数・型などのレイアウト仕様情報を蓄積する。
The layout specification storage unit 3 stores layout specification information such as included data item names, number of digits, types, etc. for each form, file, etc. used in the target business.

第3図に示されるファイル「支給明細」のレイアウト仕
様情報をワークシート形式で表現した例を第4図に示す
。同様に第3図に示されるファイル「給与台帳」のレイ
アウト仕様情報をワークシート形式で表現した例を第5
図に示す。また第3図に示されるファイル「振込支給」
のレイアウト仕様情報をワークシート形式で表現した例
を第6図に示す。
FIG. 4 shows an example in which the layout specification information of the file "Payment Details" shown in FIG. 3 is expressed in a worksheet format. Similarly, Figure 5 shows an example of the layout specification information of the file "Payroll Ledger" shown in Figure 3 expressed in worksheet format.
As shown in the figure. Also, the file “Transfer Payment” shown in Figure 3
FIG. 6 shows an example of layout specification information expressed in worksheet format.

第4図の例では、ファイル「支給明細」には、支給明細
9社員コード、社員名9部門コード、部門名、差引支給
額の各データ項目が含まれることが示されている。レベ
ル情報により、支給明細の項目の中に他の項目:社員コ
ード、社員名9部門コード、部門名、差引支給額が含ま
れることが示される。また項目「社員コード」の型は数
字(計算に用いない)1桁数は7桁、項目「社員名」の
型は漢字1桁数は14桁、項目「差引支給額」の型は数
値(計算に用いる)、等が示されている。
In the example shown in FIG. 4, it is shown that the file "Payment Details" includes data items of payment details 9 employee code, employee name 9 department code, department name, and subtracted payment amount. The level information indicates that the items in the pay details include other items: employee code, employee name 9 department code, department name, and subtracted payment amount. In addition, the type of the item "Employee code" is a number (not used in calculations), the number of one digit is 7 digits, the type of the item "Employee name" is 14 digits of Kanji, and the type of the item "Deductible payment amount" is a number ( (used in calculations), etc. are shown.

第5図のファイル「給与台帳」のレイアウト仕様。Layout specifications for the file "Salary ledger" in Figure 5.

第6図のファイル「振込支給」のレイアウト仕様も、同
様である。
The layout specifications of the file "Transfer Payment" in FIG. 6 are also similar.

生成式仕様蓄積部4には、出力・更新されるファイル・
帳票の各々に対し、ファイル・帳票に含まれるデータ項
目の値の計算法の情報が蓄積される。もし、値の計算法
が複数ある場合には、1つのファイル・帳票に対し、複
数の生成式仕様を定義して蓄積することも可能である。
The generation formula specification storage unit 4 contains files to be output/updated.
For each form, information on how to calculate the values of data items included in the file/form is accumulated. If there are multiple methods of calculating a value, it is possible to define and store multiple generation formula specifications for one file/form.

第3図に示される出力ファイル「振込支給」の生成式仕
様情報をワークシート形式で表現した例を第7図、第8
図に示す0本例は1つの出力ファイル内の各データ項目
の値の計算法が2通りある場合である。
Figures 7 and 8 show examples of the generation formula specification information for the output file "Bank transfer payment" shown in Figure 3, expressed in worksheet format.
The example shown in the figure is a case where there are two methods of calculating the value of each data item in one output file.

第7図は、出力ファイル「振込支給」に対し、「固定額
支給」の場合に出力されるデータの計算法を示す、レベ
ル番号とデータ項目名は、第5図に示されるレイアウト
仕様情報と同一である。生成式には各出力データ項目の
値の計算法を示す。
Figure 7 shows the calculation method for data output in the case of ``fixed amount payment'' for the output file ``transfer payment.'' The level number and data item name are the same as the layout specification information shown in Figure 5. are the same. The generation formula shows how to calculate the value of each output data item.

たとえば1項目「社員コード」はファイル[支給明細j
内のデータ項目「社員コード」から値が得られることが
示されている。また、項目「銀行コード」はファイル「
給与台帳」内のデータ項目「固定支給銀行コード」より
値が求められることが示されている。同様に項目「振込
額」はファイル「支給明細」内の「固定支給額」項目の
値より得られることが示されている。
For example, one item "employee code" is stored in the file [Payment statement j
It is shown that the value can be obtained from the data item "employee code" in Also, the item "Bank code" is changed to the file "Bank code".
It is shown that the value is calculated from the data item ``Fixed Payment Bank Code'' in the ``Salary Ledger.'' Similarly, it is shown that the item "transfer amount" is obtained from the value of the "fixed payment amount" item in the file "payment details".

第8図は出力ファイル「振込支給」に対し、「差額支給
」を行なう場合の、出力データの計算法を示す、第7図
と同一のデータ項目に対し、−部具なる生成式が記述さ
れている。たとえば項目「銀行コード」はファイル「給
与台帳」内の項目「社員コード」の値より得ることが示
され、また、項目「振込額」はファイル「支給明細j内
の項目r差引支給額」の値からファイル「給与台帳」内
の項目「固定支給額」の値を引いた値により得られるこ
とが示されており、第7図の「固定額支給」の場合の生
成式定義情報とは異なる。
Figure 8 shows the calculation method for output data when performing ``difference payment'' for the output file ``transfer payment.'' A generation formula called -part is written for the same data item as in Figure 7. ing. For example, the item "Bank code" is shown to be obtained from the value of the item "Employee code" in the file "Salary ledger", and the item "Transfer amount" is obtained from the value of the item "R deduction payment amount in the pay statement j". It is shown that the value is obtained by subtracting the value of the item "Fixed payment amount" in the file "Salary ledger" from the value, which is different from the generation formula definition information in the case of "Fixed amount payment" in Figure 7. .

デシジョンテーブル仕様蓄積部5には、業務対応、ある
いは、ファイル・帳票対応にファイルや帳票内の項目の
計算順序、入出力順序を示す情報が蓄積される。
The decision table specification storage unit 5 stores information indicating the calculation order and input/output order of items in files and forms in correspondence with business operations or files and forms.

第9図に第3図に示される業務「振込支給ファイル作成
」に対する、ファイル・帳票の項目計算順序、入出力順
序を示す情報:デシジョン・テーブル仕様情報をワーク
シート形式で表現した例を示す。第9図において「準備
処理」は、最初に必ず行なう処理であり、本例では、「
支給明細」。
FIG. 9 shows an example of information representing the order of calculation of items in files and forms and the order of input/output for the task "Create transfer payment file" shown in FIG. 3: decision table specification information expressed in a worksheet format. In FIG. 9, "preparation process" is a process that must be performed first, and in this example, "preparation process" is a process that must be performed first.
Payment details.”

「給与台帳」、「振込支給」の各ファイルをオープン(
OP E N)することが示されている。C/A欄でC
(コンデイション: condition)が示されて
いる行は、デシジョン処理の条件判定を行なうための各
条件を示し、A(アクション: action)が示さ
れている行は1条件判定の結果、起動される行動を示す
、第9図では4つの条件と5つの行動が示されている6 第1の条件「支給明細 入力」はファイル「支給明細」
からルコード入力し、入力アきたか。
Open the "Payroll ledger" and "Transfer payment" files (
OPEN). C in the C/A column
The lines where (condition) is shown indicate each condition for performing conditional judgment in decision processing, and the lines where A (action: action) is shown are those that are activated as a result of one condition judgment. In Figure 9, four conditions and five actions are shown.6 The first condition ``Enter payment statement'' is the file ``Payment statement''.
Enter the code from the menu and enter the code.

あるいは、ファイルの終りに達したため入力できなかっ
たかを判定する。
Alternatively, it is determined whether input could not be made because the end of the file was reached.

第2の条件「社員コード:支給明細=社員コード:給与
台帳」は、[給与台帳」ファイルの中から入力された「
支給明細」ファイルレコードの「社員コード」項目の値
に一致する。「社員コード」の項目値をもつレコードを
「給与台帳」ファイルから検索し、存在するかしないか
を判定する。
The second condition "Employee code: Pay details = Employee code: Salary ledger" is the "Employee code: Pay statement = Employee code: Salary ledger"
Matches the value of the ``employee code'' item in the ``pay details'' file record. Search the "salary ledger" file for a record with the item value "employee code" and determine whether it exists or not.

第3の条件「固定額支給方法:給与台帳=“′振込″」
は、検索された「給与台帳」ファイルの「固定額支給方
法」項目の値が“振込”であるかを判定する。第4の条
件も同様である。
Third condition “Fixed amount payment method: Salary ledger = “’transfer””
determines whether the value of the "fixed amount payment method" item in the retrieved "salary ledger" file is "transfer". The same applies to the fourth condition.

第1の行動「固定額支給:振込支給」は第7図に示され
たファイル「振込支給」に対する生成式定義情報に従っ
てファイルレコード内のデータ項目の編集(計算)処理
を行なうことが示される。
The first action "Fixed amount payment: Transfer payment" indicates that editing (calculation) processing of data items in the file record is performed according to the generation formula definition information for the file "Bank transfer payment" shown in FIG.

第2の行動「振込支給 出力」は、編集された「振込支
給」ファイルのルコードを出力することを示す。この第
1.第2の行動は、第1.第2゜第3の条件が成立した
時に起動される。
The second action "output transfer payment" indicates that the code of the edited "transfer payment" file is to be output. This first. The second action is the first. It is activated when the second and third conditions are satisfied.

第3.第4の行動の内容も、それぞれ第1.第2の行動
と同様であり、第1.第2.第4の条件が成立した時に
起動される。
Third. The content of the fourth action is also the same as the first action. It is similar to the second action, and the first action. Second. It is activated when the fourth condition is satisfied.

以上の説明に示されるように、第1.第2.第3、第4
のすべての条件が成立する場合、「支給明細」ファイル
のルコード入力に対し、r振込支給」ファイルの2レコ
ードが出力される。また、第1.第2の条件が成立し、
第3.第4の条件が共に成立しない場合、及び、第1の
条件が成立して、第2の条件が成立しない場合には、「
支給明細」ファイルのルコード入力に対し、「振込支給
」ファイルのレコードを出力しない。
As shown in the above explanation, the first. Second. 3rd, 4th
If all the conditions are met, two records of the r-transfer payment file are output in response to the code input of the payment details file. Also, 1st. The second condition is met,
Third. If the fourth condition does not hold, or if the first condition holds but the second condition does not hold, then
Records from the "Payment Transfer" file are not output in response to code input from the "Payment Details" file.

また第1の条件が成立する場合はすべて第5の行動[繰
返し」が実行され、再び条件判定が行なわれ、「支給明
細」ファイルの次のレコードが入力される。第1の条件
が成立しない場合は終了する。
Further, in all cases where the first condition is satisfied, the fifth action [repeat] is executed, the condition is judged again, and the next record of the "payment details" file is input. If the first condition is not met, the process ends.

終了処理は、終了時に必ず行なわれる処理であり、本例
では、「支給明細」、「給与台帳」。
The termination process is a process that is always performed at the time of termination, and in this example, "Payment details" and "Salary ledger".

[振込支給」の各ファイルのクローズ(CLO8E)が
行なわれる。
Each file of [Transfer Payment] is closed (CLO8E).

本例では、デシジョンテーブル仕様は1つだけであるが
、2つ以上あってもよい。業務対応だけでなく、帳票・
ファイル対応に設けてもよい。この場合、第9図の生成
式仕様の呼出しく第1.第3行動)と同様の記述により
、デシジョンテーブル仕様間の関連付けを記述する。
In this example, there is only one decision table specification, but there may be two or more. Not only business support, but also forms and
It may also be provided for files. In this case, call the generation expression specification shown in FIG. The association between decision table specifications is described using the same description as in the third action).

また生成式の呼出しは本例のように仕様全体を呼び出す
場合だけでなく、項目単位に呼出すことも可能である。
Furthermore, the generation expression can be called not only when calling the entire specification as in this example, but also when calling each item.

第1図の6.8,10.12のステップは、第1図の2
.3,4.5に蓄積された仕様情報にもとづきプログラ
ムを生成する。
Steps 6.8 and 10.12 in Figure 1 are
.. 3. Generate a program based on the specification information accumulated in 4.5.

第1図のプログラム構造生成部6は入出力関連仕様蓄積
部2に蓄積された入出力関連仕様情報に含まれる、業務
各、出カフアイル・帳票名に該当する、デシジョンテー
ブル仕様蓄積部5内の各デシジョンテーブル仕様情報を
検索して、生成すべきプログラムのプログラム構造情報
を生成し、プログラム構造蓄積部7に出力する。
The program structure generation unit 6 in FIG. Each decision table specification information is searched to generate program structure information of the program to be generated and output to the program structure storage section 7.

第9図に示したデシジョンチーブ仕様情報にもとづき生
成したプログラム構造情報を、公知のPAD (プログ
ラム アナリシス ダイヤグラム: Problem 
Analysis Diagram)図で表現した例を
第10図に示す6図に示すように、第9図の第1条件の
「支給明細 人力」はファイル入力処理と入力成功・不
成功の判定処理に変換される。また第2条件の「社員コ
ード:支給明細=社員コード:給与台帳」も、「給与台
帳」ファイルの入力処理と、入力成功・不成功の判定処
理に展開される。
The program structure information generated based on the decision chip specification information shown in Fig. 9 is used in the well-known PAD (Program Analysis Diagram: Problem
An example expressed in Figure 10 is shown in Figure 6. As shown in Figure 6, the first condition in Figure 9, "Payment Statement Manpower", is converted into a file input process and a process to determine whether the input is successful or unsuccessful. Ru. Further, the second condition "employee code: payment details = employee code: salary ledger" is also expanded to the "salary ledger" file input process and the input success/failure determination process.

第1行動の[固定額支給:振込支給」や第3行動の「差
額支給:振込支給」はそれぞれ第7図、第8図の生成式
定義に相当するデータ編集処理を呼び出す処理に変換さ
れる。また、第5行動の「繰返し」は、繰返し処理と繰
返しを制御するフラグのオン・オフ処理に変換される。
The first action [fixed amount payment: transfer payment] and the third action [difference payment: transfer payment] are converted into processes that call the data editing process corresponding to the generation formula definitions in Figures 7 and 8, respectively. . Further, the fifth action "repeat" is converted into a repeat process and an on/off process of a flag that controls the repeat.

他の部分は自明であるので説明を省略する。The other parts are self-explanatory, so their explanation will be omitted.

第1図のデータ編集部生成部8は、入出力関係仕様蓄積
部2に蓄積された入出力関連仕様情報に含まれる出力フ
ァイル・帳票名に該当する。生成式仕様蓄積部4内の各
生成式仕様情報を検索し、その各々から、該当する出力
ファイル・帳票の出力データ編集処理情報を作成し、デ
ータ編集部蓄積部8に蓄積する。
The data editing unit generating unit 8 in FIG. 1 corresponds to the output file/form name included in the input/output related specification information stored in the input/output related specification storage unit 2. Each piece of generation formula specification information in the generation formula specification storage section 4 is searched, and output data editing processing information for the corresponding output file/form is created from each of them, and is stored in the data editing section storage section 8.

第8図に例示された生成式仕様情報から生成される、「
振込支給」ファイル・レコードの各項目値を編集(計算
)する処理情報を公知のPAD図表現で第11図に示す
6図に示すように出力ファイルの各データ項目に対する
生成式が、各々、該データ項目に対して値を代入するス
テートメントに変換される。
Generated from the generation expression specification information illustrated in FIG.
Figure 11 shows the processing information for editing (calculating) each item value of the "Transfer Payment" file record in a well-known PAD diagram representation.As shown in Figure 6, the generation formula for each data item of the output file is Converted to a statement that assigns a value to a data item.

第7図に例示された生成式仕様情報からも、同様な、フ
ァイルコードの編集処理の情報が生成される。
Similar information on file code editing processing is generated from the generation formula specification information illustrated in FIG.

第1図のデータ定義部生成部10は、入出力関係仕様蓄
積部2に蓄積された入出力関連仕様情報に含まれる入出
力ファイル名、帳票名に該当する、レイアウト仕様蓄積
部3内の各レイアウト仕様情報を検索し、この情報から
該当するファイル・帳票のデータ定義情報を生成し、デ
ータ定義部蓄積部11に蓄積する。
The data definition section generation section 10 in FIG. Layout specification information is searched, and data definition information of the corresponding file/form is generated from this information and stored in the data definition storage section 11.

第6図に示した、「振込支給」ファイルのレイアウト仕
様情報より展開されたデータ定義情報をC0BOL言語
スタイルで表現した例を第11図に示す。図示されるよ
うにレイアウト仕様情報内の各ファイルデータ項目の名
称9位置9桁数、型等の属性が各々、C0BOLのデー
タ定義部のステートメンi−に展開される。
FIG. 11 shows an example in which the data definition information expanded from the layout specification information of the "transfer payment" file shown in FIG. 6 is expressed in the C0BOL language style. As shown in the figure, the attributes such as the number of digits in the 9th position of the name and the type of each file data item in the layout specification information are expanded into the statement i- of the data definition section of the COBOL.

第4図に示した「支給明細」ファイルのレイアウト仕様
情報、及び第5図に示した「給与台帳」ファイルのレイ
アウト情報からも、同様のデータ定義情報が生成される
Similar data definition information is generated from the layout specification information of the "pay details" file shown in FIG. 4 and the layout information of the "salary ledger" file shown in FIG.

第1図のプログラム結合部12は、(1)プログラム構
造蓄積部7に蓄積された。各プログラム構造情報、(2
)データ編集部蓄積部9に蓄積された各データ編集部情
報、(3)データ定義部蓄積部11に蓄積された各デー
タ定義部情報、を結合してプログラムを生成する。各プ
ログラム構造情報と、各データ編集部情報からはプログ
ラムの手続き部を生成し、データ定義部情報からはプロ
グラムのデータ定義部を生成する。
The program combination unit 12 in FIG. 1 is (1) stored in the program structure storage unit 7. Each program structure information, (2
) Each data editing section information stored in the data editing section storage section 9 and (3) each data definition section information stored in the data definition section storage section 11 are combined to generate a program. A procedure section of the program is generated from each program structure information and each data editing section information, and a data definition section of the program is generated from the data definition section information.

第13図は本発明の一実施例におけるプログラム自動生
成システムの処理フローチャートである。
FIG. 13 is a processing flowchart of the automatic program generation system in one embodiment of the present invention.

ユーザが端末装置を介して、仕様入力部1からファイル
・帳票の名称・入出力種別、レイアウト仕様情報、生成
式仕様情報、入出力やデータ編集処理の実行順序情報(
デシジョンテーブル仕様)を、入力すると(101)、
まずプログラム構造生成部6は、対象業務のデシジョン
テーブル仕様情報:入出力やデータ編集の実行順序情報
からプログラム構造情報を生成する(102)。
A user inputs file/form names, input/output types, layout specification information, generation formula specification information, input/output and data editing processing execution order information (
When inputting the decision table specification (101),
First, the program structure generation unit 6 generates program structure information from the decision table specification information of the target business: input/output and data editing execution order information (102).

次に102のステップを対象業務のすべてのデシジョン
仕様情報に対して行なったかを判定しく103)、まだ
処理されていないデシジョンテーブル仕様情報があれば
102のステップを繰り返す、すべてのデシジョンテー
ブル仕様情報に対し102のステップが実行されれば、
データ編集部生成部8は、対象業務の生成式仕様情報か
らプログラム中のデータ編集部情報を生成する(104
) 。
Next, it is determined whether step 102 has been performed for all decision table specification information of the target business (103), and if there is decision table specification information that has not been processed yet, step 102 is repeated. On the other hand, if step 102 is executed,
The data editing unit generation unit 8 generates data editing unit information in the program from the generation formula specification information of the target business (104
).

次に対象業務のすべての生成式仕様情報に対して、10
4のステップを行なったかを判定しく105)、まだ処
理されていない生成式仕様情報があれば、104のステ
ップを繰り返す。
Next, for all generation formula specification information of the target business, 10
It is determined whether step 4 has been performed (105), and if there is generation formula specification information that has not been processed yet, step 104 is repeated.

すべての生成式仕様情報に対し、104のステップが実
行されれば、データ定義部生成部10は、レイアウト仕
様情報からプログラム中のデータ定義部情報を生成する
(106)、次に対象業務のすべてのレイアウト仕様情
報に対し106のステップを行なったかを判定しく10
7)、まだ処理されていない、レイアウト仕様情報があ
れば、106のステップを繰り返す。
When the step 104 is executed for all generation formula specification information, the data definition section generation section 10 generates data definition section information in the program from the layout specification information (106), and then 10 to determine whether step 106 has been performed for the layout specification information of
7) If there is any layout specification information that has not been processed yet, repeat step 106.

すべてのレイアウト仕様情報に対し、107のステップ
が実行されれば、プログラム結合部12は、生成された
各プログラム構造情報、データ編集部情報、データ定義
部情報を結合して、1本のプログラムを生成する(10
8)。
Once the step 107 has been executed for all layout specification information, the program combining unit 12 combines the generated program structure information, data editing unit information, and data definition unit information to create one program. Generate (10
8).

以上の実施例は、ファイルを出力とする業務に対し、プ
ログラムを生成する例であるが、帳票を出力とする業務
に関しても、合計計算や、改頁の指示を、デシジョン・
テーブル仕様情報に加えることにより、プログラムを生
成できる。また、合計計算や、改頁のタイミングをデシ
ジョン仕様情報とは別に記述し1合計計算や、改頁のタ
イミングの記述とデシジョンテーブル仕様情報からプロ
グラム構造を生成する方法も可能である。
The above embodiment is an example of generating a program for a job that outputs a file, but also for a job that outputs a form, total calculations and page break instructions can be generated using decision software.
A program can be generated by adding it to table specification information. It is also possible to perform one total calculation by writing the total calculation and page break timing separately from the decision specification information, and to generate a program structure from the description of the page break timing and the decision table specification information.

また、端末画面・キーボードを使用する対話型業務に関
しても、同様な方法でプログラムを生成できる。
Programs can also be generated in a similar manner for interactive tasks that use terminal screens and keyboards.

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

以上述べたように、本発明によれば、事務処理業務の対
象とする、ファイルや帳票等の入出力を中心に記述した
仕様情報より、対象業務処理プログラムを自動生成する
ことが出来、また該仕様情報の中で、入出力や計算の実
行順序の情報を自由に指定することが出来るので、仕様
記述の容易さと、広い範囲の業務記述能力を両立させた
プログラム生成方式を提供することが出来る。
As described above, according to the present invention, it is possible to automatically generate a target business processing program from specification information that mainly describes the input/output of files, forms, etc. that are the targets of the business process. Since information on input/output and calculation execution order can be freely specified in the specification information, it is possible to provide a program generation method that combines ease of specification description with the ability to describe a wide range of tasks. .

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

第1図は、本発明の一実施例におけるプログラム自動生
成システムの機能構成図、第2図は本発明の一実施例に
おけるプログラム自動生成システムのハードウェア構成
図、第3図は本発明の一実施例における振込支給ファイ
ル作成業務の入出力関係仕様情報の説明図、第4図は本
発明の一実施例における支給明細ファイルのレイアウト
仕様情報の説明図、第5図は本発明の一実施例における
給与台帳ファイルのレイアウト仕様情報側図、第6図は
本発明の一実施例における振込支給ファイルのレイアウ
ト仕様情報の説明図、第7図は本発明の一実施例におけ
る振込支給ファイルの[固定額支給」の場合の生成仕様
情報の説明図、第8図は本発明の一実施例における振込
支給ファイルの「差額支給」の場合の生成式仕様情報の
説明図。 第9図は本発明の一実施例における振込支給ファイル作
成業務のデシジョンテーブル仕様情報の説明図、第10
図は本発明の一実施例におけるプログラム構造情報のP
AD図、第11図は本発明の一実施例におけるデータ編
集部情報のPAD図、第12図は本発明の一実施例にお
けるデータ定義部情報のPAD図、第13図は本発明の
一実施例におけるプログラム自動生成システムの処理フ
ローチャートである。 1・・・仕様入力部、2・・・人出方関係仕様蓄積部、
3・・・レイアウト仕様蓄積部、4・・・生成式仕様蓄
積部、5・・・デシジョンテーブル仕様蓄積部、6・・
・プログラム構造生成部、7・・・プログラム構造蓄積
部、8・・・データ編集部生成部、9・・・データ編集
部蓄積部、10・・・データ定義部生成部、11・・・
データ定義部蓄積部、12・・・プログラム結合部、1
3・・・生成プイλ 圀 z3 目 某 ≠ 呂 $ 5 呂 $ ≦ n 茅 7 呂 $ 8 問 $ タ 呂 $//  呂 第 72  団 OI 県ミJ邊鈷 02  社1コート  ?(7) 02 社員yl=    A/(/l/−)02 輸門
コート  タ(3) 02 9f門A    /V(20) 02  截4↑コード   9 (7)02  担子h
     N (10’)o2  i店コード  タ(
3) 02  史ズLも   N (/Q) 02 鼻疋顕  タ<7)COhP−373区
FIG. 1 is a functional configuration diagram of an automatic program generation system according to an embodiment of the present invention, FIG. 2 is a hardware configuration diagram of an automatic program generation system according to an embodiment of the present invention, and FIG. An explanatory diagram of the input/output related specification information of the transfer payment file creation work in the embodiment, FIG. 4 is an explanatory diagram of the layout specification information of the payment details file in an embodiment of the present invention, and FIG. 5 is an explanatory diagram of the layout specification information of the payment statement file in an embodiment of the present invention 6 is an explanatory diagram of the layout specification information of the transfer payment file in an embodiment of the present invention, and FIG. 7 is a side view of the layout specification information of the payroll ledger file in an embodiment of the present invention FIG. 8 is an explanatory diagram of generation specification information in the case of "amount payment", and FIG. 8 is an explanatory diagram of generation formula specification information in the case of "difference payment" in the transfer payment file in an embodiment of the present invention. FIG. 9 is an explanatory diagram of the decision table specification information for the transfer payment file creation task in one embodiment of the present invention;
The figure shows program structure information in one embodiment of the present invention.
AD diagram, FIG. 11 is a PAD diagram of data editing section information in an embodiment of the present invention, FIG. 12 is a PAD diagram of data definition section information in an embodiment of the present invention, and FIG. 13 is an embodiment of the present invention. It is a processing flowchart of the program automatic generation system in an example. 1... Specification input section, 2... Personnel flow related specification accumulation section,
3... Layout specification storage unit, 4... Generation formula specification storage unit, 5... Decision table specification storage unit, 6...
- Program structure generation section, 7... Program structure accumulation section, 8... Data editing section generation section, 9... Data editing section accumulation section, 10... Data definition section generation section, 11...
Data definition section storage section, 12...program connection section, 1
3...Generation Pui λ 圀z3 目某 ≠ Lu $ 5 Lu $ ≦ n Kaya 7 Lu $ 8 Question $ Ta Ro $ // Lu No. 72 Group OI Prefecture Mi J Sengoku 02 Company 1 Court? (7) 02 Employee yl = A/(/l/-) 02 Port gate court ta (3) 02 9f gate A /V (20) 02 Cut 4↑ code 9 (7) 02 Basis h
N (10')o2 i store code ta(
3) 02 History L also N (/Q) 02 Hanabi Akita <7) COhP-373 Ward

Claims (1)

【特許請求の範囲】[Claims] 1、バッチ処理業務の入出力となる、ファイル・帳票等
の各入出力データに対し、(1)該ファイル・帳票が含
む各データ項目の桁数、型などの属性を定義したデータ
レイアウト仕様情報、(2)該出力ファイル・帳票が含
む各データの値を得るための計算式仕様情報等の仕様情
報を入力する手段と、入力された該仕様情報より、対応
するバッチ処理業務プログラムを生成する手段を有する
情報処理システムにおいて、仕様情報の入力手段に、フ
ァイル・帳票等のデータ入出力順序、計算順序等の実行
順序情報を入力するステップを有し、プログラムを生成
する手段に、該実行順序情報から、生成すべきプログラ
ムのプログラム構造情報を生成するステップを有するこ
とを特徴とするプログラム自動生成方法。
1. For each input/output data such as files and forms that are input and output for batch processing operations, (1) data layout specification information that defines the attributes such as the number of digits and type of each data item included in the file or form; , (2) means for inputting specification information such as calculation formula specification information for obtaining the values of each data included in the output file/form, and generating a corresponding batch processing business program from the input specification information. The information processing system has a step of inputting execution order information such as data input/output order of files and forms, calculation order, etc. to the specification information input means, and inputs execution order information such as the order of data input/output of files and forms, etc. An automatic program generation method comprising the step of generating program structure information of a program to be generated from information.
JP62305611A 1987-12-04 1987-12-04 Automatic program producing method Pending JPH01147621A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62305611A JPH01147621A (en) 1987-12-04 1987-12-04 Automatic program producing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62305611A JPH01147621A (en) 1987-12-04 1987-12-04 Automatic program producing method

Publications (1)

Publication Number Publication Date
JPH01147621A true JPH01147621A (en) 1989-06-09

Family

ID=17947225

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62305611A Pending JPH01147621A (en) 1987-12-04 1987-12-04 Automatic program producing method

Country Status (1)

Country Link
JP (1) JPH01147621A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0454635A (en) * 1990-06-22 1992-02-21 Hitachi Inf Syst Ltd Screen specification defining method and business processing method
US5745878A (en) * 1993-02-23 1998-04-28 Fujitsu Limited Business requirement handling apparatus
US6698010B1 (en) 1999-08-20 2004-02-24 Nec Corporation System, method and computer program product for automatic generation of data processing program
JP2010211768A (en) * 2009-03-12 2010-09-24 Bank Of Tokyo-Mitsubishi Ufj Ltd Data search device, data search method and program
JP2013148964A (en) * 2012-01-17 2013-08-01 Fujitsu Fsas Inc Source code generation device, source code generation method, and source code generation program

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0454635A (en) * 1990-06-22 1992-02-21 Hitachi Inf Syst Ltd Screen specification defining method and business processing method
US5745878A (en) * 1993-02-23 1998-04-28 Fujitsu Limited Business requirement handling apparatus
US6698010B1 (en) 1999-08-20 2004-02-24 Nec Corporation System, method and computer program product for automatic generation of data processing program
JP2010211768A (en) * 2009-03-12 2010-09-24 Bank Of Tokyo-Mitsubishi Ufj Ltd Data search device, data search method and program
JP2013148964A (en) * 2012-01-17 2013-08-01 Fujitsu Fsas Inc Source code generation device, source code generation method, and source code generation program

Similar Documents

Publication Publication Date Title
US20210209157A1 (en) System and method for non-programmers to dynamically manage multiple sets of xml document data
JP4303617B2 (en) System and method for defining a process structure for task execution
JP2768433B2 (en) Physical database design system
US4742467A (en) Automated programming system for machine creation of applications program source code from non-procedural terminal input
US7085803B1 (en) Platform-independent programmable batch processing engine
US6098061A (en) Computer system for interactive help using human-understandable knowledge and computer-understandable knowledge
US9152656B2 (en) Database data type creation and reuse
WO2005050447A1 (en) Batch processing device
JP5112085B2 (en) Office flow generation apparatus and method
US20100287459A1 (en) Reusable business logic across user interface containers
US20080059437A1 (en) Data mining system
Alexander et al. Access 2013 Bible
JPH06110749A (en) Reconfigurating system for data base
US5781905A (en) Program generating method combining data item part with database manipulation part
JP2022093293A (en) Online report preparation system using excel tool
JP3186117B2 (en) Automatic program generation system using data-centric software components
JPH01147621A (en) Automatic program producing method
JP7073756B2 (en) Merge method, merge device, and merge program
JPH08147381A (en) Examination job support system
JPH1097417A (en) Program assembling device and storage medium
JP3345522B2 (en) Program development support device using data item parts
JPH08263574A (en) Processor and method for account processing
JPH11327884A (en) System for re-constituting and using existing system processing information
JP4663526B2 (en) Form creation support device, form creation support method, and form creation support program
JP3521822B2 (en) Electronic report device and machine-readable recording medium recording program