JPH03259327A - Code conversion system - Google Patents
Code conversion systemInfo
- Publication number
- JPH03259327A JPH03259327A JP5861790A JP5861790A JPH03259327A JP H03259327 A JPH03259327 A JP H03259327A JP 5861790 A JP5861790 A JP 5861790A JP 5861790 A JP5861790 A JP 5861790A JP H03259327 A JPH03259327 A JP H03259327A
- Authority
- JP
- Japan
- Prior art keywords
- code
- code conversion
- conversion table
- user
- conversion
- 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.)
- Granted
Links
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 66
- 238000000034 method Methods 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 4
- 238000010276 construction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はコード変換方式、特に情報処理装置において、
利用者データのコードをシステムの内部コードに変換す
る等のコード変換が同一システムで複数のコード体系に
ついて扱われる場合のコード変換方式に関する。[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a code conversion method, particularly in an information processing device.
This invention relates to a code conversion method when code conversion, such as converting user data codes to system internal codes, is handled for multiple code systems in the same system.
従来、この種のコード変換方式は、利用者がコード体系
を意識して利用すべきコード変換表を選択し、コード変
換を行なうようになっている。Conventionally, in this type of code conversion method, the user selects a code conversion table to be used, keeping in mind the code system, and performs code conversion.
上述した従来のコード変換方式は、利用者が常にコード
体系を意識して利用しなければならないので、煩られし
く誤りを起すことがあり、更にコード体系ごとに利用者
プラグラムを用意しなければならないという煩雑さがあ
る。In the conventional code conversion method described above, the user must always be aware of the code system when using it, which can be troublesome and cause errors, and furthermore, a user program must be prepared for each code system. There is a complication.
本発明のコード変換方式は、利用者プラグラムから起動
され、利用者データのコードを変換するコード変換方式
において、複数のコード体系のそれぞれに属する複数の
コード変換表を記憶領域に蓄積するコード変換表記憶手
段と、少なくとも利用者プログラムの端末の種別とシス
テムの動作環境と利用者プログラムの指示する動作環境
と利用者データのコード体系とから予め設定した優先順
に従って動作するコード体系を決定する動作コード体系
決定手段と、この動作コード体系決定手段から指定され
たコード体系のうち利用者プログラムにより指示される
コード変換表を選択するコード変換表選択手段と、この
コード変換表選択手段の選択したコード変換表を入力し
て利用者データのコード変換を行なうデータ変換手段と
を有することにより構成される。The code conversion method of the present invention is started from a user program and converts the code of user data, and the code conversion table stores a plurality of code conversion tables belonging to each of a plurality of code systems in a storage area. a storage means, and an operation code that determines a code system to operate according to a preset priority order from at least the type of terminal of the user program, the operating environment of the system, the operating environment instructed by the user program, and the code system of user data. system determination means; code conversion table selection means for selecting a code conversion table specified by the user program from among the code systems specified by the operation code system determination means; and code conversion selected by the code conversion table selection means. and a data conversion means for inputting a table and converting the code of user data.
次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.
第1図は本発明の一実施例の構成図で、利用者プログラ
ムl、利用者データ2、動作コード体系決定手段3、コ
ード変換表選択手段4、データ変換手段5およびコード
変換表記憶手段6から構成される。FIG. 1 is a block diagram of an embodiment of the present invention, including a user program 1, user data 2, operation code system determining means 3, code conversion table selection means 4, data conversion means 5, and code conversion table storage means 6. It consists of
第2図は第1図のコード変換表記憶手段6の記憶内容の
一例を示す図で、予め複数のコード体系を示すコード体
系識別コードの下に、それぞれ複数のコード変換表が格
納されている。第2図の例では日本語、中国語等のコー
ド体系ごとに、それぞれ1バイトコードから2バイトコ
ードへの変換表、2バイトコードから1バイトコードへ
の変換表などを有している。なお一つのコード体系の下
の種類の異なるコード変換表の集まりをコード変換群と
称する。FIG. 2 is a diagram showing an example of the stored contents of the code conversion table storage means 6 shown in FIG. 1, in which a plurality of code conversion tables are stored in advance under code system identification codes indicating a plurality of code systems. . In the example shown in FIG. 2, each code system such as Japanese or Chinese has a conversion table from 1-byte code to 2-byte code, a conversion table from 2-byte code to 1-byte code, etc. Note that a collection of different types of code conversion tables under one code system is called a code conversion group.
さて本実施例を、中国語の端末から入力された1バイト
の利用者データを利用者プログラムを通して2バイトの
利用者データにコード変換する場合を例にして説明する
。先ず動作コード体系決定手段3は、動作コード体系を
端末の種別、システムの設置位置等の動作環境、利用者
プログラム1がジョブ制御言語(JCL)の指示する動
作環境および利用者データ2のコード体系等に対して予
め定めである優先順位ルールに従って決定する。Now, this embodiment will be described using as an example a case where 1-byte user data input from a Chinese language terminal is code-converted into 2-byte user data through a user program. First, the operation code system determining means 3 determines the operation code system based on the operating environment such as the type of terminal and the installation location of the system, the operating environment specified by the user program 1 in the job control language (JCL), and the code system of the user data 2. etc., according to predetermined priority rules.
ここではその結果「中国語コード」と決定されたとする
と、このコード体系をコード変換表選択手段4に通知す
る0次いでコード変換表選択手段4が利用者プログラム
1から起動されると、動作コード体系決定手段3から通
知を受けている「中国語コード」をコード変換表記憶手
段6のコード体系識別コードから選択して、対応するコ
ード変換表群をデータ変換手段5に通知する。次に、デ
ータ変換手段5は利用者プログラム1の要求に応じて、
中国語コード体系のコード変換表群の中から、実際に使
用するlバイトコードから2バイトコードへのコード変
換表を選択し、利用者データ2を入力してコード変換を
行なった後に、結果を利用者データ2に返却する。Here, if it is determined that "Chinese code" is determined as a result, this code system is notified to the code conversion table selection means 4.Next, when the code conversion table selection means 4 is started from the user program 1, the operation code system is The "Chinese code" notified by the determining means 3 is selected from the code system identification codes in the code conversion table storage means 6, and the corresponding code conversion table group is notified to the data conversion means 5. Next, the data conversion means 5, in response to a request from the user program 1,
Select the code conversion table from the 1-byte code to 2-byte code that is actually used from the code conversion table group of the Chinese code system, input the user data 2, perform the code conversion, and then display the result. Return to user data 2.
なお、コード変換表記憶手段6は一部または全部がメモ
リ上に存在してもファイル上に存在してもよく、ファイ
ル上に全てのコード変換表を用意した場合は、システム
で必要とするコード体系のコード変換表のみをシステム
構築時にメモリ上に読込み、高速処理を行なうことは容
易にできる。Note that the code conversion table storage means 6 may exist partially or completely in memory or in a file, and if all code conversion tables are prepared in a file, the code conversion table storage means 6 may store all or part of the code conversion table in memory or in a file. It is easy to read only the code conversion table of the system into memory at the time of system construction and perform high-speed processing.
以上説明したように本発明は、コード体系に対応したコ
ード表変換表群を複数持ち、利用者プログラムの動作環
境に合わせたコード体系のコード変換表を選択して利用
することにより、利用者または利用者プログラムが意識
せずに必要とするコード変換操作を行うことができ、ま
た、異なるコード体系の利用者データや異なるコード体
系下で動作させたい利用者プログラムを同一システム内
で同時に扱える効果がある。As explained above, the present invention has a plurality of code table conversion table groups corresponding to code systems, and allows the user or The user program can perform necessary code conversion operations without being aware of it, and it also has the effect of allowing user data with different code systems and user programs that want to operate under different code systems to be handled simultaneously within the same system. be.
第1図は本発明の一実施例の構成図、第2図は第1図の
コード変換表記憶手段の記憶内容の一例を示す図である
。
1・・・利用者プログラム、2・・・利用者データ、3
・・・動作コード体系決定手段、
4・・・コード変換表選
択手段、
5・・・データ変換手段、
6・・・コード変換表
記憶手段。FIG. 1 is a block diagram of an embodiment of the present invention, and FIG. 2 is a diagram showing an example of the stored contents of the code conversion table storage means of FIG. 1. 1... User program, 2... User data, 3
...Operation code system determining means, 4. Code conversion table selection means, 5. Data conversion means, 6. Code conversion table storage means.
Claims (1)
を変換するコード変換方式において、複数のコード体系
のそれぞれに属する複数のコード変換表を記憶領域に蓄
積するコード変換表記憶手段と、少なくとも利用者プロ
グラムの端末の種別とシステムの動作環境と利用者プロ
グラムの指示する動作環境と利用者データのコード体系
とから予め設定した優先順に従って動作するコード体系
を決定する動作コード体系決定手段と、この動作コード
体系決定手段から指定されたコード体系のうち利用者プ
ログラムにより指示されるコード変換表を選択するコー
ド変換表選択手段と、このコード変換表選択手段の選択
したコード変換表を入力して利用者データのコード変換
を行なうデータ変換手段とを有することを特徴とするコ
ード変換方式。In a code conversion method that is started from a user program and converts the code of user data, a code conversion table storage means that stores a plurality of code conversion tables belonging to each of a plurality of code systems in a storage area, and at least a user program. an operation code system determining means for determining a code system to operate according to a preset priority order from the terminal type, the system operating environment, the operating environment instructed by the user program, and the user data code system; A code conversion table selection means selects a code conversion table specified by the user program from among the code systems specified by the system determination means, and the code conversion table selected by the code conversion table selection means is inputted and the user data is 1. A code conversion method comprising: data conversion means for converting a code.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2058617A JP2665016B2 (en) | 1990-03-08 | 1990-03-08 | Code conversion method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2058617A JP2665016B2 (en) | 1990-03-08 | 1990-03-08 | Code conversion method |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH03259327A true JPH03259327A (en) | 1991-11-19 |
JP2665016B2 JP2665016B2 (en) | 1997-10-22 |
Family
ID=13089520
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2058617A Expired - Fee Related JP2665016B2 (en) | 1990-03-08 | 1990-03-08 | Code conversion method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2665016B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06161707A (en) * | 1992-11-20 | 1994-06-10 | Pfu Ltd | Character code switching process system |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63127328A (en) * | 1986-11-18 | 1988-05-31 | Mitsubishi Electric Corp | Code converting device |
-
1990
- 1990-03-08 JP JP2058617A patent/JP2665016B2/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63127328A (en) * | 1986-11-18 | 1988-05-31 | Mitsubishi Electric Corp | Code converting device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06161707A (en) * | 1992-11-20 | 1994-06-10 | Pfu Ltd | Character code switching process system |
Also Published As
Publication number | Publication date |
---|---|
JP2665016B2 (en) | 1997-10-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR920007277B1 (en) | System for multiple language transform | |
US5121475A (en) | Methods of dynamically generating user messages utilizing error log data with a computer system | |
US5625810A (en) | Data file apparatus for registering and retrieving data files in accordance with attribute information thereof | |
EP0207468B1 (en) | Method and user terminal for videotex | |
JPH0616274B2 (en) | How to create a data stream | |
US4996640A (en) | Data processing system | |
US5926635A (en) | Method for reducing complexities when communicating between tasks | |
JPH03259327A (en) | Code conversion system | |
CA2144876C (en) | Graphical user interface method and apparatus for communicating with a message processor | |
JPH07141134A (en) | Shared printer | |
US6971088B1 (en) | Scenario analysis control system device | |
JP3046887B2 (en) | Output file generation method in OCR data entry system | |
EP0498453B1 (en) | Programmable controller with independent display | |
JPH0883168A (en) | Data processing system and its method | |
JP2748504B2 (en) | Input processing device | |
JP2624146B2 (en) | Related record batch reading method | |
JP2546229B2 (en) | Information retrieval device | |
JP3303304B2 (en) | Computer system configuration change method | |
JPH07149006A (en) | Printer control device | |
JPH0348359A (en) | Display system for plural languages on computer systems terminal | |
EP0427558A2 (en) | Task switching system | |
JPH0830629A (en) | Document processor | |
JP3034145B2 (en) | Image processing system | |
JPH03164828A (en) | Local area network system | |
JPH031224A (en) | Input/output system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
LAPS | Cancellation because of no payment of annual fees |