Online System オペレータ
いくつかのネットワークサブプログラムは、(それに限定されませんが)Online System ネットワークオペレータとの使用を目的としています。以下はこれらのオペレータの概要です。
Online System ネットワークオペレータが関わるすべてのネットワーク操作では、送受信されるデータの書式についていくつかの規約があります。データは、オペコード、長さ、テキストの 3 つのフィールドからなる「メッセージ」にまとめられ、この順で並びます。オペコードは長さ 1 バイトで、テキストフィールドをどのように解釈するかを示すコードです。長さフィールドは 2 バイトで、実際のデータを含むテキストフィールドの長さをビット単位で示します。(オペコードと長さの各フィールドを合わせてヘッダと呼びます。)
現在定義されているオペコードは次のとおりです。
Op Code Meaning
0 This op code is a NOP. No text field exists, and the
contents of the length field are unpredictable. (This
op code is used mainly as a delimiter.)
1 The text field contains EBCDIC characters, one
character per byte. The Online System operators
consider the characters as intended for display as soon
as the text field has been received.
2 The text contains codes for keypushes, one byte per
key. The Online operators consider the keys as
intended for execution as soon as the text field has
been received.
3 The same as for an op code of 2, except that the Online
operators consider that the execution of the keys will
be delayed until all data for that receive operations
has been received.
Online System オペレータが送受信するデータの標準書式はメッセージの列であり、最後のメッセージは NOP オペコードを持つヘッダによって示され、トレーラと呼ばれます。これらの規約は既定の状態であり、適切なプログラミングによっていずれも変更できます。
以下、Online System オペレータでの使用を目的としたサブプログラムの説明です。