TSO terminal interface: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (revise how to invoke Model 204)
m (clarify CLIST calls)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
==Overview==
==Overview==
<p>
<p>
The TSO (Time Sharing Option) interface causes a TSO terminal to appear to be a Model 204 terminal. The TSO interface program is run as a program in the TSO user region, either as a command processor (CP) or as a called program.</p>
The TSO (Time Sharing Option) interface causes a TSO terminal to appear to be a Model&nbsp;204 terminal. The TSO interface program is run as a program in the TSO user region, either as a command processor (CP) or as a called program.</p>
<p>This chapter summarizes terminal operation particulars for the TSO interface end user.</p>
<p>
This topic summarizes terminal operation particulars for the TSO interface end user.</p>


===Terminals supported===
===Terminals supported===
Line 8: Line 9:
The TSO interface supports the use of:</p>
The TSO interface supports the use of:</p>
<ul>
<ul>
<li>IBM 3270 and compatible terminals. Model 6 terminals are not currently supported by this interface.</li>
<li>IBM 3270 and compatible terminals. <var>[[MODEL parameter|MODEL]]</var> 6 terminals are not currently supported by this interface.</li>
<li>Teletypes and Teletype-compatible terminals  </li>
<li>Teletypes and Teletype-compatible terminals  </li>
</ul>
</ul>
Line 25: Line 26:
<ul>
<ul>
<li>Assemble, link-edit, and install the appropriate TSO programs.</li>
<li>Assemble, link-edit, and install the appropriate TSO programs.</li>
<li>Set the IODEV parameter on the user's parameter line for the terminal, specifying 11 for full-screen TSO usage and 29 for line-at-a-time TSO usage.</li>
<li>Set the <var>[[IODEV parameter|IODEV]]</var> parameter on the user's parameter line for the terminal, specifying 11 for full-screen TSO usage and 29 for line-at-a-time TSO usage.</li>
</ul>
</ul>
<p>
<p>
For more information about these system manager actions, see [[Defining the user environment (CCAIN)]].</p>
For more information about these system manager actions, see [[Defining the user environment (CCAIN)]].</p>
<p>
<p>
Much of the information in this chapter is presented according to terminal IODEV setting. IODEV 11 terminals are full-screen and IODEV 29 terminals are line-at-a-time. For the general features of full-screen and line-at-a-time terminal processing, see [[Terminal processing]].</p>
Much of the information in this topic is presented according to terminal <var>IODEV</var> setting. <var>IODEV</var> 11 terminals are full-screen and <var>IODEV</var> 29 terminals are line-at-a-time. For the general features of full-screen and line-at-a-time terminal processing, see [[Terminal processing]].</p>


