JPH0561616A - Printer control system - Google Patents

Printer control system

Info

Publication number
JPH0561616A
JPH0561616A JP3221947A JP22194791A JPH0561616A JP H0561616 A JPH0561616 A JP H0561616A JP 3221947 A JP3221947 A JP 3221947A JP 22194791 A JP22194791 A JP 22194791A JP H0561616 A JPH0561616 A JP H0561616A
Authority
JP
Japan
Prior art keywords
jcl
byte code
code
output
printer
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
JP3221947A
Other languages
Japanese (ja)
Inventor
Hiroki Ishikawa
広樹 石川
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 Software Shikoku Ltd
Original Assignee
NEC Software Shikoku 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 NEC Software Shikoku Ltd filed Critical NEC Software Shikoku Ltd
Priority to JP3221947A priority Critical patent/JPH0561616A/en
Publication of JPH0561616A publication Critical patent/JPH0561616A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To simplify a program without being conscious of printer environment. CONSTITUTION:A JCL is stored in a JCL storage device 2. When an OS in an OS part 10a is started by a user program, a JCL input part 11 inputs the JCL from the device 2 and transfers the JCL to a file definition sentence judging part 12. The judging part 12 refers to the JCL inputted by the input part 11 and judges the existence of 'KANJI' (Chinese character) printer file definition sentence. When the definition sentence exists, a code conversion part 13 converts an output record 4a from an one-byte code into a two-byte code while referring to a conversion table 20 and transfers the converted result to an output part 14. However, when no definition sentence exists, the output record is transferred to the output part 14 as it is without executing code conversion and the output part 14 outputs the received code 4a to a 'KANJI' printer.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、情報処理装置のプリン
タ制御方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer control system for an information processing device.

【0002】[0002]

【従来の技術】従来のプリンタ制御方式は、2バイトコ
ードの入力により印字を行う漢字プリンタに出力する場
合は、出力レコードを2バイトコードにて作成しなけれ
ばならなかった。
2. Description of the Related Art In the conventional printer control system, when a 2-byte code is input and output to a Kanji printer for printing, an output record must be created in 2-byte code.

【0003】次に、従来例について図面を参照して説明
する。
Next, a conventional example will be described with reference to the drawings.

【0004】図4は従来の一例のANK文字を印字する
場合の構成を示すブロック図、図5は従来の一例の漢字
を印字する場合の構成を示すブロック図である。
FIG. 4 is a block diagram showing a configuration in the case of printing a conventional ANK character, and FIG. 5 is a block diagram showing a configuration in the case of printing a conventional example of Kanji characters.

【0005】図4に示すプリンタの制御方式は、情報処
理を行うCPU1bと、1バイトコードでANK文字を
印字し2バイトコードで漢字を印字可能な漢字プリンタ
3とを含んで構成されている。CPU1bは、オペレー
ションシステム(以後、OSと記す)が動作するOS部
10bと、利用者プログラムが動作する利用者プログラ
ム部30bとを含んで構成されている。利用者プログラ
ム部30bは、ANKを出力する場合は、1バイトコー
ド出力用のプログラム31aを動作して漢字プリンタ3
に出力レコード4aを出力していた。
The printer control system shown in FIG. 4 includes a CPU 1b for information processing and a Kanji printer 3 for printing ANK characters with a 1-byte code and printing Kanji with a 2-byte code. The CPU 1b is configured to include an OS unit 10b in which an operating system (hereinafter referred to as OS) operates and a user program unit 30b in which a user program operates. When outputting ANK, the user program unit 30b operates the 1-byte code output program 31a to operate the Kanji printer 3
The output record 4a was output to.

【0006】図5に示すプリンタの制御方式は、図4と
同じ構成だが、CPU1bの利用者プログラム部30b
は、漢字を出力する場合は、2バイトコード出力用のプ
ログラム31bを動作して出力レコード4bを漢字プリ
ンタ3に出力していた。
The control system of the printer shown in FIG. 5 has the same configuration as that of FIG. 4, but the user program section 30b of the CPU 1b.
When outputting a kanji, the program 31b for outputting a 2-byte code was operated to output the output record 4b to the kanji printer 3.

