JPH0341848B2 - - Google Patents

Info

Publication number
JPH0341848B2
JPH0341848B2 JP14610385A JP14610385A JPH0341848B2 JP H0341848 B2 JPH0341848 B2 JP H0341848B2 JP 14610385 A JP14610385 A JP 14610385A JP 14610385 A JP14610385 A JP 14610385A JP H0341848 B2 JPH0341848 B2 JP H0341848B2
Authority
JP
Japan
Prior art keywords
information area
specific information
product
program product
function
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP14610385A
Other languages
Japanese (ja)
Other versions
JPS626327A (en
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 filed Critical
Priority to JP14610385A priority Critical patent/JPS626327A/en
Publication of JPS626327A publication Critical patent/JPS626327A/en
Publication of JPH0341848B2 publication Critical patent/JPH0341848B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)

Description

【発明の詳細な説明】 〔概要〕 プロダクトAと、該プロダクトAを内部的に利
用しているプロダクトBとがあるとき、プロダク
トAに固有情報域を設け、プロダクトBがプロダ
クトAの提供機能αをエンハンス出来る時期がき
たら上記固有情報域にその旨を示す情報を書き込
むと共に、プロダクトBに上記固有情報域の内容
を読み出すためのマクロ命令を記入し、プロダク
トBの中でプロダクトAの固有情報域をチエツク
し、整合をとるソフトウエア組合わせ時の整合化
処理方式である。
[Detailed Description of the Invention] [Summary] When there is a product A and a product B that internally uses the product A, a unique information area is provided for the product A, and the product B uses the function α provided by the product A. When the time has come to enhance the product, write information to that effect in the specific information area above, write a macro instruction to read the contents of the specific information area in product B, and write the information in the specific information area of product A in product B. This is a matching processing method when combining software that checks and matches the software.

〔産業上の利用分野〕[Industrial application field]

本発明は、プロダクトAとプロダクトBの整合
化処理方式、例えばリレーシヨナル・データベー
スとコンパイラの整合化処理方式に関するもので
ある。
The present invention relates to a matching processing method for product A and product B, for example, a matching processing method for a relational database and a compiler.

〔従来技術と問題点〕[Conventional technology and problems]

第6図はPL/Iコンパイラとリレーシヨナ
ル・データベースの整合化処理の従来例を説明す
る図である。第6図においては、バージヨン10
レベル10のリレーシヨナル・データベースと、
バージヨン10レベル20のリレーシヨナル・デ
ータベースとが図示されている。リレーシヨナ
ル・データベースは、バージヨン及びレベルを示
す識別子を有している。バージヨン10レベル2
0のリレーシヨナル・データベースはXルーチン
を有しており、バージヨン10レベル10のリレ
ーシヨナル・データベースはXルーチンを有して
いない。コンパイラがユーザの作成したソースプ
ログラムに基づいてリレーシヨナル・データベー
スのXルーチンを呼び出すオブジエクト命令列を
作成する場合、対象となつているリレーシヨナ
ル・データベースがXルーチンを持つているか否
かを調べる必要がある。このため、コンパイラ
は、第7図に示すように、リレーシヨナル・デー
タベースが新しいか否か(バージヨン10レベル
20のものか否か)を調べ、YesであればXルー
チンを呼び出すためのオブジエクトを作成し、
Noの場合にはXルーチンを呼び出すためのオブ
ジエクトを作成しない。
FIG. 6 is a diagram illustrating a conventional example of matching processing between a PL/I compiler and a relational database. In Figure 6, version 10
Level 10 relational database,
A version 10 level 20 relational database is illustrated. A relational database has an identifier indicating its version and level. version 10 level 2
0 relational databases have X routines, and version 10 level 10 relational databases do not have X routines. When a compiler creates an object instruction sequence that calls an X routine in a relational database based on a source program created by a user, it is necessary to check whether the target relational database has an X routine. Therefore, as shown in Figure 7, the compiler checks whether the relational database is new (version 10, level 20 or not), and if yes, creates an object to call the X routine. ,
If No, do not create an object to call the X routine.

ところで、プログラムの修正をPTF(Program
Temporary Fix)によつて行う場合がある。
PTFによるプログラム修正ではバージヨン及び
レベルを示す識別子は変更されないので、リレー
シヨナル・データベース又はコンパイラに対して
PTFによるプログラム修正が行われると、両者
が整合しなくなり、ユーザ・プログラムがリレー
シヨナル・データベースの新たに付加された機能
を利用しようとすると、機械語に変換されたユー
ザ・プログラムがアベンドしたりすることがあ
る。
By the way, you can use PTF (Program
Temporary Fix).
When a program is modified using PTF, the version and level identifiers are not changed.
When a program is modified by PTF, the two become inconsistent, and when a user program attempts to use a newly added function of the relational database, the user program converted to machine language may abend. There is.

