JPS6146529A - Defining method of attribute in programing - Google Patents

Defining method of attribute in programing

Info

Publication number
JPS6146529A
JPS6146529A JP16749384A JP16749384A JPS6146529A JP S6146529 A JPS6146529 A JP S6146529A JP 16749384 A JP16749384 A JP 16749384A JP 16749384 A JP16749384 A JP 16749384A JP S6146529 A JPS6146529 A JP S6146529A
Authority
JP
Japan
Prior art keywords
attribute
basic
item
attributes
attribute 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
JP16749384A
Other languages
Japanese (ja)
Inventor
Kanae Aoki
青木 鼎
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP16749384A priority Critical patent/JPS6146529A/en
Publication of JPS6146529A publication Critical patent/JPS6146529A/en
Pending legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To change all attributes of individual items relating to a basic item automatically by defining the attributes of the individual items according to the relation with the basic item and changing attributes of the basic item. CONSTITUTION:Basic attribute definition information from an input/output device 2 is registered in a file 1. This information is only basic information selected in consideration of the level, etc., of frequency of use among various items used in plural programs which relate to one another. The relation between the item of a part of an original source program 3 corresponding to an attribute definition part and the atrribute of the basic item registered in the file 1 is described in the source program 3 at the part corresponding to the attribute definition part. An attribute relation description part extracting part 4 extracts the attribute relation description part in the source program read out of an original library 3 and passes it to a description conversion part 5. The conversion part 5 receives the attribute relation description part and converts it into the attribute definition part of the corresponding item while referring to the file 1 and writes it in the library 6 stored with a final source program.

Description

【発明の詳細な説明】 発明の目的 産業上の利用分野 本発明は、プログラム作成時において項目の属性を定義
する方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a method for defining attributes of items when creating a program.

従来の技術 プログラム中で使用する項目については、その属性が定
義される0例えばC0BOL言語では。
For items used in conventional technology programs, their attributes are defined as 0, for example in the COBOL language.

基本項目については、英字、数字、英数字の別を表す字
類と桁数が属性として定義され、集団項目についてはそ
れに従属する基本項目の字類を全て英数字と見做した桁
数の総和が属性として定義される。
For basic items, the class and number of digits that indicate whether it is alphabetic, numeric, or alphanumeric are defined as attributes, and for group items, the total number of digits assuming that all the classes of basic items subordinate to it are alphanumeric. is defined as an attribute.

発明が解決しようとする問題点 従って、ある項目の属性の変更は、プログラム内の各部
に波及するだけでなく、関連の多数のプログラムにも波
及することになる。また、基本項目の変更は、それが従
属する全ての集団項目の属性にも波及する。この結果、
プログラム内、プログラム間1項目間において、必要な
変更部分の調査や検索、変更作業等に多大な時間を費や
さなければならないという問題がある。
Problems to be Solved by the Invention Accordingly, changing the attributes of a certain item not only affects each part within the program, but also affects many related programs. Furthermore, changes to a basic item also affect the attributes of all group items to which it is dependent. As a result,
There is a problem in that a large amount of time must be spent on researching, searching, changing, etc. necessary changes within a program and between items between programs.

発明の構成 問題点を解決するための手段 上記従来の問題点を解決する本発明は:相互に関連する
複数のプログラム中で使用される各種の項目のうち基本
的なものの属性を定義する基本属性定義情報を登録し;
プログラム中で使用する項目について、上記基本的な項
目との属性における関係を記述する属性関係記述部分を
含む原プログラムを作成し;原プログラム中から上記属
性関係記述部分を抽出し、上記基本属性定義情報に基づ
き該当項目の属性定義部分に変換する装置に、原プログ
ラムを供給することにより2項目の属性定義部分を含む
最終プログラムを得るように構成されている。
Composition of the Invention Means for Solving the Problems The present invention solves the above-mentioned conventional problems: Basic attributes that define the attributes of basic items among various items used in a plurality of mutually related programs. Register definition information;
For the items used in the program, create an original program that includes an attribute relationship description part that describes the relationship in attributes with the above basic items; extract the above attribute relationship description part from the original program, and define the above basic attributes. The apparatus is configured to obtain a final program including attribute definition parts of two items by supplying the original program to a device that converts the attribute definition parts of the corresponding items based on the information.

以下本発明の作用を実施例によって詳細に説明する。The operation of the present invention will be explained in detail below using examples.