【0007】この方式によると、1バイトコードと2バ
イトコードとの両方で出力する場合は、1バイトコード
出力用のプログラム31aと2バイトコード出力用のプ
ログラム31bとの2種類のバイトコードを出力する2
つのプログラムが必要となっていた。
According to this method, when outputting both a 1-byte code and a 2-byte code, two types of byte codes are output, a 1-byte code output program 31a and a 2-byte code output program 31b. To do 2
One program was needed.

【0008】[0008]

【発明が解決しようとする課題】上述した従来のプリン
タ制御方式は、環境等の条件によって1バイトコード出
力用プログラム31aと2バイトコード出力用プログラ
ム31bとを別々に最初から作成しておくか、1バイト
コード出力用プログラム31aを漢字プリンタ3で出力
するために2バイトコード出力用プログラム31bに修
正、または新たに作成しなければならないため、手間と
時間または費用がかかるという問題点がある。
In the conventional printer control method described above, the 1-byte code output program 31a and the 2-byte code output program 31b are separately created from the beginning depending on the conditions such as the environment. In order to output the 1-byte code output program 31a to the Kanji printer 3, the 2-byte code output program 31b has to be modified or newly created, which is troublesome, time-consuming, and expensive.

【0009】[0009]

【課題を解決するための手段】本発明のプリンタ制御方
式は、オペレーションシステムに指定を与えるJCLの
ファイル定義文を格納したJCL格納手段と、1バイト
コードと2バイトコードとを対応させた変換テーブル
と、前記JCL格納装置からJCLを順次入力するJC
L入力手段と、前記JCL入力手段が入力したJCLか
ら漢字プリンタ用ファイル定義文の有無を判断するファ
イル定義文判断手段と、前記ファイル定義文判断手段の
判断結果から入力した利用者プログラムからの1バイト
コードである出力レコードを前記変換テーブルを参照し
て2バイトコードに変換するコード変換手段と、前記コ
ード変換手段が変換したコードで漢字プリンタに出力す
る出力手段とを有している。
A printer control system according to the present invention comprises a JCL storing means for storing a JCL file definition statement for designating an operating system, and a conversion table in which a 1-byte code and a 2-byte code are associated with each other. And a JC for sequentially inputting JCL from the JCL storage device
1 from an L input means, a file definition statement determination means for determining the presence or absence of a Kanji printer file definition statement from the JCL input by the JCL input means, and a user program input from the determination result of the file definition statement determination means. It has a code conversion means for converting an output record, which is a byte code, into a 2-byte code by referring to the conversion table, and an output means for outputting the code converted by the code conversion means to a Kanji printer.

【0010】[0010]

【実施例】次に、本発明の実施例について、図面を参照
して説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0011】図1は本発明の一実施例の構成を示すブロ
ック図、図2は図1に示す変換テーブルの説明図、図3
は図1に示すOS部の動作を示す流れ図である。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, FIG. 2 is an explanatory diagram of the conversion table shown in FIG. 1, and FIG.
2 is a flowchart showing the operation of the OS unit shown in FIG. 1.

【0012】図1に示すプリンタ制御方式は、情報処理
を行うCPU1aと、OSに指定を与えるJCLのファ
イル定義文を格納する磁気ディスク装置等のJCL格納
装置2と、1バイトコードでANK文字を印字し2バイ
トコードで漢字を印字可能な漢字プリンタ3とから構成
されている。
In the printer control system shown in FIG. 1, a CPU 1a for information processing, a JCL storage device 2 such as a magnetic disk device for storing a JCL file definition statement for designating an OS, and an ANK character as a 1-byte code. It is composed of a kanji printer 3 which can print and print kanji with a 2-byte code.