〔発明の目的〕[Purpose of the invention]

本発明は、上記の考案に基づくものであつて、
プログラム・プロダクトAとプログラム・プロダ
クトBとの整合性を簡単にチエツク出来るように
なつたソフトウエア組合わせ時の整合化処理方式
を提供することを目的としている。
The present invention is based on the above invention, and includes:
The object of the present invention is to provide a matching processing method when combining software, which makes it possible to easily check the consistency between program product A and program product B.

〔目的を達成するための手段〕[Means to achieve the purpose]

そしてそのため本発明のソフトウエア組合わせ
時の整合化処理方式は、プログラム・プロダクト
Aと、該プログラム・プロダクトAを内部的に使
用するプログラム・プロダクトBとの整合性をチ
エツクするソフトウエア組合わせ時の整合化処理
方式であつて、上記プログラム・プロダクトAの
中に上記プログラム・プロダクトBのための固有
情報域を設け、上記プログラム・プロダクトBが
上記プログラム・プロダクトAの提供機能の内の
或るものをサポートできる時期が来たらこの旨を
示すサポート・レベルを上記固有情報域に書き込
み、上記プログラム・プロダクトBの中に上記固
有情報域の内容を読み取るためのマクロ命令を設
け、上記プログラム・プロダクトBが上記マクロ
命令により上記固有情報域の内容を読み取つて両
者間の整合性をチエツクすることを特徴とするも
のである。
Therefore, the consistency processing method during software combination of the present invention checks the consistency between program product A and program product B that internally uses program product A during software combination. A harmonization processing method in which a unique information area for the program product B is provided in the program product A, and the program product B performs some of the functions provided by the program product A. When the time comes for the product to be supported, a support level indicating this is written in the specific information area, a macro instruction is provided in the program product B to read the contents of the specific information area, and the program product This is characterized in that B reads the contents of the specific information area using the macro instruction and checks the consistency between them.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明を実施例を参照しつつ説明する。
要約すると、本発明は下記のような事項を構成要
件とするものである。
Hereinafter, the present invention will be explained with reference to Examples.
To summarize, the present invention has the following constituent elements.

(a) プロダクトAの中にプロダクトBのための固
有情報域を設け、プロダクトBがプロダクトA
の提供機能α、β、γのうち取り込んでサポー
トできる時期が来たら固有情報域の該当するビ
ツトをオンにする。
(a) Create a specific information area for product B in product A, and product B
When the time comes to incorporate and support functions α, β, and γ provided by , the corresponding bit in the specific information area is turned on.

(b) プロダクトBの中でプロダクトAの中の固有
情報域をチエツクし、整合を取る。
(b) Check the unique information area in product A in product B and ensure consistency.

第1図は本発明の概要を説明するための図であ
る。第1図において、SDTはプロダクトBの固
有情報域、DLiBは提供ライブラリ
(Distribution Library)をそれぞれ示している。
プロダクトAは例えばリレーシヨナル・データベ
ースであり、プロダクトBはコンパイラである。
次に第1図について説明する。の時点でプロダ
クトAに対してα、β、γの機能拡張する。の
時点でプロダクトBがαをサポートする機能を作
り込んだとすると、プロダクトAの固有情報域に
情報設定を依頼する()。プロダクトBはユー
ザに対してのPTFを実施すればαの機能を使
用できる旨をアナウンスする。
FIG. 1 is a diagram for explaining the outline of the present invention. In FIG. 1, SDT indicates the specific information area of product B, and DLiB indicates the distribution library.
Product A is, for example, a relational database, and product B is a compiler.
Next, FIG. 1 will be explained. At the point in time, α, β, and γ functions are expanded to product A. Assuming that product B has built in a function that supports α at the point in time, a request is made to set information in the specific information area of product A (). Product B announces to the user that the function of α can be used by executing the PTF.

