JP2639348B2 - Online program message receiving method - Google Patents

Online program message receiving method

Info

Publication number
JP2639348B2
JP2639348B2 JP6164838A JP16483894A JP2639348B2 JP 2639348 B2 JP2639348 B2 JP 2639348B2 JP 6164838 A JP6164838 A JP 6164838A JP 16483894 A JP16483894 A JP 16483894A JP 2639348 B2 JP2639348 B2 JP 2639348B2
Authority
JP
Japan
Prior art keywords
data
message
request message
flag
reception
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 - Fee Related
Application number
JP6164838A
Other languages
Japanese (ja)
Other versions
JPH0816491A (en
Inventor
博明 藤原
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
Nippon Electric Co 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP6164838A priority Critical patent/JP2639348B2/en
Publication of JPH0816491A publication Critical patent/JPH0816491A/en
Application granted granted Critical
Publication of JP2639348B2 publication Critical patent/JP2639348B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、オンラインプログラム
の電文受信方式に関し、特に多数の端末とホストコンピ
ュータとの間のデータ送受信を制御するオンラインプロ
グラムの、端末からのデータ配信要求電文とその要求事
項の処理方式に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an online program message receiving method, and more particularly to a method for receiving a large number of terminals and a host computer.
Data delivery request message from terminal and its request of online program that controls data transmission / reception with computer
This relates to the processing method of the item .

【0002】[0002]

【従来の技術】本発明の先行技術としては、「受信メッ
セージ到着通知方式」と題して本願出願人が出願し特開
平1−222359号公報で開示された発明がある。図
3は、この先行技術の構成例を示すブロック図で、複数
の端末(図3には端末1だけが表示されている)が通信
回線10を経てホストコンピュータに接続されていると
き、ホストコンピュータ上で動作するオンラインプログ
ラム8は、受信予告命令5を受信メッセージ通知制御部
4に送り、この命令で規定する受信電文はこのオンライ
ンプログラムへ送ることを命令しておく。
2. Description of the Related Art As prior art of the present invention, there is an invention entitled "Received Message Arrival Notification System" filed by the present applicant and disclosed in Japanese Patent Laid-Open Publication No. 1-222359. Figure 3 is a block diagram showing a configuration example of the prior art, when a plurality of terminals (Tei Ru only terminal 1 is displayed in Fig. 3) is connected to the host computer via the communication line 10, the host computer The online program 8 that operates above sends the reception notice instruction 5 to the reception message notification control unit 4, and instructs that the reception message specified by this instruction be sent to this online program.

【0003】複数の端末から送られる電文は、メッセー
ジ保持部2で受信されてキューイングメールボックス7
に入れられる。オンラインプログラム8からの命令を受
けた受信メッセージ通知制御部4は、キューイングメー
ルボックス7を調べ、当該電文がすでに到着している場
合はこれをオンラインプログラム8に通知し、未到着の
場合は当該命令を登録しておいて、その命令に該当する
電文が到来した場合、これをオンラインプログラム8に
通知する。
[0003] Messages sent from a plurality of terminals are received by the message holding unit 2 and sent to the queuing mailbox 7.
Can be put in. The received message notification control unit 4 receiving the instruction from the online program 8 checks the queuing mailbox 7 and notifies the online program 8 if the message has already arrived, and if the message has not arrived, the message has not been received. The command is registered, and when a message corresponding to the command arrives, this is notified to the online program 8.

【0004】このように、1つのオンラインプログラム
は当該プログラムに入力すべき電文に対する電文受信命
令をホストコンピュータの関係機関に対して発行する。
図2は、従来のオンラインプログラムにおける電文受信
命令発行後の動作を示すフローチャートであって、21
〜25は各プログラムステップを示す。すなわち、従来
は電文受信命令を発行する(ステップ21)と、その命
令の電文が受信されるまで、このオンライプログラムは
他のプログラムステップを実行せず、受信電文の到来を
待っていた(ステップ22)。そして、受信電文に対す
る処理(ステップ25)が終了すると、ステップ21に
帰り、次の電文受信命令を発行することとしている。
As described above, one online program issues a message receiving instruction for a message to be input to the program to a related organization of the host computer.
FIG. 2 is a flowchart showing the operation of the conventional online program after issuing a message receiving instruction.
25 indicate each program step. That is, conventionally, when a message receiving instruction is issued (step 21), the online program waits for the arrival of the received message without executing other program steps until the message of the command is received (step 22). ). Then, when the process for the received message (Step 25) is completed, the process returns to Step 21 and issues the next message receiving command.