実施例 第1図は2本発明の一実施例に使用する装置の構成を示
すブロック図である。
Embodiment FIG. 1 is a block diagram showing the configuration of an apparatus used in an embodiment of the present invention.

同図において、■は基本属性定義情報を登録しておくフ
ァイル、2はファイル1の内容を登録・更新するための
入出力装置、3は原ソース・プログラムを格納するライ
ブラリ、4は原ソース・プログラム中の属性関係記述部
分を抽出する属性関係記述部分抽出部、5は記述変換部
、6は最終ソース・プログラムを格納するライブラリで
ある。
In the figure, ■ is a file that registers basic attribute definition information, 2 is an input/output device for registering and updating the contents of file 1, 3 is a library that stores the original source program, and 4 is the original source program. 5 is a description conversion unit; 6 is a library for storing the final source program; and 5 is a description conversion unit.

まず、入出力装置2から、ファイル1へ基本属性定義情
報の登録が行われる。この基本属性定義情報は、相互に
関連する複数のプログラム中で使用される種々の項目の
うち、使用頻度の高さ等を考慮した基本的なものについ
て行われる。便宜上。
First, basic attribute definition information is registered from the input/output device 2 to the file 1. This basic attribute definition information is created for basic items among various items used in a plurality of mutually related programs, taking into account the frequency of use and the like. For convenience.

上記基本的な項目の抽出は、使用目的を共通にする一連
のプログラム(例えば財務管理プログラム。
The above basic items are extracted from a series of programs that have a common purpose (for example, a financial management program).

人事管理プログラム等)のうち、最も基本的なプログラ
ム中で使用されている全ての項目を抽出することによっ
て行ってもよい。
This may be done by extracting all items used in the most basic program (such as a human resources management program).

上記基本属性定義情報の形式をCOROL言語によって
例示すれば、第2図(B)に示すようなものとなる。こ
れは、従来側々のプログラム中に記述していた属性定義
部分に他ならない。
An example of the format of the above basic attribute definition information using the COROL language is as shown in FIG. 2(B). This is nothing but the attribute definition part that was conventionally written in each side's program.