のPTFが実施されていれば、tzでαの機能を
利用することが出来る。ユーザが組合わせの条件
を誤れば固有情報域は000のままであり、ユー
ザ・プログラムはアベンドしない。しかし、プロ
ダクトB(コンパイラ)はユーザ・プログラムが
αの機能を使用したいと言つて来た時には適切な
エラーメツセージを出力する。プロダクトBにα
をサポートさせるための提供ライブラリDLibと、
固有情報域SDTのαに対応するビツトに1を書
き込むためのPTFとを同時に出荷することがサ
ービスを向上させる上で望ましい。なお、第1図
では、α、β、γに対してそれぞれ1ビツトずつ
割当てられているが、2ビツト構成とし、プロダ
クトBがαの機能をサポート出来れば固有情報域
SDTに01を書き込み、αとβの機能をサポート
出来れば固有情報域に10を書き込み、α、β、γ
の機能をサポート出来れば固有情報域に11を書き
込むようにしてもよい。
If the PTF of is implemented, the function of α can be used in t z . If the user makes a mistake in the combination of conditions, the specific information area remains at 000 and the user program does not abend. However, Product B (compiler) outputs an appropriate error message when a user program requests to use the function of α. α to product B
Provided library DLib to support
In order to improve services, it is desirable to ship a PTF for writing 1 to the bit corresponding to α in the specific information area SDT at the same time. Note that in Figure 1, one bit is allocated to each of α, β, and γ, but if a 2-bit configuration is used and product B can support the function α, the unique information area will be
Write 01 to SDT, and if α and β functions can be supported, write 10 to the specific information area, α, β, γ
If the function can be supported, 11 may be written in the specific information area.

第2図はユーザ・プログラム、コンパイラ及び
リレーシヨナル・データベースの関係を示す図で
ある。第2図において、1はユーザ・プログラ
ム、2はPL/Iコンパイラ、3はリレーシヨナ
ル・データベース、SDT1はCOBOLに対する固
有情報域、SDTはPL/Iに対する固有情報域、
SDT3はFORTRANに対する固有情報域をそれ
ぞれ示している。αの機能を使用したいと言う命
令が記入されたPL/I言語で書かさたユーザ・
プログラム1をコンパイラする時、PL/Iコン
パイラ2は、所定のマクロ命令(このマクロ命令
については第5図で説明する)を発行し、リレー
シヨナル・データベース3の固有情報域SDT2
の内容を読み取り、αの機能をサポート出来る旨
の情報が書き込まれているか否かをチエツクし、
Yesの場合には、αの機能を呼び出すためのオブ
ジエクト命令列を作成し、Noの場合にはαの機
能を呼び出すためのオブジエクト命令列を作成し
ない。
FIG. 2 is a diagram showing the relationship between a user program, a compiler, and a relational database. In FIG. 2, 1 is a user program, 2 is a PL/I compiler, 3 is a relational database, SDT 1 is a specific information area for COBOL, SDT is a specific information area for PL/I,
SDT3 indicates the specific information area for FORTRAN. A user code written in PL/I language containing instructions to use α's functions.
When compiling program 1, PL/I compiler 2 issues a predetermined macro instruction (this macro instruction will be explained in FIG.
Read the contents of , check whether information indicating that it can support the functions of α is written,
If Yes, an object instruction sequence for calling the function of α is created, and if No, an object instruction sequence for calling the function of α is not created.

第3図は固有情報域の構成を示す図である。
COBOLに対する固有情報域、PL/Iに対する固
有情報域及びFORTRANに対する固有情報域は、
それぞれ12バイト構成であり、その内の4バイト
が実際に使用されている。この4バイトの領域は
4ビツト単位に分割されている。第1バイト前半
の4ビツトは運用機能レベル、第1バイトの後半
の4ビツトはデータベース機能レベルに割当てら
れている。以下、図示の通りである。
FIG. 3 is a diagram showing the structure of the specific information area.
The specific information area for COBOL, the specific information area for PL/I, and the specific information area for FORTRAN are:
Each consists of 12 bytes, of which 4 bytes are actually used. This 4-byte area is divided into 4-bit units. The first four bits of the first byte are assigned to the operational function level, and the last four bits of the first byte are assigned to the database function level. The following is as shown.

第4図は言語の機能レベル情報の値の例を示す
図である。COBOL及びPL/Iがパブリツク・デ
ータベース機能をサポートできる場合には対応す
る固有情報域の運用レベルの欄(第1バイトの前
半)に‘2'X(2進で0010)が書き込まれ、
FORTRANがパブリツク・データベース機能を
サポートできる場合には対応する固有情報域の運
用レベルの欄(第1バイトの前半)に‘1'X(2
進で0001)が書き込まれる。例えばリレーシヨナ
ル・データベースのカラム保護機能も運用レベル
に属しており、COBOL及びPL/Iがパブリツ
ク・データベース機能の外にカラム保護機能もサ
ポートできる場合には対応する固有情報域の運用
レベルの欄に‘3'X(2進で0011)が書き込まれ、
FORTRANがパブリツク・データベース機能の
外にカラム保護機能もサポートできる場合には対
応する固有情報域の運用レベルの欄に‘2'X(2
進で0010)が書き込まれる。第1バイトの後半の
4ビツトないし第3バイトの後半の4ビツトの欄
については、上述の説明から理解できるものと思
われるので説明は省略する。
FIG. 4 is a diagram showing an example of values of language functional level information. If COBOL and PL/I can support the public database function, '2'X (0010 in binary) is written in the operation level column (first half of the first byte) of the corresponding specific information area.
If FORTRAN can support the public database function, '1'X (2
0001) is written in decimal format. For example, the column protection function of a relational database also belongs to the operational level, and if COBOL and PL/I can support the column protection function in addition to the public database function, the column of the operational level of the corresponding specific information area is ''. 3'X (0011 in binary) is written,
If FORTRAN can support the column protection function in addition to the public database function, enter '2'X (2) in the operational level column of the corresponding specific information area.
0010) is written in decimal format. The fields of the last 4 bits of the first byte to the last 4 bits of the third byte are likely to be understood from the above explanation, so a description thereof will be omitted.