【0005】[0005]

【発明が解決しようとする課題】一般に、電文受信命令
を発行してから受信電文が到来するまでには、相当の時
間があり、この時間のあいだ何の処理も行わないでだだ
待っている上記のような従来のオンラインプログラムの
電文受信方式では、処理に多くの時間がかかり、多数の
端末に対する処理を所望の時間内に実行するためには、
多数のオンラインプログラムを必要とし、これは多くの
メモリを必要とし、且つその制御も面倒になる等の問題
点があった。
Generally, there is a considerable amount of time from the issuance of a message receiving instruction to the arrival of a received message, and during this time, there is no waiting for any processing. In the message receiving method of the conventional online program as described above, it takes a lot of processing time, and in order to execute processing for a large number of terminals within a desired time,
A large number of online programs are required, which requires a large amount of memory, and the control thereof is troublesome.

【0006】本発明の目的は従来のものにおける上述の
問題点を解決するためになされたもので、小数のオンラ
インプログラムで多数の端末を相手とするオンラインプ
ログラムの電文受信方式、特に多数の端末とホストコン
ピュータとの間のデータ送受信を制御するオンラインプ
ログラムの、端末からのデータ配信要求電文とその要求
事項の効率的な処理方式を提供することである。
SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned problems in the prior art, and a method for receiving an online program message using a small number of online programs to a large number of terminals , in particular, a large number of terminals. Host computer
An online program that controls data transmission to and from the computer.
Data distribution request message from the terminal of the program and its request
It is to provide an efficient processing method of matters .

【0007】[0007]

【課題を解決するための手段】本発明に係わるオンライ
ンプログラムの電文受信方式は、複数の端末と、この複
数の端末に対するホストコンピュータとの間でデータの
送受を実行するときに、前記ホストコンピュータに設け
られ、前記複数の端末から前記ホストコンピュータに向
けて送信される通信文を受信してその通信文の要求事項
処理するオンラインプログラム、前記通信文の処理
に関する電文受信方式において、当該オンラインプログ
ラムが端末からのデータ配信要求電文を受信すべき電文
受信命令を発行した後は、当該データ配信要求電文が受
信されるまで当該オンラインプログラムを待ち状態にし
ておく受信同期方式で動作するか、当該データ配信要求
電文が受信されるまでの間に他のプログラムステップを
実行する受信非同期方式で動作するか表す受信同期フ
ラグと、前記複数の端末の各端末から前記ホストコンピ
ュータとの間データの送受信を要求するデータ配信要
求電文を受信しているか否かを示す配信要求中フラグと
を設け、初期状態においては、前記受信同期フラグをオ
ンに設定し、専らデータ配信要求電文の受信を監視し、
いずれかの端末からデータ配信要求電文を受信したとき
は、当該データ配信要求電文の送信元である端末に対し
前記配信要求中フラグをオンに設定した後、前記受信同
期フラグをオフに設定し、前記受信同期フラグがオフの
ときは、いずれの端末からもデータ配信要求電文が到来
しないあいだは当該オンラインプログラムは前記配信要
求中フラグをオンに設定してある端末に対する配信デー
タの配信処理を実行し、配信処理すべきデータがなくな
ったとき前記受信同期フラグをオンにセットすることを
特徴とする。
According to the present invention, there is provided an on-line program message receiving system which transmits and receives data between a plurality of terminals and a host computer for the plurality of terminals. A communication message transmitted from the plurality of terminals to the host computer, and the requirements of the communication message are provided.
Processing the online program, the processing of the communication text
In the message receiving method, after the online program issues a message receiving instruction to receive the data delivery request message from the terminal, the online program waits until the data delivery request message is received. A reception synchronization flag indicating whether to operate in a synchronous manner or to operate in a reception asynchronous manner to execute another program step until the data distribution request message is received; and data delivery requirements that require transmission and reception of data between the host computer from the terminal
A delivery request flag indicating whether or not a power request message has been received is provided.In the initial state, the reception synchronization flag is set to ON, and the reception of the data delivery request message is monitored exclusively,
When a data distribution request message is received from any terminal, the distribution requesting flag is set to on for the terminal that is the transmission source of the data distribution request message, and then the reception synchronization flag is set to off. When the reception synchronization flag is off, a data delivery request message arrives from any terminal.
The is between not be the online program executes the distribution processing of the distribution data to a terminal is set to turn on the delivery request flag is set on the reception synchronization flag when the data to be distributed processing has run out Features.