原ソース・プログラムにおいては、従来の属性定義部分
に該当する部分に、その項目と、ファイルl内に登録さ
れている基本的な項目との属性における関係が記述され
る。この属性関係記述部分は、第2図(A)に例示する
ように二基本項目[W−MONYJは、属性(ATTR
T BUTE)において、基本的な基本項目、「MoN
Y」と同一である:集団項目rW−ZA1.MUJは、
属性(ATT)において、基本的な集団項目「ZAIM
[J −RJと同一である:というように記述される。
In the original source program, the attribute relationship between the item and the basic items registered in the file l is described in a part corresponding to the conventional attribute definition part. This attribute relationship description part consists of two basic items [W-MONYJ is an attribute (ATTR) as shown in FIG. 2(A).
T BUTE), the basic basic items, “MoN
Y”: group item rW-ZA1. MUJ is
In the attribute (ATT), the basic group item “ZAIM
[J − Same as RJ: It is described as follows.

属性関係記述部分抽出部4は、ライブラリ3がら続出し
た原ソース・プログラム中の属性関係記述部分を抽出し
、これを記述変換部5に渡す。記述変換部5は、属性関
係記述部分を受は取ると。
The attribute relationship description portion extraction unit 4 extracts the attribute relationship description portions in the original source program successively extracted from the library 3 and passes them to the description conversion unit 5. The description conversion unit 5 receives the attribute relationship description part.

ファイル1を参照しつつ、属性関係記述部分を該当項目
の属性定義部分に変換してライブラリ6に書込む。
While referring to the file 1, the attribute relationship description part is converted into the attribute definition part of the corresponding item and written into the library 6.

例えば、原ソース・プログラム中の属性関係記述部分子
W−MONY  ATT  MONYJは。
For example, the attribute relationship description molecule W-MONY ATT MONYJ in the original source program.

第3図(C)に示すように2項目rW−MONYJが符
号付きの10桁の数字であることを示す、「W−MON
Y  Pr’C59(10)−Jという属性定義部分に
変換され、また、属性関係記述部分子W−ZAIMU 
 ATT  ZATMU−Rjは。
As shown in FIG. 3(C), the second item rW-MONYJ is a signed 10-digit number.
It is converted into the attribute definition part Y Pr'C59(10)-J, and the attribute relationship description part W-ZAIMU
ATT ZATMU-Rj.

集団項目「W−ZAIMU」が34桁の英数字であるこ
とを示す、rW−ZA−rMtJ  PTCX(34)
Jという属性定義部分に変換されて、ライブラリ6に格
納される。
rW-ZA-rMtJ PTCX (34) indicating that the group item "W-ZAIMU" is 34 alphanumeric characters.
It is converted into an attribute definition part named J and stored in the library 6.

属性関係記述部分抽出部4は、ライブラリ3から読出し
た原ソース・プログラムのうち属性関係記述部分に該当
しない部分については、直ちにライブラリ6への書込み
を行う。
The attribute relationship description portion extraction unit 4 immediately writes to the library 6 any portion of the original source program read from the library 3 that does not correspond to the attribute relationship description portion.

ライブラリ6に格納された最終ソース・プログラムは、
コンパイルされ、オブジェクト・プログラムが作成され
る。一方、原ソース・プログラムは、後日の項目の属性
の変更に備えてライブラリ3内に保存される。
The final source program stored in library 6 is
Compiled to create an object program. On the other hand, the original source program is saved in the library 3 in preparation for changing the attributes of the items at a later date.

第2図の例で、基本属性定義情報ファイル1内に登録し
ておいた基本的な項目r’MONYJの桁数を、後日1
0桁から12桁に変更したものとする。この場合、入出
力装置2を使用して、ファイル1内のrMONYJの属
性をrs9 (10)’JからrS9  (12)Jに
変更し、ライブラリ3に保存しておいた原ソース・プロ
グラム中の属性関係記述部分を、上述したと全く同様の
方法で、属性定義部分に変換してやればよい。この際、
最終プログラム中の属性定義部分子、W−ZAIMUJ
の桁数を34桁から36桁に変更する作業は、利用者が
なんらの注意を払わなくとも自動的に行なわれる。すな
わち、原ソース・プログラム中の属性関係記述部分子W
−ZAIMU  ATT  ZAT MU−RJに基づ
き、最終ソース・プログラム中においてrW−ZATM
U  PICX (36)Jという属性定義部分の変更
が自動的に行われる。
In the example shown in Figure 2, the number of digits of the basic item r'MONYJ registered in the basic attribute definition information file 1 will be changed to 1 at a later date.
Assume that the number has been changed from 0 digits to 12 digits. In this case, use input/output device 2 to change the attribute of rMONYJ in file 1 from rs9 (10)'J to rS9 (12)J, and change the attribute in the original source program saved in library 3. The attribute relationship description portion may be converted into the attribute definition portion using exactly the same method as described above. On this occasion,
Attribute definition part molecule in the final program, W-ZAIMUJ
The task of changing the number of digits from 34 to 36 is automatically performed without the user paying any attention. That is, the attribute relationship description molecule W in the original source program
- ZAIMU ATT ZAT Based on MU-RJ, rW-ZATM in the final source program
The attribute definition part U PICX (36) J is automatically changed.

以上、ソース・プログラムの場合について本発明を例示
したが、オブジェクト・プログラムの場合にも本発明を
適用できる。
Although the present invention has been exemplified in the case of a source program, the present invention can also be applied to the case of an object program.

また1項目が文字や数字である場合を例にとって本発明
を説明したが1項目が図形データ等である場合には、属
性が輝度の諧調数、カラー・コード数等であり得る。
Further, the present invention has been described using an example in which one item is a letter or a number, but if one item is graphic data or the like, the attribute may be the number of brightness gradations, the number of color codes, etc.

発明の効果 以上詳細に説明したように3本発明は、基本的な項目と
の関連において個々の項目の属性を定義する構成である
ため、基本的な項目について属性の変更を行うことによ
り、これに関連する個々の項目の属性が全て自動的に変
更される。
Effects of the Invention As explained in detail above, the present invention has a configuration in which attributes of individual items are defined in relation to basic items, so by changing the attributes of basic items, All the attributes of the individual items related to the will be changed automatically.

従って、従来技術と異なり、変更部分の調査。Therefore, unlike the conventional technology, we need to investigate the changed parts.

検索、変更作業等に多大な時間を費やすことなく。You don't have to spend a lot of time searching, making changes, etc.

迅速かつ正確に項目の属性を変更することができ。You can quickly and accurately change item attributes.

変更漏れ等の誤りもなくなるという効果を奏する。This has the effect of eliminating errors such as omission of changes.

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

第1図は本発明の方法が適用される装置のブロック図、
第2図は本発明の詳細な説明するための概念図である。 1・・基本属性定義情報を登録しておくファイル、2・
・基本属性定義情報の登録・更新を行う入出力装置、3
・・原ソース・プログラムを格納するライブラリ、4・
・原ソース・プログラムから属性関係記述部分を抽出す
る抽出部、5・・抽出された属性関係記述部分を属性定
義部分に変換する変換部、6・・最終ソース・プログラ
ムを格納するライブラリ。 茅 lIl!I
FIG. 1 is a block diagram of an apparatus to which the method of the present invention is applied;
FIG. 2 is a conceptual diagram for explaining the present invention in detail. 1. File in which basic attribute definition information is registered, 2.
・I/O device for registering/updating basic attribute definition information, 3
...Library that stores the original source program, 4.
- Extraction unit that extracts the attribute relationship description part from the original source program, 5... Conversion unit that converts the extracted attribute relationship description part into an attribute definition part, 6... A library that stores the final source program. Kaya lIl! I

Claims (1)

【特許請求の範囲】 相互に関連する複数のプログラム中で使用される各種の
項目のうち基本的なものの属性を定義する基本属性定義
情報を登録し、 プログラム中で使用する項目について、前記基本的な項
目との属性における関係を記述する属性関係記述部分を
含む原プログラムを作成し、原プログラム中から前記属
性関係記述部分を抽出し、前記基本属性定義情報に基づ
き該当項目の属性定義部分に変換する装置に、原プログ
ラムを供給し、項目の属性定義部分を含む最終プログラ
ムを得ることを特徴とするプログラム作成時の属性定義
方法。
[Claims] Basic attribute definition information that defines the attributes of basic items among various items used in a plurality of mutually related programs is registered, and the basic attribute definition information for the items used in the programs is registered. Create an original program that includes an attribute relationship description part that describes the relationship in attributes with the item, extract the attribute relationship description part from the original program, and convert it into the attribute definition part of the corresponding item based on the basic attribute definition information. A method for defining attributes at the time of creating a program, characterized by supplying an original program to a device for creating a program, and obtaining a final program including attribute definition parts of items.
JP16749384A 1984-08-10 1984-08-10 Defining method of attribute in programing Pending JPS6146529A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16749384A JPS6146529A (en) 1984-08-10 1984-08-10 Defining method of attribute in programing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16749384A JPS6146529A (en) 1984-08-10 1984-08-10 Defining method of attribute in programing

Publications (1)

Publication Number Publication Date
JPS6146529A true JPS6146529A (en) 1986-03-06

Family

ID=15850699

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16749384A Pending JPS6146529A (en) 1984-08-10 1984-08-10 Defining method of attribute in programing

Country Status (1)

Country Link
JP (1) JPS6146529A (en)

Similar Documents

Publication Publication Date Title
US5930806A (en) Method and system for data migration from network database to relational database
KR20010022215A (en) System and method for generating year 2000 test cases
JPH043247A (en) Enterprise information flow defining method
JPS6146529A (en) Defining method of attribute in programing
JP2702986B2 (en) How to replace data in a program
Engle et al. Software Maintenance Exercises for a Software Engineering Project Course
JPS61157971A (en) Document editing device
Green DIY DEA: Implementing data envelopment analysis in the mathematical programming language AMPL
CN111190872B (en) Inheritable and extensible data processing method and application thereof to analysis log
KR960029962A (en) Program automatic generator
JP3307476B2 (en) Data item definition standardization device
Johnson Introduction to programmerless systems development in MUMPS
JPH05274130A (en) Device for information processing and method thereof
JPH05158767A (en) Method and device for file conversion
JPH1055395A (en) Generating method for data base
JPS63148373A (en) Managing system for circuit diagram data
JPS63196934A (en) System for generating window by window attribute data base
JPH01211121A (en) Translation system for source program including plural data base descriptions
JPH06231152A (en) Method for processing business slip
Smith et al. MUMPS is germinating business productivity
JPS62290933A (en) Analysis and display device for program data flow
JPH0458365A (en) Slip output device
JPS6051950A (en) Program outputting system
JPH04260134A (en) Name mark managing system for language processing system
JPH01246629A (en) Form printing method