第5図は固有情報域の言語情報を取り出すため
の言語情報取出しマクロの記述形式を示す図であ
る。このマクロ命令の機能は、指定した言語の固
有情報を固有情報域SDTから取り出し、返却す
ると言うものである。次にオペランドについて説
明する。
FIG. 5 is a diagram showing the description format of a linguistic information extraction macro for extracting linguistic information from the specific information area. The function of this macro instruction is to extract the specific information of the specified language from the specific information area SDT and return it. Next, the operands will be explained.

(a) RCOMAD(&RCOMAD) RDB(リレーシヨナル・データベース)の主
制御表(RCOM)のアドレスを指定する。
(a) RCOMAD (&RCOMAD) Specifies the address of the main control table (RCOM) of the RDB (relational database).

&RCOMAD:PTR(31) (b) LANG({CO|PL|FO}) 言語の種別を指定する。 &RCOMAD:PTR(31) (b) LANG({CO|PL|FO}) Specify the language type.

CO:COBOL PL:L/I FO:FORTRAN77 (c) RTNAD(&RTNAD) 12バイトの情報反却域のアドレスを指定す
る。
CO: COBOL PL: L/I FO: FORTRAN77 (c) RTNAD (&RTNAD) Specifies the address of the 12-byte information return area.

&RTNAD:PTR(31) 〔発明の効果〕 以上の説明から明らかなように、本発明によれ
ば、プロダクトAが自分のサポート・レベルをプ
ロダクトBの中に持つことになり、従来までアベ
ンドが発生していたものが、適切なメツセージ
(組合わせ不良という旨の)が出力されるように
なり、障害対策が不要になる。
&RTNAD:PTR(31) [Effect of the invention] As is clear from the above explanation, according to the present invention, product A has its own support level in product B, which prevents abend from occurring in the past. However, an appropriate message (indicating that the combination is defective) is now output, eliminating the need for troubleshooting.

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

第1図は本発明の概要を説明するための図、第
2図はユーザ・プログラム、コンパイラ及びリレ
ーシヨナル・データベースの関係を示す図、第3
図は固有情報域の構成を示す図、第4図は言語の
機能レベル情報の値の例を示す図、第5図は言語
情報取出しマクロの記述形式を示す図、第6図は
PL/Iコンパイラとリレーシヨナル・データベ
ースの整合化処理の従来例を説明する図、第7図
は第6図におけるルーチンXを呼び出すオブジエ
クト命令列を作成する部分の処理を説明する図で
ある。 1……ユーザ・プログラム、2……PL/Iコ
ンパイラ、3……リレーシヨナル・データベー
ス、SDT1……COBOLに対する固有情報域、
SDT2……PL/Iに対する固有情報域、SDT3
……FORTRANに対する固有情報域。
Figure 1 is a diagram for explaining the outline of the present invention, Figure 2 is a diagram showing the relationship between a user program, a compiler, and a relational database, and Figure 3 is a diagram for explaining the outline of the present invention.
Figure 4 shows the structure of the specific information area, Figure 4 shows an example of the value of language functional level information, Figure 5 shows the description format of the language information retrieval macro, and Figure 6 shows the format of the language information retrieval macro.
FIG. 7 is a diagram illustrating a conventional example of matching processing between a PL/I compiler and a relational database, and FIG. 7 is a diagram illustrating a portion of the processing for creating an object instruction sequence that calls routine X in FIG. 6. 1...User program, 2...PL/I compiler, 3...Relational database, SDT1...Specific information area for COBOL,
SDT2... Specific information area for PL/I, SDT3
...Specific information area for FORTRAN.