【0008】また、前記配信要求中フラグは、初期化の
時点においてすべてクリアされることを特徴とする。
[0008] Further, the present invention is characterized in that the distribution request flag is all cleared at the time of initialization.

【0009】さらに、前記受信同期フラグは、当該フラ
グがオフ状態で、且つ新たな配信要求電文が到来せず、
また、前記配信要求中フラグがオンになっている端末が
存在しないときはオフ状態にリセットされることを特徴
とする。
[0009] Further, the reception synchronization flag is in a state where the flag is in an off state, and no new distribution request message arrives ,
Further, characterized in that it is reset to the OFF state when the terminal said distribution request flag is on is no <br/> exist.

【0010】[0010]

【作用】本発明のオンラインプログラムの電文受信方式
は、受信同期フラグを設け、このフラグがオフの状態
で、受信電文の無い場合にはこのオンラインプログラム
が他のプログラムステップ、すなわち、既にデータ配信
要求電文を受付ている端末への当該データ配信処理を実
行するようにしたので、多数の端末からの処理要求を1
つのアプリケーションプログラムで処理することが可能
となる。
According to the telegram receiving method of the online program of the present invention, a reception synchronization flag is provided, and when this flag is off and there is no received telegram, the online program executes another program step , that is, data distribution has already been performed.
Since the data distribution process to the terminal receiving the request message is executed, processing requests from a large number of terminals are received by one.
It is possible to process with one application program.

【0011】[0011]

【実施例】以下、図面について本発明の実施例を説明す
る。図1は、本発明の一実施例を示すフローチャート
で、図において、図2と同一符号は同一ステップを示
し、同一処理が行われるので、重複した説明は省略す
る。本発明では、受信同期フラグを備え、このフラグが
オンのときは、いずれかの端末からのデータ配信要求
文が到来するまでは、このオンラインプログラムは他の
プログラムステップを実行しないで、専らデータ配信要
電文の到来を待っており、このフラグがオフのとき
データ配信要求電文の到来しないときは他のプログラム
ステップ、すなわち、既にデータ配信要求電文を受け取
っている端末へのデータ配信を実行するように制御す
る。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a flowchart showing an embodiment of the present invention. In the figure, the same reference numerals as those in FIG. 2 denote the same steps, and the same processing is performed. In the present invention, a reception synchronization flag is provided, and when this flag is on, this online program does not execute other program steps until a data distribution request message from any terminal arrives. It is necessary only for data distribution
And waiting for the arrival of the required telegram, when this flag is off
When the data delivery request message does not arrive, another program step , that is, the data delivery request message has already been received
Is controlled to execute data distribution to the terminal that has been connected.