【0013】CPU1aは、1バイトコードと2バイト
コードとを対応させた変換テーブル20と、OSが動作
するOS部10aと、利用者プログラムである1バイト
コード出力用のプログラム31aが動作する利用者プロ
グラム部30aとから構成されている。利用者プログラ
ム部30aは、1バイトコード出力用のプログラム31
aからの出力レコード4aをOS部10aに出力する。
OS部10aは、JCL格納装置2からJCLを順次入
力するJCL入力部11と、JCL入力部11が入力し
たJCLから漢字プリンタ用ファイル定義文の有無を判
断するファイル定義文判断部12と、ファイル定義文判
断部12の判断結果から入力した出力レコード4aを変
換テーブル20を使って2バイトコードに変換するコー
ド変換部13と、コード変換部13が変換したコードで
漢字プリンタ3に出力する出力部14とから構成されて
いる。
The CPU 1a includes a conversion table 20 that associates 1-byte codes with 2-byte codes, an OS section 10a on which an OS operates, and a user who operates a 1-byte code output program 31a, which is a user program. It is composed of a program section 30a. The user program section 30a has a program 31 for outputting a 1-byte code.
The output record 4a from a is output to the OS unit 10a.
The OS unit 10a includes a JCL input unit 11 that sequentially inputs JCL from the JCL storage device 2, a file definition statement determination unit 12 that determines whether or not there is a Kanji printer file definition statement from the JCL input by the JCL input unit 11, and a file. A code conversion unit 13 that converts the output record 4a input from the determination result of the definition statement determination unit 12 into a 2-byte code using the conversion table 20, and an output unit that outputs the code converted by the code conversion unit 13 to the Kanji printer 3. It is composed of 14 and.

【0014】変換テーブル20は、1バイトコードを格
納する1バイトコード格納部21と、それと対応する2
バイトコードを格納する2バイトコード格納部22と、
1バイトコード格納部21と2バイトコード格納部22
とを1エントリ23として構成されている。
The conversion table 20 includes a 1-byte code storage unit 21 for storing a 1-byte code and a 2 corresponding thereto.
A 2-byte code storage unit 22 for storing a bytecode,
1-byte code storage unit 21 and 2-byte code storage unit 22
And one entry 23.

【0015】次に、このように構成された本発明のプリ
ンタ制御方式の動作について説明する。まず、JCL格
納装置2にJCLを格納する。利用者プログラムより、
OS部10aのOSが起動されると、ステップ31にお
いて、JCL入力部11がJCL格納装置2からJCL
を入力してファイル定義文判断部12に渡す。ステップ
32において、ファイル定義文判断部12はJCL入力
部11によって入力されたJCLを参照し、漢字プリン
タ用ファイル定義の有無を判断する。ステップ32にお
いて、漢字プリンタ用ファイル定義文が有った場合、ス
テップ33においてコード変換部13は、変換テーブル
20を参照し、出力レコード4aを1バイトコードから
2バイトコードに変換して出力部14に渡す。ステップ
32において、漢字プリンタ用ファイル定義文が無かっ
た場合、コード変換は行わず出力レコード4aをそのま
ま出力部14に渡す。ステップ34において、出力部1
4は漢字プリンタ3に出力させる。
Next, the operation of the printer control system of the present invention thus constructed will be described. First, the JCL is stored in the JCL storage device 2. From the user program,
When the OS of the OS unit 10a is started, in step 31, the JCL input unit 11 causes the JCL storage device 2 to delete the JCL.
Is input and passed to the file definition statement determination unit 12. In step 32, the file definition statement determination unit 12 refers to the JCL input by the JCL input unit 11 and determines whether or not there is a Kanji printer file definition. If there is a Kanji printer file definition statement in step 32, the code conversion unit 13 refers to the conversion table 20 in step 33, converts the output record 4a from a 1-byte code to a 2-byte code, and outputs it to the output unit 14. Pass to. If there is no Kanji printer file definition statement in step 32, code conversion is not performed and the output record 4a is passed to the output unit 14 as it is. In step 34, the output unit 1
4 is output to the kanji printer 3.

【0016】[0016]

【発明の効果】本発明のプリンタ制御方式は、1バイト
コードを2バイトコードに変換するための変換テーブル
を付加することにより、プリンタ環境の意識を不要にで
きるので、プログラムを簡素化できるという効果があ
る。
According to the printer control method of the present invention, by adding a conversion table for converting a 1-byte code into a 2-byte code, it is possible to make the program simple because it is not necessary to be aware of the printer environment. There is.

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

【図1】本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】図1に示す変換テーブルの説明図である。FIG. 2 is an explanatory diagram of a conversion table shown in FIG.

【図3】図1に示すOS部の動作を示す流れ図である。FIG. 3 is a flowchart showing the operation of the OS unit shown in FIG.