Claims (1)

【特許請求の範囲】[Claims] 1 プログラム・プロダクトAと、該プログラ
ム・プロダクトAを内部的に使用するプログラ
ム・プロダクトBとの整合性をチエツクするソフ
トウエア組合わせ時の整合化処理方式であつて、
上記プログラム・プロダクトAの中に上記プログ
ラム・プロダクトBのための固有情報域を設け、
上記プログラム・プロダクトBが上記プログラ
ム・プロダクトAの提供機能の内の或るものをサ
ポートできる時期が来たらこの旨を示すサポー
ト・レベルを上記固有情報域に書き込み、上記プ
ログラム・プロダクトBの中に上記固有情報域の
内容を読み取るためのマクロ命令を設け、上記プ
ログラム・プロダクトBが上記マクロ命令により
上記固有情報域の内容を読み取つて両者間の整合
性をチエツクすることを特徴とするソフトウエア
組合わせ時の整合化処理方式。
1. A harmonization processing method when combining software that checks the consistency between a program product A and a program product B that internally uses the program product A,
Providing a specific information area for the program product B in the program product A,
When the time comes for the above program product B to support some of the functions provided by the above program product A, a support level indicating this will be written in the above specific information area, and the support level will be written in the above program product B. A software set characterized in that a macro instruction for reading the content of the specific information area is provided, and the program product B reads the content of the specific information area using the macro instruction and checks consistency between the two. Matching processing method during matching.
JP14610385A 1985-07-03 1985-07-03 Matching processing system for software at combining Granted JPS626327A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14610385A JPS626327A (en) 1985-07-03 1985-07-03 Matching processing system for software at combining

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14610385A JPS626327A (en) 1985-07-03 1985-07-03 Matching processing system for software at combining

Publications (2)

Publication Number Publication Date
JPS626327A JPS626327A (en) 1987-01-13
JPH0341848B2 true JPH0341848B2 (en) 1991-06-25

Family

ID=15400211

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14610385A Granted JPS626327A (en) 1985-07-03 1985-07-03 Matching processing system for software at combining

Country Status (1)

Country Link
JP (1) JPS626327A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0243622A (en) * 1988-08-04 1990-02-14 Fujitsu Ltd Access condition deciding system
US6161135A (en) 1997-03-07 2000-12-12 Unisys Corporation Method and apparatus for software features synchronization between software systems

Also Published As

Publication number Publication date
JPS626327A (en) 1987-01-13

Similar Documents

Publication Publication Date Title
EP0413486A2 (en) Message processing system
GB1512619A (en) Data processing apparatus
JP3130828B2 (en) Assembly processing method
JPH0341848B2 (en)
JPH1125100A (en) Data base access system
JPS5851327A (en) Input and output control system
JP2006146613A (en) Program conversion method
JPH04362738A (en) Variable control method
CA1200015A (en) Dynamic data base representation
JP2899316B2 (en) Recognition processing method of code system of caller
US20010030905A1 (en) Force page paging scheme for microcontrollers of various sizes using data random access memory
JPS6247748A (en) Assembling device
JPS6072033A (en) Split compiling system
JPS5856148A (en) Program correction processing system
CROSS Readable Inter-Phase Languages-Their tools and Super-Tool
JP2764833B2 (en) Compact debug information method
JPH02284225A (en) Arithmetic processor
JPS61235949A (en) Translating system
JPH04362739A (en) Variable control method
ROSEN et al. Microcomputer-based natural-language understanding, phase 1[Final Technical Report, 1 Oct. 1979- 28 Mar. 1980]
Macleod SP/1—A FORTRAN integrated string processor
JPS63291126A (en) System for shortening compile time
JPH0934788A (en) Device and method for translating address
JPH02118835A (en) Source program abbreviation form input system
JPS6337426A (en) Program address resolving system using external symbol address table