【0012】すなわち、ステップ11の時点で初期化を
行い、受信同期フラグをオンし、配信要求フラグをクリ
アする。ここで配信とは、ホストコンピュータから端末
へデータを送信する処理又は端末からホストコンピュー
タへデータを送信する処理を言い、配信要求中フラグが
セットされている端末は、ホストコンピュータとの間の
配信を要求していること表す。
That is, initialization is performed at step 11, the reception synchronization flag is turned on, and the distribution request flag is cleared. Here, the distribution refers to a process of transmitting data from the host computer to the terminal or a process of transmitting data from the terminal to the host computer, and the terminal in which the distribution requesting flag is set performs distribution between the host computer and the terminal. Indicates that you are requesting.

【0013】ステップ21,22は、図2の場合と同様
であり、ステップ22の判定がNOのときステップ12
へ進むが、受信同期フラグがオンであるので、ステップ
22へ戻り、データ配信要求電文が到来するまで待って
いる。データ配信要求電文があったときステップ25に
るが、本実施例ではこの時点ではデータ配信要求電文
に対する受付け処理をだけを行う。すなわち、ステップ
25の後、ステップ18,19を実行し、当該端末の配
信要求中フラグをオンにし、受信同期フラグをオフに
し、ステップ21に帰り、次の電文受信命令が発行され
る。この命令に対しステップ22,25を経て18,1
9に入るときは、既にフラグがオン(ステップ18)及
びオフ(ステップ19)になっているのでステップ1
8,19の実行は影響を及ぼさない。
Steps 21 and 22 are the same as those in FIG. 2, and if the determination in step 22 is NO, step 12
However, since the reception synchronization flag is ON, the process returns to step 22 and waits until a data distribution request message arrives. Although <br/> Ru moves to step 25 when there is a data delivery request message, in this embodiment data delivery request message at this time
Only the accepting process is performed. That is, after step 25, steps 18 and 19 are executed, the distribution requesting flag of the terminal is turned on, the reception synchronization flag is turned off, and the process returns to step 21 to issue the next message reception command. In response to this instruction, steps 18 and 18
When entering step 9, the flag is already on (step 18) and off (step 19), so step 1
Execution of 8, 19 has no effect.

【0014】ステップ19からステップ21を経てステ
ップ22に入る時は、ステップ22の判定がNOであれ
ば、ステップ12の判定もNOであるので、ステップ1
3に移り、先にステップ18でデータ配信要求を受付け
た端末の配信要求中フラグをオンにしてあるので、ステ
ップ14に移り、当該端末への配信データの配信処理を
行う。このようにしてデータ配信要求電文の到来した
きは、ステップ25のデータ配信要求電文に対する処理
を実行し、データ配信要求電文の到来しないときはステ
ップ14の配信データの配信処理を行い、当該端末への
配信データのデータエンドに達すると、ステップ16の
判定に入り、配信要求中フラグがオンとなっている他端
が無い場合は受信同期フラグをオンにして(ステップ
17)次の電文受信命令を発行する。
When entering step 22 from step 19 through step 21, if the determination in step 22 is NO, the determination in step 12 is also NO.
Move to 3 and first receive the data distribution request in step 18
Since the distribution requesting flag of the terminal that has been turned on has been turned on, the process proceeds to step 14 and the distribution data distribution processing to the terminal is performed. Thus-out in the arriving data delivery request message to <br/> executes processing on data delivery request message in step 25, when not arrival of data delivery request message is distributed processing of the distribution data of step 14 To the terminal .
When the data end of the distribution data is reached, the determination in step 16 is entered, and the other end where the distribution requesting flag is on
If there is no end, the reception synchronization flag is turned on (step 17), and the next message reception instruction is issued.

【0015】以上のように本発明のオンラインプログラ
ムの電文受信方式では、データ配信要求電文に対する
付け処理以外に処理すべき作業(たとえば配信データの
配信処理)が存在する限り、データ配信要求電文の到来
を待つ間に、これらの処理が実行されるので、アプリケ
ーションプログラムによる処理を効率よく行えることに
なる。
As described above, in the online program message receiving method according to the present invention, a data delivery request message is received.
As long as there is work to be processed other than attaching processing (for example, distribution data distribution processing), these processings are executed while waiting for the arrival of a data distribution request message , so that processing by the application program can be performed efficiently. become.