【図4】従来の一例を示すブロック図である。FIG. 4 is a block diagram showing a conventional example.

【図5】従来の他の例を示すブロック図である。FIG. 5 is a block diagram showing another conventional example.

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

1a CPU 2 JCL格納装置 3 漢字プリンタ 4a 出力レコード 10a OS部 11 JCL入力部 12 ファイル定義文判断部 13 コード変換部 14 出力部 20 変換テーブル 21 1バイトコード格納部 22 2バイトコード格納部 23 1エントリ 30a 利用者プログラム部 31a 1バイトコード出力用のプログラム 1a CPU 2 JCL storage device 3 Kanji printer 4a Output record 10a OS part 11 JCL input part 12 File definition sentence determination part 13 Code conversion part 14 Output part 20 Conversion table 21 1 byte code storage part 22 2 byte code storage part 23 1 entry 30a User program part 31a 1-byte code output program

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 オペレーションシステムに指定を与える
JCLのファイル定義文を格納したJCL格納手段と、
1バイトコードと2バイトコードとを対応させた変換テ
ーブルと、前記JCL格納装置からJCLを順次入力す
るJCL入力手段と、前記JCL入力手段が入力したJ
CLから漢字プリンタ用ファイル定義文の有無を判断す
るファイル定義文判断手段と、前記ファイル定義文判断
手段の判断結果から入力した利用者プログラムからの1
バイトコードである出力レコードを前記変換テーブルを
参照して2バイトコードに変換するコード変換手段と、
前記コード変換手段が変換したコードで漢字プリンタに
出力する出力手段とを含むことを特徴とするプリンタ制
御方式。
1. A JCL storage means for storing a JCL file definition statement for designating an operating system,
A conversion table in which 1-byte code and 2-byte code are associated, JCL input means for sequentially inputting JCL from the JCL storage device, and J input by the JCL input means.
1 from the file definition statement judging means for judging the presence or absence of the file definition statement for the Kanji printer from CL and the user program input from the judgment result of the file definition statement judging means.
Code conversion means for converting an output record, which is a byte code, into a 2-byte code by referring to the conversion table,
A printer control method comprising: an output unit that outputs the code converted by the code conversion unit to a Kanji printer.
JP3221947A 1991-09-03 1991-09-03 Printer control system Pending JPH0561616A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3221947A JPH0561616A (en) 1991-09-03 1991-09-03 Printer control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3221947A JPH0561616A (en) 1991-09-03 1991-09-03 Printer control system

Publications (1)

Publication Number Publication Date
JPH0561616A true JPH0561616A (en) 1993-03-12

Family

ID=16774652

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3221947A Pending JPH0561616A (en) 1991-09-03 1991-09-03 Printer control system

Country Status (1)

Country Link
JP (1) JPH0561616A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5657039A (en) * 1993-11-04 1997-08-12 Sharp Kabushiki Kaisha Display device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5657039A (en) * 1993-11-04 1997-08-12 Sharp Kabushiki Kaisha Display device

Similar Documents

Publication Publication Date Title
US5467433A (en) Label printing and data collection program generator
JP4451908B2 (en) Unicode converter
JPH0561616A (en) Printer control system
JP2624484B2 (en) Chinese input processing method
JPH06187107A (en) Slip distribution output device
JP3322042B2 (en) Character processor
JP2937641B2 (en) Communication method between application programs
JP2615851B2 (en) Key input device
JP2629946B2 (en) Document processing device
JPH05173536A (en) External character processor
JPH0528156A (en) Document data converter
JPH035878A (en) Converting method for japanese language business form typing image data in host computer
JP2509186B2 (en) Code conversion method
JP2000132465A (en) Device and method for code conversion of ftp server and record medium where code converting program is recorded
JPH06202995A (en) Character input device
JPH07319782A (en) Character code converter
JPH026163A (en) Printer
JPH01239623A (en) Document preparing device
JPH10232861A (en) Document output device
JPH0464166A (en) Character processor
JP2000105659A (en) Document preparation and reading-aloud device
JPH04148226A (en) Format overlay device
JPH0377528B2 (en)
JPH1153353A (en) Japanese document preparing device
JPH02122367A (en) Kana/kanji converter