===Using a CLIST===
===Using a CLIST===
<p>
<p>
A CLIST can be established by the system manager when TSO line-at-a-time (IODEV = 29) and full-screen (IODEV = 11) SOUL connections are being used. This allows input to be passed to TSO from the CLIST, rather than from the terminal, as described in [[#CLIST input|CLIST input]].</p>
A CLIST can be established by the system manager when TSO line-at-a-time (<var>IODEV</var> 29) and full-screen (<var>IODEV 11</var>) SOUL connections are being used. This allows input to be passed to TSO from the CLIST, rather than from the terminal, as described in [[#CLIST input|CLIST input]].</p>


==Invoking and disconnecting from the TSO interface==
==Invoking and disconnecting from the TSO interface==
<p>
<p>
The steps required for logging in to Model 204 through the TSO interface and for disconnecting from the TSO interface are described in this section.</p>
The steps required for logging in to Model&nbsp;204 through the TSO interface and for disconnecting from the TSO interface are described in this section.</p>


===Getting online===
===Getting online===
<p>
<p>
To connect to Model 204 by using the TSO system interface, you must first log in to TSO using the procedures defined at the installation. The installation supervisor has the necessary installation-specific information. TSO normally indicates that it is ready to accept input by displaying:  </p>
To connect to Model&nbsp;204 by using the TSO system interface, you must first log in to TSO using the procedures defined at the installation. The installation supervisor has the necessary installation-specific information. TSO normally indicates that it is ready to accept input by displaying:  </p>
<p class="code">READY</p>
<p class="code">READY</p>
<p>
<p>
Line 51: Line 52:
<li>You normally enter the following command for a full-screen connection:
<li>You normally enter the following command for a full-screen connection:
<p class="code">M204FS </p>
<p class="code">M204FS </p>
Where <code>M204FS</code> identifies a CLIST member that contains the single line:  
Where <code>M204FS</code> identifies a [[#CLIST input|CLIST member]] that contains the single line:  
<p class="code">CALL '<i>your.M204.loadlib</i>(M204FS)' '<i>subsystem</i>:<i>channel_name</i>'</p></li>
<p class="code">CALL '<i>your.M204.loadlib</i>(M204FS)' '<i>subsystem</i>:<i>channel_name</i>'</p>
<p>
The <code>M204FS</code> CLIST invokes the Model&nbsp;204 load module also named <code>M204FS</code>. </p></li>


<li>For a line-at-a-time connection, you enter:
<li>For a line-at-a-time connection, you enter:
Line 63: Line 66:
<table>
<table>
<tr><td><var class="term">subsystem</var></td>
<tr><td><var class="term">subsystem</var></td>
<td>Specifies an optional one-to-four character subsystem name, plus colon(<tt>:</tt>), to override the IGCLM244 subsystem value. Available for z/OS with [[Defining the user environment (CCAIN)#Two CRAM options|CRAM-XDM]] only.</td></tr>
<td>Specifies an optional one-to-four character subsystem name, plus colon(<tt>:</tt>), to override the CRAM <code>IGCLM244</code> module's subsystem value. Available for z/OS with [[Defining the user environment (CCAIN)#Two CRAM options|CRAM-XDM]] only.</td></tr>


<tr><td><var class="term">channel_name</var></td>
<tr><td><var class="term">channel_name</var></td>
Line 69: Line 72:
</table>
</table>
<p>
<p>
If the subsystem is not specified, the default is the IGCLM244 value.</p>
If the subsystem is not specified, the default is the <code>IGCLM244</code> module's value.</p>
<p>
<p>
If the channel-name is not specified, the default name usually is assumed: for full-screen, <code>M204FULL</code>; for line-at-a-time, <code>M204PROD</code>. Verify with the system manager whether the channel name is to be specified.</p></li>
If the channel-name is not specified, the default name usually is assumed: for full-screen, <code>M204FULL</code>; for line-at-a-time, <code>M204PROD</code>. Verify with the system manager whether the channel name is to be specified.</p></li>
Line 85: Line 88:
<table>
<table>
<tr><td><var class="term">library name</var></td>
<tr><td><var class="term">library name</var></td>
<td>Specifies the fully qualified data set name for the load library containing the TSO interface module and M204 is the module name or alias.</td></tr>
<td>Specifies the fully qualified data set name for the load library containing the TSO interface module, and <code>M204FS</code> and <code>M204TTY</code> are the module names or aliases.</td></tr>


<tr><td><var class="term">subsystem</var></td>
<tr><td><var class="term">subsystem</var></td>
<td>Optional, specifies a subsystem name to override the subsystem value in IGCLM244. Available only for z/OS with CRAM-XDM. </td></tr>
<td>Optional, specifies a subsystem name to override the subsystem value in the IGCLM244 module. Available only for z/OS with CRAM-XDM. </td></tr>


<tr><td nowrap><var class="term">channel_name</var></td>
<tr><td nowrap><var class="term">channel_name</var></td>
<td>Optional, necessary only if the channel name is not the default name. The full-screen default channel name is <code>M204FULL</code>; the line-at-a-time default name is <code>M204PROD</code>. The supervisor can tell you whether the channel name is to be included in the <code>CALL</code>.</td>
<td>Optional, necessary only if the channel name is not the default name. The full-screen default channel name is <code>M204FULL</code>; the line-at-a-time default name is <code>M204PROD</code>. The supervisor can tell you whether the channel name is to be included in the <code>CALL</code>.</td></tr>
</tr>
</table></li>
</table></li>
</ul>
</ul>
<p>
<p>
The TSO interface establishes a connection to Model&nbsp;204, locks the terminal to the command processor or called program, and replies:
The TSO interface establishes a connection to Model&nbsp;204, locks the terminal to the command processor or called program, and replies: </p>
<p class="code">CONNECTED TO MODEL 204 </p>
<p class="code">CONNECTED TO MODEL 204 </p>
<p>
<p>
When the terminal is prepared to accept input, it issues a prompting character and/or unlocks the keyboard (see [[#Input lines|Input lines]]). The user can now enter any desired system control commands. If the interface responds with any other message, control returns automatically to TSO. See the Rocket Model&nbsp;204 messages documentation for a detailed description of TSO: messages.</p>
When the terminal is prepared to accept input, it issues a prompting character and/or unlocks the keyboard (see [[#Input lines|Input lines]]). The user can now enter any desired system control commands. If the interface responds with any other message, control returns automatically to TSO.</p>
<p>
<p>
You can now log in to Model&nbsp;204. In general, Model&nbsp;204 regards <var>LOGIN</var> and <var>LOGON</var> as equivalent commands.</p>
You can now log in to Model&nbsp;204. In general, Model&nbsp;204 regards <var>LOGIN</var> and <var>LOGON</var> as equivalent commands.</p>
Line 105: Line 107:
===CLIST input===
===CLIST input===
<p>
<p>
Input can be passed to the TSO line-at-a-time or full-screen SOUL interface from a CLIST that has been defined by the system manager. Input can also be passed from a TSO file (in full-screen mode only). This alternate means of input to Model 204 is valid only when the interface is executed as a TSO command processor.</p>
Input can be passed to the TSO line-at-a-time or full-screen SOUL interface from a CLIST that has been defined by the system manager. Input can also be passed from a TSO file (in full-screen mode only). This alternate means of input to Model&nbsp;204 is valid only when the interface is executed as a TSO command processor.</p>
<p>
<p>
The use of a CLIST or file allows a series of commands to be defined and executed. If the user invokes a CLIST, Model 204 executes all of the commands in the CLIST and then allows additional lines to be entered from the terminal.</p>
The use of a CLIST or file allows a series of commands to be defined and executed. If the user invokes a CLIST, Model&nbsp;204 executes all of the commands in the CLIST and then allows additional lines to be entered from the terminal.</p>
<p>
<p>
To invoke a CLIST or TSO file, use the following command:</p>
To invoke a CLIST or TSO file, use the following command:</p>


<b>Syntax</b>
<p class="code">{M204FS | M204TTY} ['[<i>subsystem</i>:] <i>channel_name</i>'] [FILE(<i>ddname</i>) | CLIST] [DEBUG]</p>
<p class="code">{M204FS | M204TTY} ['[<i>subsystem</i>:]<i>channel_name</i>']  
  [FILE(<i>ddname</i>) | CLIST] [DEBUG]</p>
<p>
<p>
where:</p>
where:</p>
<table>
<table>
<tr>
<tr><td>M204FS and M204TTY</td>
<td>CLIST</td>
<td>Identify the Model&nbsp;204 load modules for the full-screen and line-at-a-time interfaces, respectively.</td></tr>
<td>Specifies that user input is obtained from the current CLIST.</td>
 
</tr>
<tr><td><i>subsystem</i> and <i>channel_name</i></td>
<tr>
<td>Identify the CRAM subsystem and channel name, as described in the preceding section.</td></tr>
<td> FILE </td>
 
<td>Specifies that user inputs obtained from a file containing 80-byte records. If a <var class="term">ddname</var> is not specified, then 'COMMAND' is assumed. This file must be allocated to the TSO user region before executing the command.
<tr><td>FILE </td>
<p class="note"><b>Note:</b> The FILE option can be used only if the user's terminal is set to full-screen mode (IODEV = 11). It cannot be used in line-at-a-time mode (IODEV = 29).</p></td>
<td>Specifies that user inputs obtained from a file containing 80-byte records. If a <var class="term">ddname</var> is not specified, then <code>COMMAND</code> is assumed. This file must be allocated to the TSO user region before executing the command.
</tr>
<p class="note"><b>Note:</b> The <var>FILE</var> option can be used only if the user's terminal is set to full-screen mode (<code>IODEV=11</code>). It cannot be used in line-at-a-time mode (<code>IODEV=29</code>).</p></td></tr>
<tr>
 
<td>DEBUG</td>
<tr><td>CLIST</td>
<td>Specifies that all input and Model 204 output is sent to the terminal, regardless of origin.
<td>Specifies that user input is obtained from the current CLIST.</td></tr>
<p class="note"><b>Note:</b> The DEBUG option can be used only in full-screen mode (IODEV = 11).</p></td>
 
</tr>
<tr><td>DEBUG</td>
<td>Specifies that all input and Model&nbsp;204 output is sent to the terminal, regardless of origin.
<p class="note"><b>Note:</b> The <var>DEBUG</var> option can be used only in full-screen mode (<code>IODEV=11</code>).</p></td></tr>
</table>
</table>
<p>
<p>
The commands described in the CLIST commands table allow the terminal user to: </p>
The commands described in the "CLIST commands" table, below, allow the terminal user to: </p>
<ul>
<ul>
<li>
<li>Switch between a CLIST or file and the terminal (in full-screen mode only)</li>
Switch between a CLIST or file and the terminal (in full-screen mode only)</li>
 
<li>
<li>Switch back and forth between a CLIST and the terminal (in line-at-a-time mode only)</li>
Switch back and forth between a CLIST and the terminal (in line-at-a-time mode only)</li>
 
<li>
<li>Suppress terminal output (in both full-screen and line-at-a-time modes). </li>
Suppress terminal output (in both full-screen and line-at-a-time modes). </li>
</ul>
</ul>
<p>
<p>
These commands are processed immediately by the TSO interface. Each of the commands can be entered in one of the following ways:</p>
These commands are processed immediately by the TSO interface. Each of the commands can be entered in one of the following ways:</p>
<ul>
<ul>
<li>
<li>directly from a terminal, CLIST, or file</li>
directly from a terminal, CLIST, or file</li>
<li>produced as output from Model&nbsp;204</li>
<li>
produced as output from Model 204</li>
</ul>
</ul>
<p>
<p>
If one of the commands is entered from a terminal, it is not passed to Model 204. If it is produced by Model 204, it is not sent to the terminal.</p>
If one of the commands is entered from a terminal, it is not passed to Model&nbsp;204. If it is produced by Model&nbsp;204, it is not sent to the terminal.</p>
<table>
<table>
<caption>CLIST commands</caption>
<caption>CLIST commands</caption>
<tr>
<tr class="head">
<th>Command</th>
<th>Command</th>
<th>Function</th>
<th>Function</th>
</tr>
</tr>
<tr>
<tr>
<td>/INPUTTERM</td>
<td>/INPUTTERM</td>
<td>Suspends processing of input from a CLIST or file. Subsequent input is expected from the terminal.</td>
<td>Suspends processing of input from a CLIST or file. Subsequent input is expected from the terminal.</td>
</tr>
</tr>
<tr>
<tr>
<td>/INPUTLIST</td>
<td>/INPUTLIST</td>
<td>Resumes processing of the CLIST, reversing the effect of the /INPUTTERM command. If this command is sent as an output line from Model 204 and if TSO was not invoked as a CP (command processor), the TSO user receives the message shown below and the session is ended:
<td>Resumes processing of the CLIST, reversing the effect of the <code>/INPUTTERM</code> command. If this command is sent as an output line from Model&nbsp;204 and if TSO was not invoked as a CP (command processor), the TSO user receives the message shown below and the session is ended:
<p class="code">APPLICATION REQUESTED DISCONNECT</p>
<p class="code">APPLICATION REQUESTED DISCONNECT</p>
<p class="note"><b>Note:</b> The /INPUTLIST command can be used only if the user's terminal is set to line-at-a-time mode (IODEV = 29). It cannot be used in full-screen mode (IODEV = 11).</p>
<p class="note"><b>Note:</b> The <code>/INPUTLIST</code> command can be used only if the user's terminal is set to line-at-a-time mode (<code>IODEV=29</code>). It cannot be used in full-screen mode (<code>IODEV=11</code>).</p>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td>/OUTPUTSTOP</td>
<td>/OUTPUTSTOP</td>
<td>Causes output from Model 204 to be discarded, rather than sent to the terminal.</td>
<td>Causes output from Model&nbsp;204 to be discarded, rather than sent to the terminal.</td>
</tr>
</tr>
<tr>
<tr>
<td>/OUTPUTTERM</td>
<td>/OUTPUTTERM</td>
<td>This command causes output from Model 204 to be sent to the user's terminal, reversing the effect of the /OUTPUTSTOP command.</td>
<td>This command causes output from Model&nbsp;204 to be sent to the user's terminal, reversing the effect of the <code>/OUTPUTSTOP</code> command.</td>
</tr>
</tr>
<tr>
<tr>
<td>/DISCONNECT</td>
<td>/DISCONNECT</td>
<td>This command causes the session with Model 204 to be terminated as if the Model 204 DISCONNECT command were entered. Control is returned to TSO at the point where the interface was executed, either in a CLIST or at command level. This command is processed by the interface only if the command is received from the following procedure:
<td>This command causes the session with Model&nbsp;204 to be terminated as if the Model&nbsp;204 <var>DISCONNECT</var> command were entered. Control is returned to TSO at the point where the interface was executed, either in a CLIST or at command level. This command is processed by the interface only if the command is received from the following procedure:
<p class="code">BEGIN
<p class="code">BEGIN
   SCREEN DISCONNECT
   SCREEN DISCONNECT
Line 193: Line 197:
The interface sets a return code that can be tested by the CLIST. If the interface is invoked by a CLIST, the messages corresponding to error return codes are suppressed. The following return codes are supported:</p>
The interface sets a return code that can be tested by the CLIST. If the interface is invoked by a CLIST, the messages corresponding to error return codes are suppressed. The following return codes are supported:</p>
<table>
<table>
<tr>
<tr class="head">
<th>Register 15 code</th>
<th>Register 15 code</th>
<th>Meaning</th>
<th>Meaning</th>
</tr>
</tr>
<tr>
<tr>
<td>X'14'</td>
<td>X'14'</td>
Line 205: Line 210:
<td>Unsupported terminal type</td>
<td>Unsupported terminal type</td>
</tr>
</tr>
<tr>
<tr>
<td>X'10'</td>
<td>X'10'</td>
<td>Cross-Region Access Method not operative</td>
<td>Cross-Region Access Method not operative</td>
</tr>
</tr>
<tr>
<tr>
<td>X'0C'</td>
<td>X'0C'</td>
<td>Cross-Region Access Method is busy</td>
<td>Cross-Region Access Method is busy</td>
</tr>
</tr>
<tr>
<tr>
<td>X'04'</td>
<td>X'04'</td>
Line 231: Line 239:
<th>Action</th>
<th>Action</th>
</tr>
</tr>
<tr>
<tr>
<td>3270</td>
<td>3270</td>
Line 236: Line 245:
<td>Keyboard unlocked</td>
<td>Keyboard unlocked</td>
</tr>
</tr>
<tr>
<tr>
<td>Teletype</td>
<td>Teletype</td>
Line 243: Line 253:
</table>
</table>
<p>
<p>
The user enters a line of characters and then signals the end of the line by pressing the Return or Enter key. No data is sent to Model 204 until the Return or Enter key is pressed. You can edit the input line (before it is entered) in one of the following ways:</p>
The user enters a line of characters and then signals the end of the line by pressing the Return or Enter key. No data is sent to Model&nbsp;204 until the Return or Enter key is pressed. You can edit the input line (before it is entered) in one of the following ways:</p>
<ul>
<ul>
<li>
<li>Use the TSO input edit conventions defined in the TSO profile.</li>
Use the TSO input edit conventions defined in the TSO profile.</li>
 
<li>
<li>Reset the <var>[[EDIT parameter|EDIT]]</var> parameter to 1 or 5 and use the Model 204 input editing conventions. </li>
Reset the <var>[[EDIT parameter|EDIT]]</var> parameter to 1 or 5 and use the Model 204 input editing conventions. </li>
</ul>
</ul>


Line 307: Line 316:
<td>Maximum input line length for terminal</td>
<td>Maximum input line length for terminal</td>
</tr>
</tr>
<tr>
<tr>
<td>INCCC</td>
<td>INCCC</td>
<td>Input continuation column</td>
<td>Input continuation column</td>
</tr>
</tr>
<tr>
<tr>
<td>LOUTPB</td>
<td>LOUTPB</td>
<td>Length of output page buffer</td>
<td>Length of output page buffer</td>
</tr>
</tr>
<tr>
<tr>
<td>OUTMRL</td>
<td>OUTMRL</td>
<td>Maximum output line length for terminal</td>
<td>Maximum output line length for terminal</td>
</tr>
</tr>
<tr>
<tr>
<td>OUTCCC</td>
<td>OUTCCC</td>
<td>Output continuation column</td>
<td>Output continuation column</td>
</tr>
</tr>
<tr>
<tr>
<td>OUTLPP</td>
<td>OUTLPP</td>
<td>Number of lines per page, including headers and trailers</td>
<td>Number of lines per page, including headers and trailers</td>
</tr>
</tr>
<tr>
<tr>
<td>MODEL</td>
<td>MODEL</td>
<td>Array of screen size parameters for the particular 3270 model</td>
<td>Array of screen size parameters for the particular 3270 model</td>
</tr>
</tr>
<tr>
<tr>
<td>HDRCTL</td>
<td>HDRCTL</td>
Line 352: Line 368:
<th>3270 terminal type</th>
<th>3270 terminal type</th>
</tr>
</tr>
<tr>
<tr>
<td>1</td>
<td>1</td>
Line 360: Line 377:
<td>Model 1</td>
<td>Model 1</td>
</tr>
</tr>
<tr>
<tr>
<td>2</td>
<td>2</td>
Line 368: Line 386:
<td>Model 2</td>
<td>Model 2</td>
</tr>
</tr>
<tr>
<tr>
<td>3</td>
<td>3</td>
Line 376: Line 395:
<td>Model 3</td>
<td>Model 3</td>
</tr>
</tr>
<tr>
<tr>
<td>4</td>
<td>4</td>
Line 384: Line 404:
<td>Model 4</td>
<td>Model 4</td>
</tr>
</tr>
<tr>
<tr>
<td>5</td>
<td>5</td>
Line 395: Line 416:


===Output page buffer settings===
===Output page buffer settings===
Note that MODEL is reset only if the size of the output page buffer (LOUTPB) is large enough to hold the new screen size.  
Note that MODEL is reset only if the size of the output page buffer (LOUTPB) is large enough to hold the new screen size.  


Line 405: Line 425:
<th>LOUTPB</th>
<th>LOUTPB</th>
</tr>
</tr>
<tr>
<tr>
<td>0</td>
<td>0</td>
<td>1170</td>
<td>1170</td>
</tr>
</tr>
<tr>
<tr>
<td>1</td>
<td>1</td>
<td>1170</td>
<td>1170</td>
</tr>
</tr>
<tr>
<tr>
<td>2</td>
<td>2</td>
<td>2130</td>
<td>2130</td>
</tr>
</tr>
<tr>
<tr>
<td>3</td>
<td>3</td>
<td>2770</td>
<td>2770</td>
</tr>
</tr>
<tr>
<tr>
<td>4</td>
<td>4</td>
<td>3650</td>
<td>3650</td>
</tr>
</tr>
<tr>
<tr>
<td>5</td>
<td>5</td>
Line 432: Line 458:


===Page header formats===
===Page header formats===
HDRCTL consists of a series of switches that control the formatting of pages transmitted to the terminal. Each switch can be set independently of the others.  
HDRCTL consists of a series of switches that control the formatting of pages transmitted to the terminal. Each switch can be set independently of the others.  


HDRCTL is usually not reset, but it can be reset to the following values for 3270 terminals:
HDRCTL is usually not reset, but it can be reset to the following values for 3270 terminals:
<table>
<table class="thJustBold">
<tr class="head">
<tr>
<th>0</th>
<th>0</th>
<td>Normal headers (system header showing date, time, and page number)</td>
<td>Normal headers (system header showing date, time, and page number)</td>
</tr>
</tr>
<tr class="head">
 
<tr>
<th>1</th>
<th>1</th>
<td>Suppress header 0 (system header showing date, time, and page number)</td>
<td>Suppress header 0 (system header showing date, time, and page number)</td>
</tr>
</tr>
<tr class="head">
 
<tr>
<th>2</th>
<th>2</th>
<td>Suppress the blank line that normally follows header 0 for nonrequest output</td>
<td>Suppress the blank line that normally follows header 0 for nonrequest output</td>
Line 457: Line 484:
Valid user responses are:</p>
Valid user responses are:</p>
<ul>
<ul>
<li>
<li>Press Enter. The terminal goes on to the next page.</li>
Press Enter. The terminal goes on to the next page.</li>
 
<li>
<li>Press the attention key or enter *CANCEL, C (cancel), or K (kill), followed by Enter. Unless an ON ATTENTION statement is in effect (see [[#Attention interrupt feature|Attention interrupt feature]]), the current output and request are cancelled.</li>
Press the attention key or enter *CANCEL, C (cancel), or K (kill), followed by Enter. Unless an ON ATTENTION statement is in effect (see [[#Attention interrupt feature|Attention interrupt feature]]), the current output and request are cancelled.</li>
 
<li>
<li>Enter a backpage request (see [[#Backpaging|Backpaging]]).</li>
Enter a backpage request (see [[#Backpaging|Backpaging]]).</li>
 
<li>
<li>Enter the next input line, which cannot exceed 53 characters. As the user enters input, the cursor moves in order to indicate the number of spaces used.</li>
Enter the next input line, which cannot exceed 53 characters. As the user enters input, the cursor moves in order to indicate the number of spaces used.</li>
</ul>
</ul>
<p>
<p>
Line 473: Line 499:
The user can cancel the evaluation of the current SOUL request in one of the following ways:</p>
The user can cancel the evaluation of the current SOUL request in one of the following ways:</p>
<ul>
<ul>
<li>
<li>If the terminal is waiting for input, press the attention key.</li>
If the terminal is waiting for input, press the attention key.</li>
 
<li>
<li>If Model 204 is waiting for input from the terminal or is actively displaying output on the terminal, press the attention key.</li>
If Model 204 is waiting for input from the terminal or is actively displaying output on the terminal, press the attention key.</li>
</ul>
</ul>


Line 499: Line 524:
<th>Default</th>
<th>Default</th>
</tr>
</tr>
<tr>
<tr>
<td>OUTMRL</td>
<td>OUTMRL</td>
Line 504: Line 530:
<td>80</td>
<td>80</td>
</tr>
</tr>
<tr>
<tr>
<td>OUTCCC</td>
<td>OUTCCC</td>
Line 509: Line 536:
<td>80</td>
<td>80</td>
</tr>
</tr>
<tr>
<tr>
<td>OUTLPP</td>
<td>OUTLPP</td>
Line 524: Line 552:
Valid user responses are:</p>
Valid user responses are:</p>
<ul>
<ul>
<li>
<li>Press the attention key. The current request or operation is canceled and Model 204 is then ready to accept terminal input from the user.</li>
Press the attention key. The current request or operation is canceled and Model 204 is then ready to accept terminal input from the user.</li>
 
<li>
<li>Press Enter. The interface goes on to the next page.</li>
Press Enter. The interface goes on to the next page.</li>
 
<li>
<li>Specify a backpage to be displayed, as described in [[#Backpaging|Backpaging]]. </li>
Specify a backpage to be displayed, as described in [[#Backpaging|Backpaging]]. </li>
</ul>
</ul>
<p>
<p>
Line 550: Line 577:
<th>Default</th>
<th>Default</th>
</tr>
</tr>
<tr>
<tr>
<td>OUTMRL</td>
<td>OUTMRL</td>
Line 555: Line 583:
<td>80</td>
<td>80</td>
</tr>
</tr>
<tr>
<tr>
<td>OUTCCC</td>
<td>OUTCCC</td>
Line 560: Line 589:
<td>80</td>
<td>80</td>
</tr>
</tr>
<tr>
<tr>
<td>OUTLPP</td>
<td>OUTLPP</td>
Line 573: Line 603:
Valid user responses are:</p>
Valid user responses are:</p>
<ul>
<ul>
<li>
<li>Press the attention key. The current request or operation is canceled and Model 204 is ready to accept any terminal input from the user.</li>
Press the attention key. The current request or operation is canceled and Model 204 is ready to accept any terminal input from the user.</li>
 
<li>
<li>Enter a carriage return or any other character. The interface goes on to the next page.</li>
Enter a carriage return or any other character. The interface goes on to the next page.</li>
 
<li>
<li>Specify a backpage to be displayed, as described in [[#Backpaging|Backpaging]]. </li>
Specify a backpage to be displayed, as described in [[#Backpaging|Backpaging]]. </li>
</ul>
</ul>
<p>
<p>

Latest revision as of 20:49, 4 April 2017

Overview

The TSO (Time Sharing Option) interface causes a TSO terminal to appear to be a Model 204 terminal. The TSO interface program is run as a program in the TSO user region, either as a command processor (CP) or as a called program.

This topic summarizes terminal operation particulars for the TSO interface end user.

Terminals supported

The TSO interface supports the use of:

  • IBM 3270 and compatible terminals. MODEL 6 terminals are not currently supported by this interface.
  • Teletypes and Teletype-compatible terminals

Each of these terminals provide slightly different capabilities, responses, and default output parameter settings. The information supplied for these terminals in Using SNA Communications Server terminals does not necessarily apply when the terminals are used through TSO.

Host language applications

Most host language application programs that communicate with Model 204 through the host language interface can be run under TSO as called programs. Refer to HLI: Job design factors and to the TSO documentation for information about using host language application programs.

Selection of terminal support mode

Two modes of TSO support are available to Model 204 users of IBM 3270 terminals: full-screen and line-at-a-time. Full-screen terminals allow the entire screen to be formatted and displayed as a single entity whereas line-at-a-time terminals print all screen inputs and outputs on a line-by-line basis.

To select the desired mode for an installation, the system manager must do the following:

  • Assemble, link-edit, and install the appropriate TSO programs.
  • Set the IODEV parameter on the user's parameter line for the terminal, specifying 11 for full-screen TSO usage and 29 for line-at-a-time TSO usage.

For more information about these system manager actions, see Defining the user environment (CCAIN).

Much of the information in this topic is presented according to terminal IODEV setting. IODEV 11 terminals are full-screen and IODEV 29 terminals are line-at-a-time. For the general features of full-screen and line-at-a-time terminal processing, see Terminal processing.

Using a CLIST

A CLIST can be established by the system manager when TSO line-at-a-time (IODEV 29) and full-screen (IODEV 11) SOUL connections are being used. This allows input to be passed to TSO from the CLIST, rather than from the terminal, as described in CLIST input.

Invoking and disconnecting from the TSO interface

The steps required for logging in to Model 204 through the TSO interface and for disconnecting from the TSO interface are described in this section.

Getting online

To connect to Model 204 by using the TSO system interface, you must first log in to TSO using the procedures defined at the installation. The installation supervisor has the necessary installation-specific information. TSO normally indicates that it is ready to accept input by displaying:

READY

Then, invoke Model 204 by one of the following methods:

  • If the TSO interface is installed as a command processor (CP) with the name M204:
    • You normally enter the following command for a full-screen connection:

      M204FS

      Where M204FS identifies a CLIST member that contains the single line:

      CALL 'your.M204.loadlib(M204FS)' 'subsystem:channel_name'

      The M204FS CLIST invokes the Model 204 load module also named M204FS.

    • For a line-at-a-time connection, you enter:

      M204TTY

      Where M204TTY identifies a CLIST member that contains the single line:

      CALL 'your.M204.loadlib(M204TTY)' 'subsystem:channel_name'

    Where:

    subsystem Specifies an optional one-to-four character subsystem name, plus colon(:), to override the CRAM IGCLM244 module's subsystem value. Available for z/OS with CRAM-XDM only.
    channel_name Specifies an optional 1- to 8-character channel name. In the M204FS CLIST, use the value of CRFSCHNL; in the M204TTY CLIST, use the value of CRIOCHNL.

    If the subsystem is not specified, the default is the IGCLM244 module's value.

    If the channel-name is not specified, the default name usually is assumed: for full-screen, M204FULL; for line-at-a-time, M204PROD. Verify with the system manager whether the channel name is to be specified.

  • If the TSO interface is not installed as a CP, invoke Model 204 with the CALL command:
    • For full-screen connections:

      CALL 'library_name(M204FS)' ['[subsystem:]channel_name']

    • For line-at-a-time connections:

      CALL 'library_name(M204TTY)' ['[subsystem:]channel_name']

    Where:

    library name Specifies the fully qualified data set name for the load library containing the TSO interface module, and M204FS and M204TTY are the module names or aliases.
    subsystem Optional, specifies a subsystem name to override the subsystem value in the IGCLM244 module. Available only for z/OS with CRAM-XDM.
    channel_name Optional, necessary only if the channel name is not the default name. The full-screen default channel name is M204FULL; the line-at-a-time default name is M204PROD. The supervisor can tell you whether the channel name is to be included in the CALL.

The TSO interface establishes a connection to Model 204, locks the terminal to the command processor or called program, and replies:

CONNECTED TO MODEL 204

When the terminal is prepared to accept input, it issues a prompting character and/or unlocks the keyboard (see Input lines). The user can now enter any desired system control commands. If the interface responds with any other message, control returns automatically to TSO.

You can now log in to Model 204. In general, Model 204 regards LOGIN and LOGON as equivalent commands.

CLIST input

Input can be passed to the TSO line-at-a-time or full-screen SOUL interface from a CLIST that has been defined by the system manager. Input can also be passed from a TSO file (in full-screen mode only). This alternate means of input to Model 204 is valid only when the interface is executed as a TSO command processor.

The use of a CLIST or file allows a series of commands to be defined and executed. If the user invokes a CLIST, Model 204 executes all of the commands in the CLIST and then allows additional lines to be entered from the terminal.

To invoke a CLIST or TSO file, use the following command:

{M204FS | M204TTY} ['[subsystem:] channel_name'] [FILE(ddname) | CLIST] [DEBUG]

where:

M204FS and M204TTY Identify the Model 204 load modules for the full-screen and line-at-a-time interfaces, respectively.
subsystem and channel_name Identify the CRAM subsystem and channel name, as described in the preceding section.
FILE Specifies that user inputs obtained from a file containing 80-byte records. If a ddname is not specified, then COMMAND is assumed. This file must be allocated to the TSO user region before executing the command.

Note: The FILE option can be used only if the user's terminal is set to full-screen mode (IODEV=11). It cannot be used in line-at-a-time mode (IODEV=29).

CLIST Specifies that user input is obtained from the current CLIST.
DEBUG Specifies that all input and Model 204 output is sent to the terminal, regardless of origin.

Note: The DEBUG option can be used only in full-screen mode (IODEV=11).

The commands described in the "CLIST commands" table, below, allow the terminal user to:

  • Switch between a CLIST or file and the terminal (in full-screen mode only)
  • Switch back and forth between a CLIST and the terminal (in line-at-a-time mode only)
  • Suppress terminal output (in both full-screen and line-at-a-time modes).

These commands are processed immediately by the TSO interface. Each of the commands can be entered in one of the following ways:

  • directly from a terminal, CLIST, or file
  • produced as output from Model 204

If one of the commands is entered from a terminal, it is not passed to Model 204. If it is produced by Model 204, it is not sent to the terminal.

CLIST commands
Command Function
/INPUTTERM Suspends processing of input from a CLIST or file. Subsequent input is expected from the terminal.
/INPUTLIST Resumes processing of the CLIST, reversing the effect of the /INPUTTERM command. If this command is sent as an output line from Model 204 and if TSO was not invoked as a CP (command processor), the TSO user receives the message shown below and the session is ended:

APPLICATION REQUESTED DISCONNECT

Note: The /INPUTLIST command can be used only if the user's terminal is set to line-at-a-time mode (IODEV=29). It cannot be used in full-screen mode (IODEV=11).

/OUTPUTSTOP Causes output from Model 204 to be discarded, rather than sent to the terminal.
/OUTPUTTERM This command causes output from Model 204 to be sent to the user's terminal, reversing the effect of the /OUTPUTSTOP command.
/DISCONNECT This command causes the session with Model 204 to be terminated as if the Model 204 DISCONNECT command were entered. Control is returned to TSO at the point where the interface was executed, either in a CLIST or at command level. This command is processed by the interface only if the command is received from the following procedure:

BEGIN SCREEN DISCONNECT TITLE '/DISCONNECT' END SCREEN READ SCREEN DISCONNECT END

Return codes

The interface sets a return code that can be tested by the CLIST. If the interface is invoked by a CLIST, the messages corresponding to error return codes are suppressed. The following return codes are supported:

Register 15 code Meaning
X'14' Unable to open command file
X'11' Unsupported terminal type
X'10' Cross-Region Access Method not operative
X'0C' Cross-Region Access Method is busy
X'04' Model 204 has terminated

Refer to the Rocket Model 204 messages documentation for explanations of these messages.

Input lines

Whenever the terminal is prepared to accept input, it displays a prompt character and/or unlocks the keyboard, depending on terminal type. The following table lists the terminal type and corresponding character/action.

Terminal input prompts and action
Terminal Character Action
3270 > Keyboard unlocked
Teletype   Keyboard unlocked

The user enters a line of characters and then signals the end of the line by pressing the Return or Enter key. No data is sent to Model 204 until the Return or Enter key is pressed. You can edit the input line (before it is entered) in one of the following ways:

  • Use the TSO input edit conventions defined in the TSO profile.
  • Reset the EDIT parameter to 1 or 5 and use the Model 204 input editing conventions.

Backpaging

TSO supports the Model 204 backpaging feature. (For more information about backpaging, see Backpaging). Backpaging is available through TSO only if the system manager sets the NBKPG parameter (number of backpages) parameter to a positive number on User 0's parameter line during system initialization. In addition, the user must have the OUTLPP parameter set to a positive number.

Occasionally a displayed backpage can contain more lines than the original display of the page contained. This can occur when the attention key is used to interrupt output from Model 204. Output lines can be generated by Model 204 during the delay between TSO's receiving the attention interrupt and Model 204's receiving this interrupt from TSO. These lines are ignored by TSO but are stored in the backpage buffer.

Disconnecting

To disconnect from the TSO interface, follow these steps:

  1. Log out of Model 204 in the normal way by entering:

    LOGOUT

    or:

    LOGOFF

    Model 204 acknowledges the command as shown in the preceding sections.
  2. To close the TSO connection to Model 204, enter:

    DISCONNECT

    or:

    DISC

    The interface then releases the connection and returns control to TSO.

If the interface detects that Model 204 has terminated while a connection is active, the following message is issued, and control returns to TSO:

MODEL 204 HAS TERMINATED EXECUTION

IBM 3270 terminals (IODEV = 11)

This section summarizes the information needed to use IBM 3270s (and compatible terminals) operating under TSO in full-screen mode.

Input lines

TSO users can utilize the full-screen input features described in Full-screen formatting. These features allow the entire screen to be formatted and displayed as a single entity. The user usually responds to prompts that are displayed on the screen. When the entire screen has been filled in, the user presses the Enter key, and the data is transmitted from the terminal to Model 204 for processing.

Program Function (PF) keys are supported by Model 204 only when the user accesses a screen formatted through the SOUL full-screen formatting feature. Otherwise, PF keys are not supported and cannot be used to enter data. Any line entered by means of a PF key is considered null, and any data entered is lost.

Attention key

The PA1 key serves as the attention key on IBM 3270 terminals, unless the attention key has been reassigned by the user through the FSATTN parameter.

Screen-formatting parameters

The screen-formatting parameters listed in the following table apply to IBM 3270 terminals being used through TSO.
The PGSEP parameter is not listed because it is not used with IBM 3270 terminals.

Screen-formatting parameters for TSO interface
Parameter Meaning
INMRL Maximum input line length for terminal
INCCC Input continuation column
LOUTPB Length of output page buffer
OUTMRL Maximum output line length for terminal
OUTCCC Output continuation column
OUTLPP Number of lines per page, including headers and trailers
MODEL Array of screen size parameters for the particular 3270 model
HDRCTL Page formatting options

The values of the first five parameters, which determine the size of the screen, are actually established by the value of MODEL, which corresponds to the terminal model within the 3270 family. Model 204 automatically sets MODEL to the appropriate value for SNA Communications Server (formerly VTAM) 3270s used through TSO, but the user also can reset it.

Terminal model options

The following table shows the valid settings for MODEL, the corresponding terminal types, and the corresponding default values for the screen size parameters. You can reset INCCC and OUTCCC to override the default values established by the MODEL parameter.

Valid MODEL settings for TSO interface
MODEL INMRL INCCC OUTMRL OUTCCC 3270 terminal type
1 78 78 80 80 Model 1
2 78 78 80 80 Model 2
3 78 78 80 80 Model 3
4 78 78 80 80 Model 4
5 130 130 132 132 Model 5

Output page buffer settings

Note that MODEL is reset only if the size of the output page buffer (LOUTPB) is large enough to hold the new screen size.

The minimum LOUTPB settings are listed in the following table.

Minimum LOUTPB settings
MODEL LOUTPB
0 1170
1 1170
2 2130
3 2770
4 3650
5 3774

Page header formats

HDRCTL consists of a series of switches that control the formatting of pages transmitted to the terminal. Each switch can be set independently of the others.

HDRCTL is usually not reset, but it can be reset to the following values for 3270 terminals:

0 Normal headers (system header showing date, time, and page number)
1 Suppress header 0 (system header showing date, time, and page number)
2 Suppress the blank line that normally follows header 0 for nonrequest output

Pausing and canceling output

At the end of each page of output, Model 204 pauses to allow the user to read the contents of the screen and to cancel the current request if too much output is being received. A prompting greater than sign (>) is displayed, indented 25 spaces on the last line of the screen.

Valid user responses are:

  • Press Enter. The terminal goes on to the next page.
  • Press the attention key or enter *CANCEL, C (cancel), or K (kill), followed by Enter. Unless an ON ATTENTION statement is in effect (see Attention interrupt feature), the current output and request are cancelled.
  • Enter a backpage request (see Backpaging).
  • Enter the next input line, which cannot exceed 53 characters. As the user enters input, the cursor moves in order to indicate the number of spaces used.

As discussed in the section Pausing, enter only one line of anticipatory input at this time. If the terminal reaches the end-of-page pause for the next page of output, the saved input line is lost.

Canceling the current request

The user can cancel the evaluation of the current SOUL request in one of the following ways:

  • If the terminal is waiting for input, press the attention key.
  • If Model 204 is waiting for input from the terminal or is actively displaying output on the terminal, press the attention key.

Note: If Model 204 is compiling or executing a command, the user cannot cancel the operation by pressing the attention key.

IBM 3270 terminals (IODEV = 29)

This section summarizes the information needed to use IBM 3270s (and compatible terminals) operating under TSO in line-at-a-time mode.

PA1 key

The PA1 key can be used to cancel either a single line or multiple lines of output. It cannot be used to terminate the TSO interface and return to TSO.

Output parameters

As soon as the Model 204 connection is made, the TSO interface sets the parameters shown in the following table to the default values shown.

TSO interface output parameters for 3270s
Parameter Meaning Default
OUTMRL Maximum output line length for terminal 80
OUTCCC Output continuation column 80
OUTLPP Number of lines per page, including headers and trailers 60

Pausing and canceling output

On the 3270, the TSO interface does not ordinarily pause at the bottom of the screen to allow the user to interrupt Model 204 or to cancel the current request if too much output is being received.

The user can cause TSO to pause by specifying a page size in the OUTLPP parameter. If OUTLPP = 23, the interface pauses after 23 lines have been displayed and allows the final line (line 24) on the screen to be used for a backpage request. The TSO interface indicates that it is in pause mode by pausing and unlocking the keyboard.

Valid user responses are:

  • Press the attention key. The current request or operation is canceled and Model 204 is then ready to accept terminal input from the user.
  • Press Enter. The interface goes on to the next page.
  • Specify a backpage to be displayed, as described in Backpaging.

If too much output is being received, press the PA1 key at any time. It cancels all output and aborts the currently running request.

Teletypes (IODEV = 29)

This section summarizes the information needed to use Teletypes and compatible terminals operating under TSO.

Output parameters

As soon as the Model 204 connection is made, certain output conventions are established for Teletypes and compatible terminals.

The TSO interface sets the parameters shown in the following table to the default values shown.

TSO interface output parameters for teletypes
Parameter Meaning Default
OUTMRL Maximum output line length for terminal 80
OUTCCC Output continuation column 80
OUTLPP Number of lines per page, including headers and trailers 60

Pausing and canceling output

At the end of each page of output, the TSO interface pauses to allow the user to interrupt Model 204 or to cancel the current request if too much output is being received. The TSO interface indicates that it is in pause mode by ringing the teletype bell twice.

Valid user responses are:

  • Press the attention key. The current request or operation is canceled and Model 204 is ready to accept any terminal input from the user.
  • Enter a carriage return or any other character. The interface goes on to the next page.
  • Specify a backpage to be displayed, as described in Backpaging.

Because the pause and cancel capability is activated at the end of a page, be sure not to set the OUTLPP (number of lines per page) parameter to zero, unless you want suppressed pausing and production of a header on the new page. If OUTLPP = 0, there is no logical end-of-page, and the interface never executes the pause.

If you find that you are receiving too much output, you can press the attention (BREAK) key at any time. This is equivalent to entering C or K. It cancels all output and aborts the currently running request. BREAK can be used to cancel either a single line or multiple lines of output. It cannot be used to terminate the TSO interface and return to TSO.