【0016】[0016]

【発明の効果】以上説明したように本発明によれば、多
数の端末からの処理要求を1つのオンラインプログラム
で処理することができ、効率の良い処理が可能であると
共に、メモリを経済的に使用することができる等の効果
がある。
As described above, according to the present invention, processing requests from a large number of terminals can be processed by one online program, so that efficient processing can be performed and memory can be economically used. There are effects such as being able to be used.

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

【図1】本発明の一実施例を示すフローチャートであ
る。
FIG. 1 is a flowchart showing one embodiment of the present invention.

【図2】従来の装置の動作を示すフローチャートであ
る。
FIG. 2 is a flowchart showing the operation of a conventional device.

【図3】従来の装置の構成例を示すブロック図である。FIG. 3 is a block diagram illustrating a configuration example of a conventional device.

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

11 初期化ステップ 12 判定ステップ(受信同期フラグオン) 13 判定ステップ(配信要求中の端末あり) 14 配信データの配信処理ステップ 17 受信同期フラグオンステップ 18 配信要求中フラグオンステップ 19 受信同期フラグオフステップ 21 電文受信命令発行ステップ 22 判定ステップ(受信電文あり) 11 Initialization Step 12 Judgment Step (Reception Synchronization Flag On) 13 Judgment Step (Delivery Requested Terminal) 14 Distribution Data Distribution Processing Step 17 Reception Synchronization Flag On Step 18 Distribution Request Flag On Step 19 Reception Synchronization Flag Off Step 21 Message receiving instruction issue step 22 Judgment step (with received message)

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 複数の端末と、この複数の端末に対する
ホストコンピュータとの間でデータの送受を実行すると
きに、前記ホストコンピュータに設けられ、前記複数の
端末から前記ホストコンピュータに向けて送信される通
信文を受信してその通信文の要求事項を処理するオンラ
インプログラムの、前記通信文の処理に関する電文受信
方式において、 当該オンラインプログラムが端末からのデータ配信要求
電文を受信すべき電文受信命令を発行した後は、当該デ
ータ配信要求電文が受信されるまで当該オンラインプロ
グラムを待ち状態にしておく受信同期方式で動作する
か、当該データ配信要求電文が受信されるまでの間に他
のプログラムステップを実行する受信非同期方式で動作
するかを表す受信同期フラグと、前記複数の端末の各端
末から前記ホストコンピュータとの間のデータの送受信
を要求するデータ配信要求電文を受信しているか否かを
示す配信要求中フラグとを設け、 初期状態においては、前記受信同期フラグをオンに設定
し、専らデータ配信要求電文の受信を監視し、 いずれかの端末からデータ配信要求電文を受信したとき
は、当該データ配信要求電文の送信元である端末に対し
前記配信要求中フラグをオンに設定した後、前記受信同
期フラグをオフに設定し、 前記受信同期フラグがオフのときは、いずれの端末から
もデータ配信要求電文が到来しないあいだは当該オンラ
インプログラムは前記配信要求中フラグをオンに設定し
てある端末に対する配信データの配信処理を実行し、配
信処理すべきデータがなくなったとき前記受信同期フラ
グをオンにセットする制御手段を備えたことを特徴とす
るオンラインプログラムの電文受信方式。
When transmitting / receiving data between a plurality of terminals and a host computer for the plurality of terminals, the data is provided to the host computer and transmitted from the plurality of terminals to the host computer. In a message receiving method related to the processing of the message, an online program for receiving the message and processing the requirements of the message includes a message receiving command for receiving the data delivery request message from the terminal. After the issuance, the online program waits until the data distribution request message is received.The online program operates in a reception synchronous mode, or another program step is executed until the data distribution request message is received. A reception synchronization flag indicating whether to operate in a reception asynchronous mode to be executed, and whether or not each of the plurality of terminals A distribution requesting flag indicating whether or not a data distribution request message requesting data transmission / reception with the host computer has been received; in an initial state, the reception synchronization flag is set to ON; Monitoring the reception of the data distribution request message, and when receiving the data distribution request message from any terminal, after setting the distribution request flag to ON for the terminal that is the transmission source of the data distribution request message, The reception synchronization flag is set to OFF, and when the reception synchronization flag is OFF, the online program sets the distribution requesting flag to ON while a data distribution request message does not arrive from any terminal. Control for executing distribution processing of distribution data to a terminal and setting the reception synchronization flag to ON when there is no more data to be distributed. A method for receiving a telegram of an online program, characterized by comprising means .
【請求項2】 前記制御手段は、初期化の時点において
すべての端末に関する前記配信要求中フラグをクリアす
ことを特徴とする請求項第1項記載のオンラインプロ
グラムの電文受信方式。
2. The control means clears the distribution request flag for all terminals at the time of initialization .
Message receiving method as in claim 1 wherein the online program characterized by that.
【請求項3】 前記制御手段は、前記受信同期フラグ
オフ状態で、且つ新たな配信要求電文が到来せず、ま
た、前記配信要求中フラグがオンになっている端末が
在しない時に該受信同期フラグをオン状態にセットする
ことを特徴とする請求項第1項又は第2項記載のオンラ
インプログラムの電文受信方式。
3. The control means according to claim 1 , wherein said reception synchronization flag is in an OFF state, no new distribution request message arrives, and a terminal whose distribution requesting flag is ON is present.
The electronic program receiving method for an online program according to claim 1 or 2 , wherein the reception synchronization flag is set to an on state when the information is not present .
JP6164838A 1994-06-24 1994-06-24 Online program message receiving method Expired - Fee Related JP2639348B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6164838A JP2639348B2 (en) 1994-06-24 1994-06-24 Online program message receiving method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6164838A JP2639348B2 (en) 1994-06-24 1994-06-24 Online program message receiving method

Publications (2)

Publication Number Publication Date
JPH0816491A JPH0816491A (en) 1996-01-19
JP2639348B2 true JP2639348B2 (en) 1997-08-13

Family

ID=15800889

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6164838A Expired - Fee Related JP2639348B2 (en) 1994-06-24 1994-06-24 Online program message receiving method

Country Status (1)

Country Link
JP (1) JP2639348B2 (en)

Also Published As

Publication number Publication date
JPH0816491A (en) 1996-01-19

Similar Documents

Publication Publication Date Title
JPH06243070A (en) Inter-processor communication system
JPH07210519A (en) Data transfer control method and transmission/reception controller
JP2639348B2 (en) Online program message receiving method
JP2705617B2 (en) Power off method
JP3360727B2 (en) Packet transfer system and packet transfer method using the same
JP2573332B2 (en) Data transfer control method
US5790135A (en) Process control implementing and visualizing method
JPS5887621A (en) Information transmission and reception system
JPH06332866A (en) Inter-program communication system
JPH09190417A (en) Multi-processor system
JPH05151132A (en) Inter-remote job communication system
JPH10289196A (en) Computer and transfer method for peripheral device control data in computer
JPH05158874A (en) Interactive processing system for multiple host system
JPH03266057A (en) Communication processing securing method for electronic computer system
JPH0962517A (en) Task controller
JP3172196B2 (en) Communication control method
JPS6327942A (en) Message input device
JPH04113442A (en) Inter-processor communication system
JPH03208131A (en) Task control system for operating system
JPH06250910A (en) Management system for message queue incoming call
JPH01256248A (en) Hierarchical protocol parallel processor
JPS60241154A (en) Multiplex answer telegram control system
JPH0535506A (en) Program dispatch processing system
JPS63296153A (en) System for controlling command concatenation of inter-program communication processing system
JPH0369245A (en) Reception data monitor system for information processor

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees