Defining the runtime environment (CCAIN): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (more conversion cleanup)
 
(97 intermediate revisions by 7 users not shown)
Line 19: Line 19:
==Structure of CCAIN==
==Structure of CCAIN==
<p>
<p>
The CCAIN file is divided into three sections:</p>
The CCAIN file is divided into three sections, as described here:</p>
   
   
<ul>
===Runtime environment===
<li>Runtime environment specifications line, which is known as the '''User 0 parameter line''', sets system characteristics and default user parameters during <var class="product">Model&nbsp;204</var>  initialization.   
The runtime environment specifications line, which is known as the '''User 0 parameter line''', sets system characteristics and default user parameters during <var class="product">Model&nbsp;204</var>  initialization.   
   
   
<p>User 0, which acts as the system operator, is the name given to the input stream used by <var class="product">Model&nbsp;204</var> initialization routines. The input stream is read from the CCAIN file and echoed on the CCAPRINT file (for more information on CCAPRINT, see [[Obtaining User 0 output (CCAPRINT)]]). </p>
<p>
User 0, which acts as the system operator, is the name given to the input stream used by <var class="product">Model&nbsp;204</var> initialization routines. The input stream is read from the CCAIN file and echoed on the CCAPRINT file. (For more information on CCAPRINT, see [[Obtaining User 0 output (CCAPRINT)]].) </p>
   
   
<p>The User 0 parameter line, which is described in this page, includes:</p>
<p>
The User 0 parameter line, which is described in this page, includes:</p>
   
   
<ul>
<ul>
<li> System table sizes</li>
<li>System table sizes</li>


<li> I/O buffer sizes</li>
<li>I/O buffer sizes</li>


<li> Scheduler and performance options</li>
<li>Scheduler and performance options</li>


<li> Recovery options  
<li>Recovery options</li>
</li>
</ul>
</ul>
   
   
<p>Parameters on the User 0 line are specified on the first line of the CCAIN input stream unless certain DEFINE commands are used. Commands such as DEFINE DATASET and DEFINE STREAM are the only User 0  statements that can precede the User 0 parameter line.</p></li>
<div id="preUser0Cmds">
====Pre-user 0 commands====
<!--Caution: <div> above-->
 
<p>Parameters on the User 0 line are specified on the first line of the CCAIN input stream unless certain commands are used. The following commands are the only ones that can <i>precede</i> the User 0 parameter line:</p>
<ul>
<!-- The following are only allowed for SIRIUS or ROCKET:
<li>[[*LOOK command|*LOOK]]</li>
<li>[[*ZAP command|*ZAP]]</li>
   
   
<li> User environment definitions and specifications are set for each user on a separate line for:
This is allowed for anyone as far as SIRHC is concerned, I haven't check
but it seems to not be found in the wiki:
<li>[[CPTRACE command|CPTRACE]]</li>
-->
 
<li>[[*LOWER command|*LOWER]]</li>
<li>[[*UPPER command|*UPPER]]</li>
<li>[[APPDATE command|APPDATE]]</li>
<li>[[DEFINE DATASET command|DEFINE DATASET]]</li>
<li>[[DEFINE STREAM command|DEFINE STREAM]]</li>
<li>[[MSGCTL command|MSGCTL]]</li>
<li>[[UNICODE command|UNICODE]]</li>
</ul>
<ul>
<li><b>*</b> (a comment) is also allowed, however, a blank <b>must follow</b> the <code>*</code>.</li>
<li>An all-blank line is also allowed.</li>
</ul>
 
In addition, starting with version 7.5, you can [[PRECCAIN|provide a common configuration]] for all <var class="product">Model 204</var> jobs by linking <code>PRECCAIN</code> into your ONLINE, IFAM1, and/or IFAM4 load modules. <code>PRECCAIN</code>, an assembler module which you modify and link into the load modules, contains <var class="product">Model 204</var> commands and parameters set and executed, respectively, during <var class="product">Model 204</var> initialization.
 
===User environments and definitions===
User environment definitions and specifications are set for each user on a separate line for:
<ul>  
<ul>  
<li> Device type and terminal communication network</li>
<li> Device type and terminal communication network</li>
Line 50: Line 80:
   
   
<li> Default output options</li>
<li> Default output options</li>
</ul></li>
</ul>


<li> System control commands are entered on successive lines. System commands include:
===System control commands===
System control commands are entered on successive lines. System commands include:
<ul>
<ul>
<li> Recovery procedures</li>
<li> Recovery procedures</li>
Line 69: Line 100:
   
   
<li> FLOD programs </li>
<li> FLOD programs </li>
</ul></li>
</ul>
</ul>
 
==ONLINE data streams with CCAIN==
==ONLINE data streams with CCAIN==
   
   
Line 273: Line 303:
<p>A single-user IFDIAL EXEC procedure, SAMPDIAL, is supplied as part of the distributed material. Customize and install SAMPDIAL on an accessible minidisk. The M204 EXEC expects the IFDIAL EXEC to be named <code>SINGDIAL</code>. </p>
<p>A single-user IFDIAL EXEC procedure, SAMPDIAL, is supplied as part of the distributed material. Customize and install SAMPDIAL on an accessible minidisk. The M204 EXEC expects the IFDIAL EXEC to be named <code>SINGDIAL</code>. </p>
   
   
<p>For more information, refer to the <var class="book">Rocket Model&nbsp;204 Installation Guide for IBM z/VM</var>.</p></li>
<p>For more information, refer to the <var class="book">[http://docs.rocketsoftware.com/nxt/gateway.dll/RKBnew556%2Fmodel%20204%2Fprevious%20versions%2Fv7.4%2Fm204_installzvm_v74.pdf Rocket Model 204 Installation Guide for IBM z/VM, version 7.4]</var>.</p>
</li>
   
   
<li><var class="term">exec1</var> specifies the name of the EXEC procedure that contains the ACCESS commands for the required minidisks and the file definition (FILEDEF or M204FDEF) commands for <var class="product">Model&nbsp;204</var> recovery purposes. You must create the EXEC  in accordance with the file requirements for the <var class="product">Model&nbsp;204</var> ONLINE environment to be recovered.</li>
<li><var class="term">exec1</var> specifies the name of the EXEC procedure that contains the ACCESS commands for the required minidisks and the file definition (FILEDEF or M204FDEF) commands for <var class="product">Model&nbsp;204</var> recovery purposes. You must create the EXEC  in accordance with the file requirements for the <var class="product">Model&nbsp;204</var> ONLINE environment to be recovered.</li>
Line 285: Line 316:
   
   
====Usage notes====
====Usage notes====
<p>
<p>The EXEC can also include the Dictionary and Access/204 file definitions, if they are installed.</p>
The EXEC can also include the Dictionary and Access/204 file definitions, if they are installed.</p>
   
   
<p>The following considerations apply to CMS online command processing:</p>
<p>The following considerations apply to CMS online command processing:</p>
Line 303: Line 334:
<li> If IFDIAL is specified, the main (nonrecovery) EXEC must provide only one parameter, the user program name, in the stack. The program name must be placed in the CMS stack before returning to the ONLINE EXEC.  
<li> If IFDIAL is specified, the main (nonrecovery) EXEC must provide only one parameter, the user program name, in the stack. The program name must be placed in the CMS stack before returning to the ONLINE EXEC.  
<p>
<p>
The <var>IFSETUP</var> function (see the <var class="book">Rocket Model 204 Host Language Interface Reference Manual</var>) is used to send the CCAIN parameters via the user program. Neither CCAIN nor CCAPRINT are used for IFDIAL connections. </p></li>
The <var>IFSETUP</var> function (see the <var class="book">[[Media:M204 HLIReference V75.pdf|Rocket Model 204 Host Language Interface Reference Manual]]</var>) is used to send the CCAIN parameters via the user program. Neither CCAIN nor CCAPRINT are used for IFDIAL connections. </p></li>
   
   
<li> A single-user <var class="product">Model&nbsp;204</var> interactive Online environment uses an EXEC procedure, <code>SAMPSING</code>, which is supplied as part of the distributed material. An IODEV statement is not required.  (See [[#Server areas|Server areas]].)
<li> A single-user <var class="product">Model&nbsp;204</var> interactive Online environment uses an EXEC procedure, <code>SAMPSING</code>, which is supplied as part of the distributed material. An IODEV statement is not required.  (See [[#Server areas|Server areas]].)
Line 332: Line 363:
   
   
<li> Execute a user-written EXEC (DOCONLN) that defines the ONLINE environment </li>
<li> Execute a user-written EXEC (DOCONLN) that defines the ONLINE environment </li>
</ul>  
</ul>
 
==CMS utilities and EXECs==
==CMS utilities and EXECs==
<p>
<p>
Line 502: Line 533:
</p>
</p>
   
   
===Using the M204MOUN EXEC to mount and dismount tapes===
===Using the M204MOUN EXEC to mount and dismount tapes===  
<p>
<p>When a tape must be mounted, the CMS interface to <var class="product">Model&nbsp;204</var> invokes the EXEC procedure M204MOUN, passing the DDname, device address, volume serial number, volume sequence, and access type (READ or WRITE) as arguments.</p>
When a tape must be mounted, the CMS interface to <var class="product">Model&nbsp;204</var> invokes the EXEC procedure M204MOUN, passing the DDname, device address, volume serial number, volume sequence, and access type (READ or WRITE) as arguments.</p>
   
   
<p>The M204MOUN EXEC determines the status of the tape device, issues appropriate Control Program and CMS commands, and sends a message to the system operator for a tape mount and drive attachment to the service  virtual machine, if necessary. </p>
<p>The M204MOUN EXEC determines the status of the tape device, issues appropriate Control Program and CMS commands, and sends a message to the system operator for a tape mount and drive attachment to the service  virtual machine, if necessary. </p>
Line 510: Line 541:
<p>Based on criteria at its disposal, the EXEC can reject the attempt to mount the tape. You can alter the M204MOUN EXEC defaults to meet site requirements.</p>
<p>Based on criteria at its disposal, the EXEC can reject the attempt to mount the tape. You can alter the M204MOUN EXEC defaults to meet site requirements.</p>
   
   
<p>When a tape volume is dismounted, the CMS interface to <var class="product">Model&nbsp;204</var> invokes the EXEC procedure M204UNLD, passing the DDname, device address, volume serial number, volume sequence, access type (READ or WRITE), and  file status (EOV or EOF) as arguments.               </p>
<p>When a tape volume is dismounted, the CMS interface to <var class="product">Model&nbsp;204</var> invokes the EXEC procedure M204UNLD, passing the DDname, device address, volume serial number, volume sequence, access type (READ or WRITE), and  file status (EOV or EOF) as arguments.  
<ul>
<ul>
<li> EOV (request another volume) indicates an entry at end-of-volume.</li>
<li> EOV (request another volume) indicates an entry at end-of-volume.</li>
</li>
 
<li> EOF (no further requests) indicates an entry due to end-of-file. </li>
<li> EOF (no further requests) indicates an entry due to end-of-file. </li>
</li>
</ul></p>
</ul>
 
==BATCH204 JCL with CCAIN==
==BATCH204 JCL with CCAIN==
   
   
===SAMPLE: z/OS JCL for invoking a BATCH204 run===
===Sample z/OS JCL for invoking a BATCH204 run===
   
   
<p class="code">//RUN      EXEC    PGM=BATCH204,REGION=1200K,
<p class="code"><nowiki>//RUN      EXEC    PGM=BATCH204,REGION=1200K,
//                TIME=10,PARM='SYSOPT=144'
//                TIME=10,PARM='SYSOPT=144'
   
   
Line 542: Line 571:
.
.
.
.
</p>
</nowiki></p>
<p>STEPLIB points to the load module library where the <var class="product">Model&nbsp;204</var> program is linked.</p>
<p>STEPLIB points to the load module library where the <var class="product">Model&nbsp;204</var> program is linked.</p>
   
   
Line 550: Line 579:
<li> If EXCPVR under z/OS is used, STEPLIB must be authorized. </li>
<li> If EXCPVR under z/OS is used, STEPLIB must be authorized. </li>
</ul>
</ul>
 
==Runtime environment specifications==
==Runtime environment specifications==
   
   
Line 576: Line 605:


===Calculating region size===
===Calculating region size===
<p>
<p>Consider the following factors when estimating region size for an Online system (z/OS) or z/VM machine size (CMS):</p>
Consider the following factors when estimating region size for an Online system (z/OS) or z/VM machine size (CMS):</p>
   
   
<ul>
<ul>
Line 584: Line 613:
<li> Spare core (<var>SPCORE</var>) specification, the default is 8192 bytes
<li> Spare core (<var>SPCORE</var>) specification, the default is 8192 bytes
   
   
<p>Increase the default, if you use deferred update, the FLOD exit (FLODXT) feature, directed output, or active subsystems. Additional memory is also required to open sequential data sets. The requirements for  FLODXT are given under <var>SPCORE</var> in [[#Common runtime parameters|Common runtime parameters]].  </p></li>
<p>Increase the default, if you use deferred update, the FLOD exit (FLODXT) feature, directed output, or active subsystems. Additional memory is also required to open sequential data sets. The requirements for  FLODXT are given under <var>SPCORE</var> in the [[#User 0 parameters|"Common runtime parameters" table]].  </p></li>
   
   
<li> Number of buffers used for each server
<li> Number of buffers used for each server
Line 612: Line 641:
<caption>SYSOPT parameter options</caption>
<caption>SYSOPT parameter options</caption>
<tr class="head">
<tr class="head">
<th>
<th><p>Option</p> </th>
<p>Option</p>
<th><p>Specifies...</p> </th>
</th>
<th>
<p>Specifies...</p>
</th>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>128</p>
<p>128</p> </td>
</td>
<td>
<td>
<p>Log for the CCAJRNL and the CCAAUDIT data sets</p>
<p>Log for the CCAJRNL and the CCAAUDIT data sets</p> </td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>64</p>
<p>64</p> </td>
</td>
<td>
<td>
<p>Abend without a dump when the return code is nonzero</p>
<p>Abend without a dump when the return code is nonzero</p> </td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>32</p>
<p>32</p> </td>
</td>
<td>
<td>
<p>Print lines relating to system initialization or IFAM function calls (RK lines) on the audit trail or journal</p>
<p>Print lines relating to system initialization or IFAM function calls (RK lines) on the audit trail or journal</p> </td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>16</p>
<p>16</p> </td>
</td>
<td>
<td>
<p>Login is required </p>
<p>Login is required </p> </td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>8</p>
<p>8</p> </td>
</td>
<td>
<td>
<p>Automatic disconnect operation in response to the LOGOUT command</p>
<p>Automatic disconnect operation in response to the LOGOUT command</p> </td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>4</p>
<p>4</p> </td>
</td>
<td>
<td>
<p>Execution of data definition commands within a particular run only through the File Management facility of Dictionary </p>
<p>Execution of data definition commands within a particular run only through the File Management facility of Dictionary </p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>2</p>
<p>2</p> </td>
</td>
<td>
<td>
<p>Existing permanent group file (CCAGRP) is required</p>
<p>Existing permanent group file (CCAGRP) is required</p> </td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>1</p>
<p>1</p> </td>
</td>
<td>
<td>
<p>CCASYS file, which is required for subsystem applications </p>
<p>CCASYS file, which is required for subsystem applications </p> </td>
</td>
</tr>
</tr>
</table>
</table>
Line 753: Line 762:
<caption>Common runtime parameters</caption>
<caption>Common runtime parameters</caption>
<tr class="head">
<tr class="head">
<th>
<th><p>Parameter</p></th>
<p>Parameter</p>
<th><p>Specifies...</p></th>
</th>
<th>
<p>Specifies...</p>
</th>
</tr>
</tr>
   
   
Line 764: Line 769:
<td>
<td>
<p><var>[[CFRLOOK parameter|CFRLOOK]]</var></p>
<p><var>[[CFRLOOK parameter|CFRLOOK]]</var></p>
</td>
</td><td>
<td>
<p>Collect critical file resources conflict statistics.</p>
<p>Collect critical file resources conflict statistics.</p>
  </td>
</td></tr>
</tr>
   
<tr><td>
<p><var>[[CPMAX parameter|CPMAX]]</var></p></td>
<td><p>Maximum number of checkpoints</p>
</td></tr>
   
   
<tr>
<tr><td>
<p><var>[[CPTIME parameter|CPTIME]]</var></p></td>
<td>
<td>
<p><var>[[CPMAX parameter|CPMAX]]</var></p>
<p>Checkpoint time intervals</p>
</td>
</td></tr>
<td>
<p>Maximum number of checkpoints</p>
</td>
</tr>
<tr>
<td>
<p><var>[[CPTIME parameter|CPTIME]]</var></p>
</td>
<td>
<p>Checkpoint time intervals</p>
</td>
</tr>
   
   
<tr>
<tr><td>
<td>
<p><var>[[LENQTBL parameter|LENQTBL]]</var></p></td>
<p><var>[[LENQTBL parameter|LENQTBL]]</var></p>
</td>
<td>
<td>
<p>Number of entries in each user's resource enqueuing table. (See [[#Resource locking table|Resource locking table]] for sizing formulas.) The default is 6. </p>
<p>Number of entries in each user's resource enqueuing table. (See [[#Resource locking table|Resource locking table]] for sizing formulas.) The default is 6. </p>
</td>
</td></tr>
</tr>
   
   
<tr>
<tr><td>
<td>
<p><var>[[LIBUFF parameter|LIBUFF]]</var></p>
<p><var>[[LIBUFF parameter|LIBUFF]]</var></p>
</td>
</td>
<td>
<td>
<p>Length of the input buffer used for input lines from CCAIN or the user's terminal. <var>LIBUFF</var> must be three bytes longer than the longest line or record read into it. Longer lines are rejected with an error message.  The default is 255.</p>
<p>Length of the input buffer used for input lines from CCAIN or the user's terminal. <var>LIBUFF</var> must be three bytes longer than the longest line or record read into it. Longer lines are rejected with an error message.  The default is 255.</p>
   
   
<p>If an input line is continued with a nonblank character, the number of characters in the original line and all continuations (not including continuation characters) must fit in the <var>LIBUFF</var> specification. </p>
<p>If an input line is continued with a nonblank character, the number of characters in the original line and all continuations (not including continuation characters) must fit in the <var>LIBUFF</var> specification. </p></td></tr>
</td>
</tr>
   
   
<tr>
<tr><td>
<td>
<p><var>[[LOBUFF parameter|LOBUFF]]</var></p></td>
<p><var>[[LOBUFF parameter|LOBUFF]]</var></p>
</td>
<td>
<td>
<p>Length of the output buffer used for output lines to
<p>Length of the output buffer used for output lines to
  CCAAUDIT, CCAPRINT, for a user's terminal, or for a directed output (USE) data set. LOBUFF can be reset on individual user parameter lines. The default is 256. The recommended value for SQL processing is 5000.</p>
  CCAAUDIT, CCAPRINT, for a user's terminal, or for a directed output (USE) data set. LOBUFF can be reset on individual user parameter lines. The default is 256. The recommended value for SQL processing is 5000.</p>
</td>
</td></tr>
</tr>
   
   
<tr>
<tr><td>
<td>
<p><var>[[LOGADD parameter|LOGADD]]</var></p></td>
<p><var>[[LOGADD parameter|LOGADD]]</var></p>
</td>
<td>
<td>
<p>Number of slots reserved for adding new password (CCASTAT) entries. The default is 0. </p>
<p>Number of slots reserved for adding new password (CCASTAT) entries. The default is 0. </p>
</td>
</td></tr>
</tr>
   
   
<tr>
<tr><td>
<td>
<p><var>[[LOGFAIL parameter|LOGFAIL]]</var></p></td>
<p><var>[[LOGFAIL parameter|LOGFAIL]]</var></p>
</td>
<td>
<td>
<p>Action taken when the number of consecutive login failures exceeds the value of the <var>LOGTRY</var> parameter. Default is 0. </p>
<p>Action taken when the number of consecutive login failures exceeds the value of the <var>LOGTRY</var> parameter. Default is 0. </p>
</td>
</td></tr>
</tr>
   
   
<tr>
<tr><td>
<td>
<p><var>[[LOGONENQ parameter|LOGONENQ]]</var></p></td>
<p><var>[[LOGONENQ parameter|LOGONENQ]]</var></p>
</td>
<td>
<td>
<p>Use of unique user IDs for systemwide logons to a single ONLINE system. (See the <var>LOGONENQ</var> entry in the [[#userenvTable|"User environment control parameters" table]] to specify unique user IDs  for specific terminals.) The default is 0. </p>
<p>Use of unique user IDs for systemwide logons to a single ONLINE system. (See the <var>LOGONENQ</var> entry in the [[#userenvTable|"User environment control parameters" table]] to specify unique user IDs  for specific terminals.) The default is 0. </p>
   
   
<p>The Subsystem Management facility is not affected by LOGONENQ.</p>
<p>The Subsystem Management facility is not affected by LOGONENQ.</p>
</td>
</td></tr>
</tr>
   
   
<tr>
<tr><td>
<td>
<p><var>[[LOGTRY parameter|LOGTRY]]</var></p></td>
<p><var>[[LOGTRY parameter|LOGTRY]]</var></p>
</td>
<td>
<td>
<p>Maximum number of login attempts allowed. The default is 0. </p>
<p>Maximum number of login attempts allowed. The default is 0. </p>
</td>
</td></tr>
</tr>
   
   
<tr>
<tr><td>
<td>
<p><var>[[LRETBL parameter|LRETBL]]</var></p></td>
<p><var>[[LRETBL parameter|LRETBL]]</var></p>
</td>
<td>
<td>
<p>Length of each user's part of the record enqueuing table. (See [[#Resource locking|Resource locking]].) Default is 200.</p>
<p>Length of each user's part of the record enqueuing table. (See [[#Resource locking|Resource locking]].) Default is 200.</p>
</td>
</td></tr>
</tr>
   
   
<tr>
<tr><td>
<td>
<p><var>[[LRUTIM parameter|LRUTIM]]</var></p></td>
<p><var>[[LRUTIM parameter|LRUTIM]]</var></p>
</td>
<td>
<td>
<p>Disk page reference interval for references considered obsolete. Use <var>LRUTIM</var> to calculate DKRR statistics. The default is 0.</p>
<p>Disk page reference interval for references considered obsolete. Use <var>LRUTIM</var> to calculate DKRR statistics. The default is 0.</p>
</td>
</td></tr>
</tr>
   
   
<tr>
<tr><td>
<p><var>[[MAXBUF parameter|MAXBUF]]</var></p></td>
<td>
<td>
<p><var>[[MAXBUF parameter|MAXBUF]]</var></p>
<p>Maximum number of file page buffers allocated below the bar during <var class="product">Model&nbsp;204</var> initialization. (See [[#Disk buffers and Model 204 storage|Disk buffers and Model 204 storage]].) The default is 256.</p>
</td>
</td></tr>
<tr><td>
<p><var>[[MINBUF parameter|MINBUF]]</var></p></td>
<td>
<td>
<p>Maximum number of file page buffers allocated during <var class="product">Model&nbsp;204</var> initialization. (See [[#Disk buffers and Model 204 storage|Disk buffers and Model 204 storage]].) The default is 256.</p>
<p>Minimum number of file page buffers allocated below the bar during <var class="product">Model&nbsp;204</var> initialization. (See [[#Disk buffers and Model 204 storage|Disk buffers and Model 204 storage]].) The default is 18.</p>
</td>
</td></tr>
</tr>
   
   
<tr>
<tr><td>
<p><var>[[NDCBS parameter|NDCBS]]</var></p></td>
<td>
<td>
<p><var>[[MINBUF parameter|MINBUF]]</var></p>
<p>Number of <var class="product">Model&nbsp;204</var> file DCBs that can be used at any one time. The default is 10.</p>
</td>
</td></tr>
<tr><td>
<p><var>[[NDIR parameter|NDIR]]</var></p></td>
<td>
<td>
<p>Minimum number of file page buffers allocated during <var class="product">Model&nbsp;204</var> initialization. (See [[#Disk buffers and Model 204 storage|Disk buffers and Model 204 storage]].) The default is 18.</p>
<p>Maximum number of <var class="product">Model&nbsp;204</var> files that can be opened during a run. The default is 5.</p>
</td>
</td></tr>
</tr>
   
   
<tr>
<tr><td>
<td>
<p><var>[[NFILES parameter|NFILES]]</var></p></td>
<p><var>[[NDCBS parameter|NDCBS]]</var></p>
</td>
<td>
<p>Number of <var class="product">Model&nbsp;204</var> file DCBs that can be used at any one time. The default is 10.</p>
</td>
</tr>
<tr>
<td>
<p><var>[[NDIR parameter|NDIR]]</var></p>
</td>
<td>
<p>Maximum number of <var class="product">Model&nbsp;204</var> files that can be opened during a run. The default is 5.</p>
</td>
</tr>
<tr>
<td>
<p><var>[[NFILES parameter|NFILES]]</var></p>
</td>
<td>
<td>
<p>Maximum number of <var class="product">Model&nbsp;204</var> files that can be open at any one time. Files remain open until an explicit CLOSE is issued or the session ends. The default is 2. </p>
<p>Maximum number of <var class="product">Model&nbsp;204</var> files that can be open at any one time. Files remain open until an explicit CLOSE is issued or the session ends. The default is 2. </p>
   
   
<p><var>NFILES</var>, <var>NDCBS</var>, and <var>NDIR</var> specifications are automatically incremented during system initialization if <code>SYSOPT=2</code> (permanent group file). With the <var>VIEW</var> command, you can view parameter values during a run.</p>
<p><var>NFILES</var>, <var>NDCBS</var>, and <var>NDIR</var> specifications are automatically incremented during system initialization if <code>SYSOPT=2</code> (permanent group file). With the <var>VIEW</var> command, you can view parameter values during a run.</p>
</td>
</td></tr>
</tr>
   
   
<tr>
<tr><td>
<td>
<p><var>[[NGROUP parameter|NGROUP]]</var></p>
<p><var>[[NGROUP parameter|NGROUP]]</var></p>
</td>
</td>
<td>
<td>
<p>Maximum number of file groups each user can have open at the same time. The default is 5.</p>
<p>Maximum number of file groups each user can have open at the same time. The default is 5.</p>
</td>
</td></tr>
</tr>
   
   
<tr>
<tr>
Line 936: Line 888:
<td>
<td>
<p>Number of servers. The default is <var>NUSERS</var> (see below). </p>
<p>Number of servers. The default is <var>NUSERS</var> (see below). </p>
</td>
</td></tr>
</tr>
   
   
<tr>
<tr><td>
<td>
<p><var>[[NSUBTKS parameter|NSUBTKS]]</var></p></td>
<p><var>[[NSUBTKS parameter|NSUBTKS]]</var></p>
</td>
<td>
<td>
<p>Maximum number of pseudo subtasks that can be generated in a <var class="product">Model&nbsp;204</var> run. The default is 4.</p>
<p>Maximum number of pseudo subtasks that can be generated in a <var class="product">Model&nbsp;204</var> run. The default is 4.</p>
</td>
</td></tr>
</tr>
   
   
<tr>
<tr><td>
<p><var>[[NUMBUFG parameter|NUMBUFG]]</var></p></td>
<td>
<td>
<p><var>[[NUSERS parameter|NUSERS]]</var></p>
<p>Number of file page buffers allocated above the bar during <var class="product">Model&nbsp;204</var> initialization. (See [[#Disk buffers and Model 204 storage|Disk buffers and Model 204 storage]].) The default is 0.</p>
</td>
</td></tr>
 
<tr><td>
<p><var>[[NUSERS parameter|NUSERS]]</var></p></td>
<td>
<td>
<p>Total number of SOUL users and IFAM2 or IFAM4 threads supported. The default is 1. The value of <var>NUSERS</var> consists of the total number of I/O device types (IODEVs) specified on the user parameter lines plus 1  for User 0. Online users are defined as terminal users with a particular type of terminal or as a host language thread, if IFAM is supported in the online region.</p>
<p>Total number of SOUL users and IFAM2 or IFAM4 threads supported. The default is 1. The value of <var>NUSERS</var> consists of the total number of I/O device types (IODEVs) specified on the user parameter lines plus 1  for User 0. Online users are defined as terminal users with a particular type of terminal or as a host language thread, if IFAM is supported in the online region.</p>
</td>
</td></tr>
</tr>
   
   
<tr>
<tr><td>
<td>
<p><var>[[PAGEFIX parameter|PAGEFIX]]</var></p></td>
<p><var>[[PAGEFIX parameter|PAGEFIX]]</var></p>
</td>
<td>
<td>
<p>Fixes areas in memory; can be useful in reducing paging traffic under z/OS or z/VSE. The default is X `0000000', which means nothing is page fixed.</p>
<p>Fixes areas in memory; can be useful in reducing paging traffic under z/OS or z/VSE. The default is X `0000000', which means nothing is page fixed.</p>
   
   
<p>For z/VSE only: A PAGEFIX request is valid only if real pages have been assigned by the ALLOC command. If ALLOC is 0 or if the total number of pages to be fixed exceeds the number of real pages, the PAGEFIX request  fails. </p>
<p>For z/VSE only: A PAGEFIX request is valid only if real pages have been assigned by the ALLOC command. If ALLOC is 0 or if the total number of pages to be fixed exceeds the number of real pages, the PAGEFIX request  fails. </p>
</td>
</td></tr>
</tr>
   
   
<tr>
<tr><td>
<td>
<p><var>[[RETRVKEY parameter|RETRVKEY]]</var></p></td>
<p><var>[[RETRVKEY parameter|RETRVKEY]]</var></p>
</td>
<td>
<td>
<p>PF key used to retrieve a previous terminal input line. 280 bytes of spare core is required for each user that has a defined retrieve key. The default is 0.</p>
<p>PF key used to retrieve a previous terminal input line. 280 bytes of spare core is required for each user that has a defined retrieve key. The default is 0.</p>
</td>
</td></tr>
</tr>
   
   
<tr>
<tr><td>
<td>
<p><var>[[SEQOPT parameter|SEQOPT]]</var></p>
<p><var>[[SEQOPT parameter|SEQOPT]]</var></p>
</td>
</td>
<td>
<td>
<p>Activation of the prefetch (look-ahead) feature for SOUL applications requiring entry order retrieval. Values are 1 (on) or 0 (off). The default is 0. Activation of SEQOPT requires resizing the <var>[[MAXBUF parameter|MAXBUF]]</var> parameter by using the formula: </p>
<p>Activation of the prefetch (look-ahead) feature for SOUL applications requiring entry order retrieval. Values are 1 (on) or 0 (off). The default is 0. Activation of SEQOPT requires resizing the <var>[[MAXBUF parameter|MAXBUF]]</var> parameter by using the formula: </p>
Line 988: Line 932:
<p>
<p>
You can modify SEQOPT with the RESET command. </p>
You can modify SEQOPT with the RESET command. </p>
</td>
</td></tr>
</tr>
   
   
<tr>
<tr><td>
<td>
<p><var>[[SERVSIZE parameter|SERVSIZE]]</var></p>
<p><var>[[SERVSIZE parameter|SERVSIZE]]</var></p>
</td>
</td>
<td>
<td>
<p>Size of each server area. The default is 0. (See [[#Server areas|Server areas]].) </p>
<p>Size of each server area. The default, formerly 0, is 65536. (See [[#Server areas|Server areas]].) </p>
  </td>
  </td></tr>
</tr>
   
   
<tr>
<tr><td>
<td>
<p><var>[[SPCORE parameter|SPCORE]]</var></p></td>
<p><var>[[SPCORE parameter|SPCORE]]</var></p>
</td>
<td>
<td>
<p>Minimum amount of storage within the <var class="product">Model&nbsp;204</var> address space to leave unallocated at the end of <var class="product">Model&nbsp;204</var> initialization. You can set <var>SPCORE</var> in the EXEC statement PARM field or on the User 0 parameter line.  The default is 8192. Spare core is used by:  </p>
<p>Minimum amount of storage within the <var class="product">Model&nbsp;204</var> address space to leave unallocated at the end of <var class="product">Model&nbsp;204</var> initialization. You can set <var>SPCORE</var> in the EXEC statement PARM field or on the User 0 parameter line.  The default is 8192. Spare core is used by:  </p>
<ul>
<ul>
<li> IFAM4 application program storage. The default is 12288.   </li>
<li> IFAM4 application program storage. The default is 12288. </li>


<li> Active subsystems. (See the formula given in [[System requirements for Application Subsystems#SPCORE size|SPCORE size]].)</li>
<li> Active subsystems. (See the formula given in [[System requirements for Application Subsystems#SPCORE size|SPCORE size]].)</li>
Line 1,016: Line 955:
</ul>
</ul>
   
   
<p>In z/OS, a number of bytes of virtual storage equal to your SPCORE setting is reserved above the line, and the same number is reserved below the line.</p>
<p>In z/OS, a number of bytes of virtual storage equal to your <var>SPCORE</var> setting is reserved above the line, and the same number is reserved below the line. The BTB amount is ignored in Model&nbsp;204 7.7 and higher if the <var>[[NUMBUFG parameter|NUMBUFG]]</var> parameter setting is greater than 0.</p> </td>
</td>
</tr>
</tr>
   
   
<tr>
<tr><td>
<td>
<p><var>[[TIMESTOP parameter|TIMESTOP]]</var></p></td>
<p><var>[[TIMESTOP parameter|TIMESTOP]]</var></p>
</td>
<td>
<td>
<p>Amount of time (CPU milliseconds) before automatic termination processing begins or before initiation of commands or SOUL requests stops. TIMESTOP cannot be reset. The default is 1500.</p>
<p>Amount of time (CPU milliseconds) before automatic termination processing begins or before initiation of commands or SOUL requests stops. TIMESTOP cannot be reset. The default is 1500.</p>
Line 1,029: Line 965:
<p>
<p>
  If TIMESTOP is set to 0, the <var class="product">Model&nbsp;204</var> timing facility's automatic shutdown is bypassed. If, in addition, the JCL EXEC statement parameter TIME is set to 1440, the z/OS automatic shutdown is bypassed, and <var class="product">Model&nbsp;204</var> continues to run indefinitely  until brought down by other means.</p>
  If TIMESTOP is set to 0, the <var class="product">Model&nbsp;204</var> timing facility's automatic shutdown is bypassed. If, in addition, the JCL EXEC statement parameter TIME is set to 1440, the z/OS automatic shutdown is bypassed, and <var class="product">Model&nbsp;204</var> continues to run indefinitely  until brought down by other means.</p>
</td>
</td></tr>
</tr>
   
   
<tr>
<tr><td><p><var>[[XMEMOPT parameter|XMEMOPT]]</var></p></td>
<td>
<td>
<p><var>[[XMEMOPT parameter|XMEMOPT]]</var></p>
<p><var class="product">Model&nbsp;204</var> Cross-Memory Services facility used by Timer PC and IOS Branch Entry for z/OS systems, as well as using SUSPEND/RESUME instead of WAIT/POST for communication between <var class="product">Model&nbsp;204</var> real subtasks. Coordinates  with <var>XMEMSVC</var>.</p>
</td>
<p>
<td>
It is also required for:</p>
<p><var class="product">Model&nbsp;204</var> Cross-Memory Services Facility used by Timer PC and IOS BRANCH ENTRY for z/OS systems, as well as using SUSPEND/RESUME instead of WAIT/POST for communication between <var class="product">Model&nbsp;204</var> real subtasks. Coordinates  with XMEMSVC.</p>
<p>It is also required for:</p>
   
   
<ul>
<ul>
<li> IOS Branch Entry</li>
<li> [[IOS Branch Entry]]</li>
</li>
 
<li> UL/DB2</li>
<li> [[UL/DB2]]</li>
</li>
 
<li> CRAM-XDM</li>
<li> [[Defining the user environment (CCAIN)#CRAM options for z/OS|CRAM-XDM]]</li>
</li>
 
<li> CPUID check</li>
<li> CPUID check (product license verification; prior to Model&nbsp;204 7.5)</li>
</li>
</ul>
</ul>
<p>
<p>
To choose the correct setting for your site, see the <var>[[XMEMOPT parameter|XMEMOPT]]</var> parameter page. </p>
VIO is incompatible with IOSB and EXCPVR.</p>
</td></tr>
   
   
<p>VIO is incompatible with IOSB and EXCPVR.</p>
<tr><td><p><var>[[XMEMSVC parameter|XMEMSVC]]</var></p></td>
</td>
</tr>
<tr>
<td>
<td>
<p><var>[[XMEMSVC parameter|XMEMSVC]]</var></p>
<p>SVC number of the <var class="product">Model&nbsp;204</var> Cross-Memory Services module ([[Cross-memory facilities CRAM and M204XSVC#M204XSVC|M204XSVC]]). Installation of this module with an SVC is deprecated as of Model&nbsp;204 7.5. <var>XMEMSVC</var> coordinates with <var>XMEMOPT</var>. The default is 0. </p>
</td>
<p>
<td>
M204XSVC is also used by:</p>
<p>SVC number of the <var class="product">Model&nbsp;204</var> Cross-Memory Services. Coordinates with XMEMOPT. The default is 0.
It is also required for:</p>
<ul>
<ul>
<li> IOS Branch Entry</li>
<li> IOS Branch Entry</li>


<li> UL/DB2</li>
<li> UL/DB2</li>
<li> CRAM V4.1 feature</li>


<li> CRAM-XDM</li>
<li> CRAM-XDM</li>


<li> CPUID check</li>
<li> CPUID check (product license verification; prior to Model&nbsp;204 7.5)</li>
</ul>
</ul>
</td>
</td></tr>
</tr>
</table>
</table>
 
===z/VSE UPSI Job Control statement===
===z/VSE UPSI Job Control statement===
<p>
<p>
In a z/VSE environment:</p>
In a z/VSE environment:</p>
<ul>
<ul>
<li> Use the <var>SYSPARM</var> parameter of the z/VSE OPTION Job Control statement to specify a limited number of parameters that are normally specified on User 0 or any user's parameter lines, if the maximum length of the data does not  exceed eight characters. For example, you can set the <var>LIBUFF</var> parameter with the following statement:
<li> Use the <var>SYSPARM</var> parameter of the z/VSE OPTION Job Control statement to specify a limited number of parameters that are normally specified on User 0 or any user's parameter lines, if the maximum length of the data does not  exceed eight characters. For example, you can set the <var>LIBUFF</var> parameter with the following statement:
Line 1,102: Line 1,022:
<caption>UPSI/SYSOPT settings</caption>
<caption>UPSI/SYSOPT settings</caption>
<tr class="head">
<tr class="head">
<th>
<th><p>UPSI setting</p></th>
<p>UPSI
<th><p>SYSOPT value</p></th>
setting</p>
<th><p>Meaning</p></th>
</th>
<th>
<p>SYSOPT value</p>
</th>
<th>
<p>
Meaning</p>
</th>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>10000000</p>
<p>10000000</p></td>
</td>
<td>
<td>
<p>128</p>
<p>128</p></td>
</td>
<td>
<td>
<p>Generate audit trail and/or journal</p>
<p>Generate audit trail and/or journal</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>01000000</p>
<p>01000000</p></td>
</td>
<td>
<td>
<p>64</p>
<p>64</p></td>
</td>
<td>
<td>
<p>Abend without a dump when the return code is nonzero</p>
<p>Abend without a dump when the return code is nonzero</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>00100000</p>
<p>00100000</p></td>
</td>
<td>
<td>
<p>32</p>
<p>32</p></td>
</td>
<td>
<td>
<p>Include RK lines on the audit trail</p>
<p>Include RK lines on the audit trail</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>00010000</p>
<p>00010000</p></td>
</td>
<td>
<td>
<p>16 </p>
<p>16 </p></td>
</td>
<td>
<td>
<p>Login required</p>
<p>Login required</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>00001000</p>
<p>00001000</p></td>
</td>
<td>
<td>
<p>8</p>
<p>8</p></td>
</td>
<td>
<td>
<p>Automatic disconnect in response to the LOGOUT command</p>
<p>Automatic disconnect in response to the LOGOUT command</p></td>
</td>
</tr>
</tr>
   
   
Line 1,180: Line 1,077:
  </td>
  </td>
<td>
<td>
<p>4 </p>
<p>4</p></td>
</td>
<td>
<td>
<p>Restrict the use of data definition commands within a run</p>
<p>Restrict the use of data definition commands within a run</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>00000010</p>
<p>00000010</p></td>
</td>
<td>
<td>
<p>2 </p>
<p>2</p></td>
</td>
<td>
<td>
<p>Open CCAGRP for use of permanent file group</p>
<p>Open CCAGRP for use of permanent file group</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>00000001</p>
<p>00000001</p></td>
</td>
<td>
<td>
<p>1</p>
<p>1</p></td>
</td>
<td>
<td>
<p>Open CCASYS for use of application subsystem definitions</p>
<p>Open CCASYS for use of application subsystem definitions</p></td>
</td>
</tr>
</tr>
</table></li>
</table></li>
Line 1,257: Line 1,146:
===Record locking table===  
===Record locking table===  
<p>
<p>
The record locking table, whose length is the product of the number of users (<var>NUSERS</var>) and the length in bytes of one user's part of the table (<var>LRETBL</var>), contains control information necessary to detect conflicts between users trying to update records simultaneously. </p>
The record locking table (also called: record enqueuing table), whose length is the product of the number of users (<var>[[NUSERS parameter|NUSERS]]</var>) and the length in bytes of one user's part of the table (<var>[[LRETBL parameter|LRETBL]]</var>), contains control information necessary to detect conflicts between users trying to update records simultaneously. </p>
<p>
<p>
You can issue a <code>MONITOR ENQ</code> command to determine current usage in the record locking table.</p>
You can issue a <code>MONITOR ENQ</code> command to determine current usage in the record locking table.</p>
Line 1,263: Line 1,152:
====Calculating allocated size of record locking table====
====Calculating allocated size of record locking table====
<p>
<p>
The amount of space required by a request is roughly proportional to the number of lists and FIND statements contained in the request. Each <var>FIND</var> statement or list requires about 46 bytes per file for files less than or  equal to 300,000 records. Space requirements increase at the rate of 2.25 bytes per segment. The maximum value is 65,535.</p>
The amount of space required by a request is roughly proportional to the number of lists and <var>FIND</var> statements contained in the request. Each <var>FIND</var> statement or list requires about 46 bytes per file for files less than or  equal to 300,000 records. Space requirements increase at the rate of 2.25 bytes per segment. The maximum value is 65,535.</p>
   
   
====SYSOPT2=X'40'====  
====SYSOPT2=X'40'====  
<p>
<p>
Record sets &mdash; found sets, including <var>FDWOL</var> found sets, sorted sets, lists, and LPU lists &mdash; are traced through entries in the record locking table. One entry is required for each segment (49,152 records) in the record set. These entries are CCATEMP page numbers. </p>
Record sets &mdash; found sets, including <var>FDWOL</var> found sets, sorted sets, lists, and LPU lists &mdash; are traced through entries in the record locking table. One entry is required for each segment (49,152 records) in the record set. These entries are CCATEMP page numbers. </p>
<p>
<p>When SYSOPT2=X'40', the entries contain 4-byte CCATEMP page numbers. Setting <var>SYSOPT=X'40'</var> provides a substantial increase in the number of simultaneous record sets that can be concurrently active in a given <var class="product">Model&nbsp;204</var> run. Therefore, if you set <code>SYSOPT2=X'40'</code>, you should also at least double <var>LRETBL</var>.</p>
When the <var>[[SYSOPT2 parameter|SYSOPT2]]</var> X'40' bit is set, the entries contain 4-byte CCATEMP page numbers. Setting the X'40' bit provides a substantial increase in the number of simultaneous record sets that can be concurrently active in a given <var class="product">Model&nbsp;204</var> run. Therefore, if you set the <var>SYSOPT2</var> X'40' bit, you should also at least double the <var>LRETBL</var> value.</p>
   
   
<ul>
<ul>
<li> When the <var>SYSOPT2</var> setting does not include X'40', then at any given time the bit maps corresponding to all users holding found sets of any kind must fit into CCATEMP pages designated as the small model page pool no matter  how large CCATEMP has been allocated.</li>
<li> When the <var>SYSOPT2</var> setting does not include X'40', then at any given time the bit maps corresponding to all users holding found sets of any kind must fit into CCATEMP pages designated as the small model page pool no matter  how large CCATEMP has been allocated.</li>
</li>
 
<li> When the <var>SYSOPT2</var> setting does include X'40', the CCATEMP page restriction is removed and user found sets can be placed anywhere within CCATEMP. This includes both the small model page pool and the CCATEMP expansion area,  allowing for the possibility of a greater number of concurrent found sets being held by all users.</li>
<li> When the <var>SYSOPT2</var> setting does include X'40', the CCATEMP page restriction is removed and user found sets can be placed anywhere within CCATEMP. This includes both the small model page pool and the CCATEMP expansion area,  allowing for the possibility of a greater number of concurrent found sets being held by all users.</li>
</li>
</ul>
</ul>
 
===Resource locking table===
===Resource locking table===
   
   
<p>You can use the <var>[[$CenqCt]]</var> function to obtain information on the number of unused entries in the resource locking table.  </p>
<p>You can use the <var>[[$CenqCt]]</var> function to obtain information on the number of unused entries in the resource locking table (also called: resource enqueuing table).  </p>
   
   
====Sizing the resource locking table====
====Sizing the resource locking table====
Line 1,315: Line 1,203:
   
   
<li>The <var class="product">Model&nbsp;204</var> job uses the CCAGRP data set. </li>
<li>The <var class="product">Model&nbsp;204</var> job uses the CCAGRP data set. </li>
</li>
</ul>
</ul>
   
   
<p>The following sections explain how locking conflicts are handled by <var class="product">Model&nbsp;204</var>, and how data integrity is ensured when multiple jobs run on one CPU.</p>
<p>The following sections explain how locking conflicts are handled by <var class="product">Model&nbsp;204</var>, and how data integrity is ensured when multiple jobs run on one CPU.</p>
 
===Handling locking conflicts===
===Handling locking conflicts===
   
   
Line 1,396: Line 1,283:
   
   
===How Model 204 resolves locking conflicts===
===How Model 204 resolves locking conflicts===
<p>
<p>Locking conflicts can be handled automatically or by issuing the <var>ENQCTL</var> command (see <var class="product">Model&nbsp;204</var> Parameter and Command Reference).  </p>
Locking conflicts can be handled automatically or by issuing the <var>[[ENQCTL command|ENQCTL]]</var> command.  </p>
   
   
<p>Conflicts are handled automatically in single CPU error cases where a
<p>Conflicts are handled automatically in single CPU error cases where a
Line 1,443: Line 1,330:
<i>filename</i> AT <i>hh</i>:<i>mm</i>:<i>ss</i> ON <i>yy</i>.<i>ddd</i>
<i>filename</i> AT <i>hh</i>:<i>mm</i>:<i>ss</i> ON <i>yy</i>.<i>ddd</i>
</p>
</p>
<p>The date and time identify the most recent update of the file. Used in conjunction with the operating system job logs, this information can determine the cause of the problem. </p>
<p>
The date and time identify the most recent update of the file. Used in conjunction with the operating system job logs, this information can determine the cause of the problem. </p>
</li></ul>
</li></ul>
   
   
Line 1,483: Line 1,371:
If a CMS user has SHR access to a <var class="product">Model&nbsp;204</var> file on a read-only minidisk, SHR does not prevent another user from upgrading to the EXCL mode. </p></li>
If a CMS user has SHR access to a <var class="product">Model&nbsp;204</var> file on a read-only minidisk, SHR does not prevent another user from upgrading to the EXCL mode. </p></li>
</ul>
</ul>
 
==Disk buffers and Model 204 storage==
==Disk buffers and Model 204 storage==
   
   
Line 1,491: Line 1,379:
   
   
<ul>
<ul>
<li> Below the line, for 24-bit storage for non XA systems: VSE, VM, and OS</li>
<li> Below the line, for 24-bit storage for non-XA systems: z/OS, z/VM, and z/VSE</li>


<li> Above the line, for sites that support 31-bit storage for z/OS, OS/390, XA, ESA, z/VSE, z/VM</li>
<li> Above the line, for sites that support 31-bit storage for OS/390, XA, ESA, z/OS, z/VM, and z/VSE</li>


<li> Above the bar, for sites that support 64-bit storage for z/OS and z/VM</li>
<li> Above the bar, for sites that support 64-bit storage for z/OS, z/VM, and z/VSE</li>
</ul>
</ul>
   
   
Line 1,513: Line 1,401:
</p>
</p>
<p>
<p>
<var>[[NUMBUF parameter|NUMBUF]]</var> is a viewable parameter that is equal to the number of buffers allocated above the line. <var>NUMBUF</var> may be equal to or less than <var>MAXBUF</var>, depending on the amount of virtual storage available to the job.</p>
<var>[[NUMBUF parameter|NUMBUF]]</var> is a viewable parameter that is equal to the number of buffers allocated above the line. <var>NUMBUF</var> is equal to or less than <var>[[MAXBUF parameter|MAXBUF]]</var>, depending on the amount of virtual storage available to the job.</p>
<p>
<p>
<var>[[NUMBUFG parameter|NUMBUFG]]</var> is a settable and viewable parameter that is equal to the number of buffers allocated above the bar. If <var>NUMBUFG</var> buffers cannot be allocated in available above the bar storage, the run terminates.</p>
<var>[[NUMBUFG parameter|NUMBUFG]]</var> is a settable and viewable parameter that is equal to the number of buffers allocated above the bar (ATB). If <var>NUMBUFG</var> buffers cannot be allocated in available above the bar storage, the run terminates.</p>
</li>
<p class="note"><b>Note:</b> As of version 7.7 of Model&nbsp;204, either
<var>NUMBUF</var> or <var>NUMBUFG</var> is 0: all disk buffer storage
is allocated BTB, or all is allocated ATB, depending on the setting of <var>NUMBUFG</var>.</p></li>
</ul>
</ul>
   
   
===Buffers in an ONLINE configuration===  
===Using 31-bit storage===
<p>
<p>
The following considerations apply to the use of buffers above the line in an ONLINE configuration:</p>
When BTB buffers are being used (that is, <var>NUMBUFG</var> is 0 under version 7.7 or higher, or <var>NUMBUFG</var> is any value under Model&nbsp;204 prior to 7.7) in systems that support 31-bit addressing, <var class="product">Model&nbsp;204</var> disk buffers are allocated above the 16-megabyte line. This frees virtual storage for other data that must remain below the line, and  it allows for the allocation of a larger buffer pool, since there is more virtual storage above the line. As the number of buffers increases, database pages can remain in memory for longer periods of time, and repeated reads (I/O) for the same pages  are reduced.</p>
   
   
<ul>
<ul>
<li>A minimum number of buffers is required for the run to come up. <var>MINBUF</var>, if set smaller than the result of the following calculation, is reset to this value:
<li> If [[IOS Branch Entry]] (<var>[[XMEMOPT parameter|XMEMOPT]]</var> X'02') is used, control blocks, hash cells, and page fix lists are allocated above the line. </li>
 
<li> If IOS Branch Entry is not used, the disk buffer control blocks and hash cells (and page fix lists if EXCPVR is used) are allocated below the line. The buffers themselves are allocated above the line.</li>
</ul>
<p class="note"><b>Note:</b>
For information about controlling the allocation of hash cells per buffer pool page, see the <var>[[HASHCELL parameter|HASHCELL]]</var> parameter. </p>
<p>
A minimum number of BTB buffers is required to bring up an Online configuration:</p>
<ul>
<li>Model&nbsp;204 7.6 or lower:
<p>
The minimum number of buffers is equal to the result of the following calculation: </p>
<p class="code">NLRUQ * ((NSERVS + NSUBTKS) * MAXOBUF + 15)
<p class="code">NLRUQ * ((NSERVS + NSUBTKS) * MAXOBUF + 15)
</p> </li>
</p>  
<p>
<li><var>MAXBUF</var>, if smaller than <var>MINBUF</var> after the previous calculation, is reset to the value of <var>MINBUF</var>.</li>
If <var>[[MINBUF parameter|MINBUF]]</var> is set smaller than the above result, Model&nbsp;204 resets <var>MINBUF</var> to the result value. </p>
<p>
If <var>MAXBUF</var> is smaller than <var>MINBUF</var> after the previous calculation, <var>MAXBUF</var> is reset to the value of <var>MINBUF</var>. </p>
<p>
Rocket Software recommends that you start with a minimum setting of <code>MAXBUF=10000</code> and monitor performance statistics to determine if that number is adequate. Generally, performance will improve as the size of the buffer pool increases. That will not be the case, however, if real storage is limited and system paging increases. Many sites are running with <code>MAXBUF=50000</code>, <code>100000</code>, or more.</p></li>
 
<li>Model&nbsp;204 7.7 and higher:
<p>
If <var>NUMBUFG</var> is 0, only BTB buffers are used, and the minimum number of buffers calculation and the effects on <var>MINBUF</var> and <var>MAXBUF</var> are as described in the preceding item. </p>
<p>
If <var>NUMBUFG</var> is greater than 0, only ATB buffers are used, and the minimum number of ATB buffers is described in [[#Managing ATB storage with NUMBUFG|Managing ATB storage with NUMBUFG]].
</p>
</li>
</ul>
</ul>
===Using 64-bit addressing and Above the Bar (ATB) storage===
<p>
<p>
Rocket Software recommends that you start with a minimum setting of <code>MAXBUF=10000</code> and monitor performance statistics to determine if that number is adequate. Generally, performance will improve as the size of the buffer pool increases. That will not be the case, however, if real storage is limited and system paging increases. Many sites are running with <code>MAXBUF=50000</code>, <code>100000</code>, or more.</p>
In systems that support 64-bit virtual storage, you can place Table B and Table X pages (and other entities listed in [[Model 204 configurations and operating environments#Model 204 entities in above the bar storage|Model&nbsp;204 entities in above the bar storage]]) in the above-the-bar buffer pool, or above the two gigabyte (2GB) address line. Pages that are not stored above the bar reside in the buffer pool above the line.</p>
 
<blockquote class="note"><b>Important:</b>
<ul>
<li>For Model&nbsp;204 version 7.4, you should ensure that your user-written and third-party $functions can work with non-swappable server tables in 64-bit storage above the bar.</li>
 
<li>For Model&nbsp;204 version 7.5 and higher, any assembler language functions that you have written for use within Model&nbsp;204 version 7.5 <b>must</b> be 64-bit compliant. [[Contacting Rocket Software Technical Support|Contact Technical Support]] if you need help with conversion of your functions.</li>
 
<li>For Model&nbsp;204 version 7.7 and higher, activating usage of ATB buffers (setting <var>NUMBUFG</var> greater than 0) causes all buffer storage to be ATB and none to be BTB.  
<p>
Prior to the gradual introduction of ATB storage for Model&nbsp;204, storage was rather limited, so Model&nbsp;204 took all the storage it could, returned <var>[[SPCORE parameter|SPCORE]]</var> bytes, and allocated the rest into the buffer pool.
If the resulting number of buffers was not between <var>MINBUF</var> and <var>MAXBUF</var>, the run terminated.
On more contemporary systems, virtual storage is abundant, making obsolete the concept of calculating the amount of storage (BTB) that will fit. </p>
<p>
The following documentation retains many remarks that apply to versions preceding 7.7 where ATB and BTB buffers might both be used together. </p></li>  
</ul></blockquote>
   
   
===Using 31-bit storage===
<ul>
<li> In most cases, Table B pages constitute the biggest portion of all pages in the buffer pool. Moving Table B pages to an above-the-bar buffer pool lets <var class="product">Model&nbsp;204</var> place more pages from all other tables in the below-the-bar buffer pool and thereby reduce I/O and CPU time to read and write pages to and from disk. </li>
<li> When a buffer is allocated above the bar, the corresponding disk buffer control blocks (one per buffer, 160 bytes each) and hash cells (three per buffer, 16 bytes each) are also allocated above the bar. This means there is no below the bar storage penalty for allocating above-the-bar buffers.</li>
   
   
<p>In systems that support 31-bit addressing, <var class="product">Model&nbsp;204</var> disk buffers are allocated above the 16-megabyte line. This frees virtual storage for other data that must remain below the line and  allows for the allocation of a larger buffer pool since there is more virtual storage above the line. As the number of buffers increases, database pages can remain in memory for longer periods of time and repeated reads (I/O) for the same pages  are reduced.</p>
<li> Having these two buffer pools rather than one improves <var class="product">Model&nbsp;204</var> scalability by reducing MP collisions when using buffer pool resources. </li>
   
   
<ul>
<li> Eight bytes added to the end of every buffer, above and below the bar, detect buffer overruns. The buffer size per page is 6192 bytes (or 6184 plus 8).</li>
<li> If IOS BRANCH ENTRY (XMEMOPT=2) is used, control blocks, hash cells, and page fix lists are allocated above the line. </li>
</li>
<li> If IOS BRANCH ENTRY is not used, the disk buffer control blocks and hash cells (and page fix lists if EXCPVR is used) are allocated below the line. The buffers themselves are allocated above the line.</li>
</li>
</ul>
</ul>
====Managing ATB storage with NUMBUFG====
<p class="note"><b>Note:</b> If you set <var>NUMBUFG</var> greater than zero to use storage above the bar, IBM requires that you set a limit on how much of that virtual storage each address space can use. This limit is called [[Model 204 configurations and operating environments#Set the IBM MEMLIMIT system option|MEMLIMIT]].</p>
   
   
<p class="note"><b>Note:</b>
<p>When <var>NUMBUFG</var> is set to a nonzero value, an above-the-bar buffer pool is allocated with <var>NUMBUFG</var> buffers. As of Model&nbsp;204 7.7, this ATB buffer pool handles all disk buffer storage, and you get the exact amount of storage you specify with <var>NUMBUFG</var>. Before version 7.7 of Model&nbsp;204, nonzero <var>NUMBUFG</var> activates an ATB buffer pool <i>in addition to</i> the BTB buffer pool.
For information about controlling the allocation of hash cells per buffer pool page, see the <var>[[HASHCELL parameter|HASHCELL]]</var> parameter. </p>
===Using 64-bit storage===
<p>In systems that support 64-bit virtual storage, you can place Table B and Table X pages (and other entities listed in [[Model 204 configurations and operating environments#Model 204 entities in above the bar storage|Model 204 entities in above the bar storage]]) in the above-the-bar buffer pool, or above the two gigabyte (2GB) address line. Pages that are not stored above the bar reside in the buffer pool above the line.</p>
<p>64-bit features are not yet available on IBM z/VSE systems.</p>
<ul>
<li> In most cases, Table B pages constitute the biggest portion of all pages in the buffer pool. Moving Table B pages to an above the bar buffer pool lets <var class="product">Model&nbsp;204</var> place more pages from all other tables in the below the bar  buffer pool and thereby reduce I/O and CPU time to read and write pages to and from disk. </li>
<li> When a buffer is allocated above the bar, the corresponding disk buffer control blocks (one per buffer, 160 bytes each) and hash cells (three per buffer, 16 bytes each) are also allocated above the bar. This means there  is no below the bar storage penalty for allocating above the bar buffers.</li>
<li> Having these two buffer pools rather than one improves <var class="product">Model&nbsp;204</var> scalability by reducing MP collisions when using buffer pool resources. </li>
<li> Eight bytes have been added to the end of every buffer, above and below the bar, to detect buffer overruns. The new buffer size per page is 6192 bytes (or 6184 plus 8).</li>
</ul>
===Managing above the bar storage===
<p>When <var>NUMBUFG</var> is set to a nonzero value, an above the bar buffer pool is allocated with <var>NUMBUFG</var> buffers. This is in addition to the below the bar buffer pool which is always allocated with at  least the minimum number of buffers, calculated as follows:</p>
<p class="code">NLRUQ * ((NSERVS + NSUBTKS) * MAXOBUF + 15)
</p>
</p>
<p>
<p>
Table B and Table X pages, (and other entities listed in [[Model 204 configurations and operating environments#Model 204 entities in above the bar storage|Model 204 entities in above the bar storage]]) use the above the bar buffer pool. Those pages are not read into  the below the bar buffer pool. Consequently, most sites can reduce the size of the below the bar buffer pool by the high water mark of Table B pages currently resident in that buffer pool.</p>
If ATB and BTB buffer pools are both being used: </p>
<ul>  
<p>To quickly implement the above the bar feature initially set <var>NUMBUFG</var> equal to your <var>MAXBUF</var> setting and leave <var>MAXBUF</var> at its current setting.</p>
<li>The ATB and the BTB buffer pool are allocated with at least a minimum number of buffers, and the calculations for those minimums are very similar:
<p>
<p>The minimum number of above the bar buffers calculated by <var class="product">Model&nbsp;204</var> uses the following formula:</p>
The ATB minimum, calculated by <var class="product">Model&nbsp;204</var>, is:</p>
<p class="code">[[NLRUQG parameter|NLRUQG]] * ((NSERVS + NSUBTKS) * MAXOBUF + 15)
<p class="code">NLRUQG * ((NSERVS + NSUBTKS) * MAXOBUF + 15)
</p>
</p>
<p>
<p>
If you set <var>NUMBUFG</var> to a lower value, it is reset to the calculated value.</p>
If you set <var>NUMBUFG</var> to a lower value, it is reset to the calculated value.</p>
<p>
<p>
If <var>NUMBUFG</var> is greater than zero, the buffer hash pool is allocated above the bar. In addition, control blocks associated with above the bar buffers are also allocated above the bar. <var>NUMBUFG</var> is limited to buffer pools  of 4.2 terabytes or fewer.</p>  
The BTB minimum is:</p>  
<p class="code">[[NLRUQ parameter|NLRUQ]] * ((NSERVS + NSUBTKS) * MAXOBUF + 15)
</p>
<p>
<p>
To use above the bar buffer pool in z/OS, IOS Branch Entry is required. This means <var>XMEMOPT</var> must be set to include X'02'. You can explicitly exclude allocating above the bar buffers by setting <code>NUMBUFG=0</code>.</p>
If you set <var>MINBUF</var> to a lower value, it is reset to the calculated value.</p></li>
 
<li>Table B and Table X pages (and other entities listed in [[Model 204 configurations and operating environments#Model 204 entities in above the bar storage|Model 204 entities in above the bar storage]]) use the above-the-bar buffer pool. Those pages are not read into the below-the-bar buffer pool. Consequently, most sites can reduce the size of the below-the-bar buffer pool by the highwater mark of Table B pages currently resident in that buffer pool.</li>
 
<li>To quickly implement the above-the-bar feature, initially set <var>NUMBUFG</var> equal to your <var>MAXBUF</var> setting and leave <var>MAXBUF</var> at its current setting.</li>
 
<li>If <var>NUMBUFG</var> is greater than zero, the buffer hash pool is allocated above the bar. In addition, control blocks associated with ATB buffers are also allocated above the bar. <var>NUMBUFG</var> is limited to buffer pools of 4.2 terabytes or fewer.</li>
 
<li>To use the above-the-bar buffer pool in z/OS, IOS Branch Entry is required. This means <var>[[XMEMOPT parameter|XMEMOPT]]</var> must be set to include X'02'. You can explicitly exclude allocating above-the-bar buffers by setting <code>NUMBUFG=0</code>.
<p>
<p>
If <var>NUMBUFG</var> is greater than zero and <var>XMEMOPT</var> does not include X'02', the following message is issued, <var>NUMBUFG</var> is not reset, and the job terminates.</p>
If <var>NUMBUFG</var> is greater than zero and <var>XMEMOPT</var> does not include X'02', the following message is issued, <var>NUMBUFG</var> is not reset, and the job terminates.</p>
Line 1,591: Line 1,511:
<p>
<p>
If you cannot get the number of buffers you requested, the job fails. </p>
If you cannot get the number of buffers you requested, the job fails. </p>
</li>
====Determining NUMBUFG setting====
</ul>
 
<p>The number of buffers you want to allocate above the bar and below the bar is dependent on the mix of work that is being done on your system. See [[#Model 204 entities in above the bar storage|Model 204 entities in above the bar storage]] for a list of entities that can go above the bar. </p>
====Determining the NUMBUFG setting====
<p>
The number of buffers you want to allocate above the bar and below the bar is dependent on the mix of work that is being done on your system. See [[#Model 204 entities in above the bar storage|Model 204 entities in above the bar storage]] for a list of entities that can go above the bar. </p>
   
   
<ul>
<ul>
<li> The <var>LDKBMWNG</var> parameter, which applies to above the bar buffers, corresponds to the LDKBMWND parameter, which applies to below the bar buffers.</li>
<li> The <var>[[LDKBMWNG parameter|LDKBMWNG]]</var> parameter, which applies to above-the-bar buffers, corresponds to the <var>[[LDKBMWND parameter|LDKBMWND]]</var> parameter, which applies to below-the-bar buffers.</li>
   
   
<li> If NLRUQG is set greater than 1, then the value of LDKBMWNG is rounded up to a multiple of NLRUQ. LDKBMWND has a minimum size of one (1).
<li> If <var>NLRUQG</var> is set greater than 1, the value of <var>LDKBMWNG</var> is rounded up to a multiple of <var>NLRUQ</var>. <var>LDKBMWND</var> has a minimum size of one (1).
</li>
</li>
</ul>
</ul>
   
   
<p>High values of LDKBMWNG might unnecessarily increase the number of writes done (measured by the DKWR statistic). Low values might cause excessive waiting for buffers (measured by the MAXIOX statistic). Rocket Software  recommends starting values for LDKBMWND and LDKBMWNG at 10% of NUMBUF and NUMBUFG, respectively.</p>
<p>High values of <var>LDKBMWNG</var> might unnecessarily increase the number of writes done (measured by the DKWR statistic). Low values might cause excessive waiting for buffers (measured by the MAXIOX statistic). Rocket Software  recommends starting values for <var>LDKBMWND</var> and <var>LDKBMWNG</var> at 10% of <var>NUMBUF</var> and <var>NUMBUFG</var>, respectively.</p>
<p>If you do not set LDKBMWNG, it is set to the same value as LDKBMWND.</p>
====Above the bar storage for EBM pages====
<p>Existence Bit Map (EBM) pages reside in above the bar storage. </p>
<p>Each <var class="product">Model&nbsp;204</var> file contains one EBM page for each segment in a file. If a file has five segments, that means there are five EBM pages for that file. </p>
   
   
<p>If you do not set <var>LDKBMWNG</var>, it is set to the same value as <var>LDKBMWND</var>.</p>
====Designating non-swappable and swappable server space====
<p>
You can allocate designated server tables for each user in storage above the bar that will not be subject to server swapping. This feature enables you to divide the server storage into two parts: swappable and non-swappable. This makes the swappable part of the server storage smaller and faster to swap.</p>
<p>The <var>[[SERVNSSZ parameter|SERVNSSZ]]</var> and <var>[[SERVNSA parameter|SERVNSA]]</var> parameters control non-swappable server areas.</p>
<ul>
<ul>
<li>The NUMBUFG parameter specifies the number of buffers allocated above the bar.  You can increase your NUMBUFG setting to allow more above the bar buffers for the EBM pages. Increase the allocation of NUMBUFG by a value  that accommodates all the EBM pages for all files that might be open concurrently in your job.</li>
<li><var>SERVNSSZ</var> (server non-swappable size) is the amount of space in bytes required for the above the bar server tables per user.
<li>The MAXBUF parameter specifies the maximum number of buffers to be allocated below the bar. The NUMBUF parameter (view only) indicates how many buffers were actually allocated. You can reduce MAXBUF by the same value  you used to increase NUMBUFG for EBM pages.
</li>
</li>
<li><var>SERVNSA</var> (server non-swappable areas) specifies the tables above the bar.</li>
</ul>
In order to store a table in ATB storage:
<ul>
<li>Increase the <var>SERVNSSZ</var> parameter by the corresponding table size.</li>
<li>Set the proper bit in <var>SERVNSA</var>; for example:
<ul>
<li>For FTBL, set the first byte to X'02', so the value of <var>SERVNSA</var> is X'02000000'.</li>
<li>For GTBL, set the second byte to X'80', so the value of <var>SERVNSA</var> is X'00800000'.</li>
<li>For NTBL, set the third byte to X'40', so the value of <var>SERVNSA</var> is X'00004000'.</li>
<li>For QTBL, set the third byte to X'20', so the value of <var>SERVNSA</var> is X'00002000'.</li>
</ul>
</ul>
</ul>
<p class="note"><b>Note:</b> The settings for each server table above the bar are independent of each other. So if FTBL, GTBL, NTBL, and QTBL are all placed above the bar, <var>SERVNSA</var> should be set to X'02806000'.</p>
====Above the bar storage for procedure pages====
<p>Procedure text pages, located in Table D, are also eligible to reside in the above the bar buffer pool. Each SOUL procedure is stored in one or more procedure text pages, the initial page being pointed to via  the procedure dictionary. (Pages from the procedure dictionary, which is also stored in Table D, are read into the below the bar buffer pool.)</p>
<p>This change is more likely to affect development environments than production environments, but in those development environments where NUMBUFG is allocated, you might still want to tune NUMBUFG up and NUMBUF down  accordingly.</p>
====Screens and images above the bar====
<p>Pages used for <var class="product">Model&nbsp;204</var> SCREEN and IMAGE items now reside in the buffer pool above the bar.</p>
====Allocating the above the bar buffer pool====
<p>If NUMBUFG is set to a nonzero value, an above the bar buffer pool is allocated with NUMBUFG buffers. This is in addition to the below the bar buffer pool which is always allocated using the MINBUF and MAXBUF  parameters previously discussed. </p>
<p>When the above the bar buffer pool is allocated, Table B and Table X pages use it exclusively. Those pages are no longer read into the above the line buffer pool. Consequently, you can reduce the size of the above  the line buffer pool by the high water mark of Table B pages previously resident in that buffer pool. </p>
<p>IOS Branch Entry is required when NUMBUFG is greater than zero, so the XMEMOPT setting must include the x'02' bit. </p>
<p>In addition, the disk buffer control blocks associated with the above the bar buffers are also allocated above the bar. </p>
====Above the bar storage for hash table cells====
<p>
<p>
The hash table is used to locate pages in the buffer pool based on the file and page number. You control the number of hash cells allocated in the hash table with the parameter <var>HASHCELL</var>. If <var>NUMBUFG</var> is also set to a value greater than zero to allocate buffers above the bar, the hash cells are also allocated above the bar. For more information about controlling the allocation of hash cells per buffer pool page, see <var>[[HASHCELL parameter|HASHCELL]]</var>. </p>
The non-swappable server part can be used with server swapping done in storage or on disk. It can also be used when there is no server swapping (<var>NUSERS</var>=<var>NSERVS</var>) to make servers below the bar smaller by using the non-swappable server part above the bar and saving storage below the bar.</p>
====Implementing above the bar use of storage====
<p>
<p>
If you set <var>NUMBUFG</var> greater than zero to use storage above the bar, IBM requires that you set a limit on how much of that virtual storage each address space can use. This limit is called MEMLIMIT. See [[Model 204 configurations and operating environments#Set the IBM MEMLIMIT system option|Set the IBM MEMLIMIT system option]] for more information.</p>
To obtain below-the-bar storage savings when the non-swappable server part is used, decrease the value of the <var>SERVSIZE</var> parameter by the <var>LFTBL</var> value used in calculating the server size.</p>
   
<p class="note"><b>Note:</b> When a table such as FTBL is placed in the non-swappable server part above the bar, the <var>[[UTABLE command|UTABLE]]</var> command decreasing the table size will not free any storage in the regular server below the bar.</p>
===Monitoring disk buffers===
 
<p>
When using non-swappable ATB server space, each user will get <var>SERVNSSZ</var> bytes of ATB space, even if the thread is logged out or running resident requests.
If you want to implement <var>NUMBUFG</var> and do more analysis later, you might start by setting <var>NUMBUFG</var> equal to your <var>MAXBUF</var> setting and leaving <var>MAXBUF</var> at its current setting. Then you could use the [[MONITOR command: Disk buffers|MONITOR DISKBUFF commands]] to analyze the buffer pool utilizations. </p>
 
For greater efficiency, Model&nbsp;204 version 7.5 also provides swappable ATB server areas that can supplement or replace the non-swappable areas.
 
<p>The <var>[[SERVGA parameter|SERVGA]]</var> and <var>[[SERVGSZ parameter|SERVGSZ]]</var> parameters control swappable server areas.</p>
<ul>
<li><var>SERVGA</var> (server swappable areas) specifies the tables above the bar. Each server table is controlled by a bit in SERVGA.</li>
 
<li><var>SERVGSZ</var> (server non-swappable size) is the amount of space in bytes required for the swappable above-the-bar server tables per server. The total amount of storage allocated for swappable above-the-bar server areas equals <var>SERVGSZ</var> rounded to 4K and multiplied by <var>[[NSERVS parameter|NSERVS]]</var>.</li>
</ul>
 
<blockquote class="note"><b>Note:</b> In Model&nbsp;204 V7.5 and higher, server tables can be in three different places:
<ul>
<li>The BTB swappable server area </li>
<li>The ATB swappable server area </li>
<li>The ATB non-swappable server area </li>
</ul> 
<p>
But server tables cannot be in two places at the same time. For example, you cannot make servers swappable and non-swappable at the same time. If, for instance, you set the NTBL bit on for the <var>SERVNSA</var> parameter, and you also set it on for <var>SERVGA</var>, the result would be: </p>
<p class="code">M204.1399: Same server area defined for server above the bar and non-swappable server</p>
<p>
However, you can make parts of your server swappable and other parts non-swappable: the non-swappable areas are like having <code>NUSERS=NSERVS</code>, but only for some tables. So if you had large STBLs and GTBLs, you might want to make them non-swappable to reduce server swap times. And if you had small TTBLs and ITBLs, you might want to put them in the swappable area. Any table in the above-the-bar SRVR (the swappable part of the server) is not taking up space in the below-the-bar server. The same is true for any table in the ATB-non-swappable part of the server. </p>
<p>
The goal is to reduce the requirement for below-the-bar server area so that you can increase <var>NSERVS</var> (as <var>NSERVS</var> increases, so does the need for below-the-bar virtual storage). </p>
</blockquote>
 
====ATB storage for APSY precompiled procedures====
The <var>[[RESPAGE parameter|RESPAGE]]</var> parameter activates the APSY [[Performance monitoring and tuning#Resident Request feature for precompiled procedures|precompiled procedures in storage]] feature using above-the-bar pages by specifying a number of 4K-byte operating system pages.
 
Specifying <var>RESPAGE</var> stores precompiled procedures as resident requests above the bar in the <var>RESPAGE</var> area. Using <var>RESPAGE</var> allows you to substantially increase the resident request area and decrease server swapping of QTBL and NTBL pages.
 
Also, when <var>RESPAGE</var> is greater than 0, <var>RESSIZE</var> is reset to -1, and no storage is allocated for <var>RESSIZE</var>
 
<var>RESPAGE</var> is independent of <var>[[SERVNSA parameter|SERVNSA]]</var>. That is, if <var>RESPAGE</var> is greater than 0, NTBL and QTBL for resident requests will always be stored in the resident request area, outside of the non-swappable server areas, even if the <var>SERVNSA</var> bits specify NTBL or QTBL are to be stored in the non-swappable server areas.  This avoids the duplication of storing NTBL and QTBL in two different locations.  In other words, a resident request is only stored in the resident request area and nowhere else. 
 
Storing resident requests above the bar is independent of tables above the bar. You can use a combination of resident requests and swappable servers ATB to reduce BTB-server sizes and thus increase the number of servers.
 
====ATB storage for EBM pages====
<p>
Existence Bit Map (EBM) pages reside in above the bar storage. </p>
   
   
<p>Each <var class="product">Model&nbsp;204</var> file contains one EBM page for each segment in a file. If a file has five segments, that means there are five EBM pages for that file. </p>
To allow more ATB buffers for the EBM pages, increase the <var>NUMBUFG</var> setting by a value that accommodates all the EBM pages for all files that might be open concurrently in your job. If in addition the version of Model&nbsp;204 is lower than 7.7, BTB buffers are also being used, and you can reduce the <var>MAXBUF</var> parameter by the same amount you increased <var>NUMBUFG</var> for EBM pages. 
====ATB storage for procedure pages====
<p>
Procedure text pages, located in Table D, are also eligible to reside in the ATB buffer pool. Each SOUL procedure is stored in one or more procedure text pages, the initial page of which is pointed to by the procedure dictionary. (Pages from the procedure dictionary, which is also stored in Table D, are read into the BTB buffer pool.)</p>
<p>In a development environment where procedure page volume is high and where <var>NUMBUFG</var> is allocated, you might need to increase <var>NUMBUFG</var> to accommodate the procedure text pages. In this case, if BTB buffers are also being used (Model&nbsp;204 version less than 7.7), you can reduce the <var>MAXBUF</var> parameter by the same amount you increased <var>NUMBUFG</var>.</p>
====ATB storage for screens and images====
<p>
Pages used for <var class="product">Model&nbsp;204</var> <var>SCREEN</var> and <var>IMAGE</var> items reside in the buffer pool above the bar.</p>
====ATB storage for hash table cells====
<p>
The hash table is used to locate pages in the buffer pool based on the file and page number. You control the number of hash cells allocated in the hash table with the parameter <var>[[HASHCELL parameter|HASHCELL]]</var>. If <var>NUMBUFG</var> is also set to a value greater than zero to allocate buffers above the bar, the hash cells are also allocated above the bar. </p>
====ATB storage for XmlDoc object pages====
As of Model&nbsp;204 version 7.5, the CCATEMP pages used for <var>XmlDoc</var> objects use the ATB buffer pool, which might allow the BTB buffer pool to be reduced, perhaps providing more storage for server areas. It also might provide a reduction in CPU utilization, especially when the <var>[[TEMPPAGE parameter|TEMPPAGE]]</var> parameter is used to allocate CCATEMP in memory.
===Monitoring disk buffers===
<p>
To get started using ATB buffers in an environment where both ATB and BTB buffers will be used, you might want to implement <var>NUMBUFG</var>, then do more analysis later. A suggested starting value for <var>NUMBUFG</var> in this case is equal to your <var>MAXBUF</var> setting (while leaving <var>MAXBUF</var> at its current setting). Then use the [[MONITOR command: Disk buffers|MONITOR DISKBUFF commands]] to analyze the buffer pool utilizations. </p>
==Managing delayed disk updates==
==Managing delayed disk updates==
<p>
<p>
Line 1,661: Line 1,637:
<p>
<p>
The CCAIN parameter <var>[[DKUPDTWT parameter|DKUPDTWT]]</var> specifies delayed disk updates. The value of <var>DKUPDTWT</var> determines how many seconds a disk buffer containing a file's modified pages must have aged before it can be written to disk. </p>
The CCAIN parameter <var>[[DKUPDTWT parameter|DKUPDTWT]]</var> specifies delayed disk updates. The value of <var>DKUPDTWT</var> determines how many seconds a disk buffer containing a file's modified pages must have aged before it can be written to disk. </p>
<p>
<p>When <var>DKUPDTWT</var> is zero, the default value, <var class="product">Model&nbsp;204</var> writes all of the file's modified pages to disk at the end of the last in-flight update of the file. The user who completed the last in-flight update waits for this disk  update process to complete and for the message stating that the disk update is complete. </p>
When <var>DKUPDTWT</var> is zero, the default value, <var class="product">Model&nbsp;204</var> writes all of the file's modified pages to disk at the end of the last in-flight update of the file. The user who completed the last in-flight update waits for this disk  update process to complete and for the message stating that the disk update is complete. </p>
   
   
<p>If <var>DKUPDTWT</var> is not zero, <var class="product">Model&nbsp;204</var> delays the start of the disk update process for at least <var>DKUPDTWT</var> seconds, after which it may be the checkpoint pseudo subtask (CHKPPST) that performs the disk update. The user who  completed the last in-flight update does not have to wait for the disk update process to complete. </p>
<p>If <var>DKUPDTWT</var> is not zero, <var class="product">Model&nbsp;204</var> delays the start of the disk update process for at least <var>DKUPDTWT</var> seconds, after which it may be the checkpoint pseudo subtask (CHKPPST) that performs the disk update. The user who  completed the last in-flight update does not have to wait for the disk update process to complete. </p>
Line 1,676: Line 1,652:
The CHKPPST pseudo subtask plays a central role in handling delayed disk updates. When <var>DKUPDTWT</var> is set to 0, CHKPPST does the following:</p>
The CHKPPST pseudo subtask plays a central role in handling delayed disk updates. When <var>DKUPDTWT</var> is set to 0, CHKPPST does the following:</p>
<ol>
<ol>
<li> Sleeps for <var>CPTIME</var> minutes.</li>
<li>Sleeps for <var>CPTIME</var> minutes.</li>
   
   
<li> Tries to quiesce updates, for up to <var>CPTQ</var>, plus <var>CPTO</var> seconds.</li>
<li>Tries to quiesce updates, for up to <var>CPTQ</var>, plus <var>CPTO</var> seconds.</li>
   
   
<li> Takes the checkpoint, if all updates are quiesced.</li>
<li>Takes the checkpoint, if all updates are quiesced.</li>
</ol>
</ol>
   
   
Line 1,686: Line 1,662:
   
   
<ol>
<ol>
<li> Sleeps for <var>DKUPDTWT</var> divided by four seconds.</li>
<li>Sleeps for <var>DKUPDTWT</var> divided by four seconds.</li>
   
   
<li> Further processing depends on the value, rounded to the nearest integer of:
<li>Further processing depends on the value, rounded to the nearest integer of:
<p class="code">N = (CPTIME * 60) / (DKUPDTWT / 4)
<p class="code">N = (CPTIME * 60) / (DKUPDTWT / 4)
</p></li>
</p></li>
Line 1,703: Line 1,679:
   
   
<tr>
<tr>
<td>1. </td>
<td>1.</td>
<td>Performs the disk update process on all files that are not being updated, regardless of how long since they were marked disk-update-needed. </td></tr>
<td>Performs the disk update process on all files that are not being updated, regardless of how long since they were marked disk-update-needed. </td></tr>
   
   
<tr>
<tr>
<td>2. </td>
<td>2. </td>
<td>Attempts to deactivate Host Language Interface (HLI) updates for CPTQ seconds. Performs the disk update process on all files that are not being updated each time <var class="product">Model&nbsp;204</var> determines that there are more HLI  jobs to wait for.</td></tr>
<td>Attempts to deactivate Host Language Interface (HLI) updates for CPTQ seconds. Performs the disk update process on all files that are not being updated each time <var class="product">Model&nbsp;204</var> determines that there are more HLI  jobs to wait for.</td></tr>
<tr>
<tr>
<td>3. </td>
<td>3. </td>
<td>Attempts to deactivate all other updates for CPTO seconds. Performs the disk update process on all files that are not being updated each time <var class="product">Model&nbsp;204</var> determines that there are more users to wait for. </td></tr>
<td>Attempts to deactivate all other updates for CPTO seconds. Performs the disk update process on all files that are not being updated each time <var class="product">Model&nbsp;204</var> determines that there are more users to wait for. </td></tr>
   
   
<tr>
<tr>
<td>4. </td>
<td>4. </td>
<td>If all updates have been deactivated, performs the disk update process on all remaining files marked disk-update-needed. Otherwise, abandons the checkpoint attempt. </td></tr>
<td>If all updates have been deactivated, performs the disk update process on all remaining files marked disk-update-needed. Otherwise, abandons the checkpoint attempt. </td></tr>
   
   
Line 1,766: Line 1,742:
   
   
==Server areas==
==Server areas==
<p>
<p>Server areas are the internal work areas allocated to each user. Each area is divided into a fixed and variable portion. The fixed portion, which includes logical I/O buffers and user  resettable parameters, is calculated by <var class="product">Model&nbsp;204</var> at initialization. The variable portion can be changed dynamically with the <var>[[UTABLE command]]</var> command or the <var>IFUTBL</var> IFAM function (see the  <var class="book">Rocket Model&nbsp;204 Host Language Interface Reference Manual</var>). </p>
Server areas are the internal work areas allocated to each user. Each area is divided into a fixed and variable portion. The fixed portion, which includes logical I/O buffers and user  resettable parameters, is calculated by <var class="product">Model&nbsp;204</var> at initialization. The variable portion can be changed dynamically with the <var>[[UTABLE command|UTABLE]]</var> command or the <var>[[IFUTBL (HLI function)|IFUTBL]]</var> IFAM function. </p>
   
   
===Sizing user server areas===
===Sizing user server areas===
<p>
The default size of all user server areas is set on User 0's parameter line. If the default is used, the allocated server area is exactly large enough to contain the tables for each user specified on each user's  parameter line. If <var>[[SERVSIZE parameter|SERVSIZE]]</var> is also specified on a particular user's parameter line, the default is overridden for that user.</p>
   
   
<p>The default size of all user server areas is set on User 0's parameter line. If the default is used, the allocated server area is exactly large enough to contain the tables for each user specified on each user's  parameter line. If <var>SERVSIZE</var> is also specified on a particular user's parameter line, the default is overridden for that user.</p>
<p>The value of <var>SERVSIZE</var> must be as large as, or larger than, the user's aggregate table size. It is calculated by examining the user's server area requirements and monitoring the system statistics  (described in [[ONLINE monitoring]]) that provide information about the installation work load. The following formula gives the approximate size:</p>
<p>The value of <var>SERVSIZE</var> must be as large as, or larger than, the user's aggregate table size. It is calculated by examining the user's server area requirements and monitoring the system statistics  (described in [[Controlling system operations (CCAIN)#ONLINE monitoring|ONLINE monitoring]]) that provide information about the installation work load. The following formula gives the approximate size:</p>
   
   
<p class="syntax">SERVSIZE = <span class="term">fixed-table-size</span> + <span class="term">variable-table-size</span>
<p class="syntax">SERVSIZE = <span class="term">fixed-table-size</span> + <span class="term">variable-table-size</span>
Line 1,782: Line 1,758:
<li><var class="term">fixed-table-size</var> represents settings, defined during initialization, that cannot be modified during the run. </li>
<li><var class="term">fixed-table-size</var> represents settings, defined during initialization, that cannot be modified during the run. </li>
   
   
<li><var class="term">variable-table-size</var> represents settings that can be varied using the UTABLE command or its IFAM equivalent, IFUTBL.
<li><var class="term">variable-table-size</var> represents settings that can be varied using the <var>UTABLE</var> command or its IFAM equivalent, <var>IFUTBL</var>.
</li>
</li>
</ul>
</ul>
   
   
====SERVSIZE and server page alignment====  
====SERVSIZE and server page alignment====  
<p>S
<p>
ervers and some server tables are always aligned on a 4K page boundary. In pre-7.4.0 releases, server and tables alignment took place only when DSPOPT had settings of bits X'01' or X'02' or the APSYPAGE parameter was indicated. </p>
Servers and some server tables are always aligned on a 4K page boundary. In pre-7.4 releases, server and tables alignment took place only when <var>[[DSPOPT parameter|DSPOPT]]</var> had settings of bits X'01' or X'02', or when the <var>[[APSYPAGE parameter|APSYPAGE]]</var> parameter was indicated. </p>
   
   
<p>If you used server alignment previously, there is no change in your server size requirements.</p>
<p>If you used server alignment previously, there is no change in your server size requirements.</p>
   
   
<p>If you did not use server alignment previously, then you might notice an increase in server size that in the worst case could be up to 24528 bytes per server. </p>
<p>If you did not use server alignment previously, then you might notice an increase in server size that in the worst case could be up to 24528 bytes per server.</p>
   
   
<p>When you calculate server size, take into account that FSCB, HEAP, NTBL, QTBL, STBL, and VTBL are each rounded on a 4K page boundary, so in the worst case each area could require up to 4088 bytes of server space,  compared to servers with no alignment in previous releases. </p>
<p>When you calculate server size, take into account that FSCB, HEAP, NTBL, QTBL, STBL, and VTBL are each rounded on a 4K page boundary, so in the worst case each area could require up to 4088 bytes of server space,  compared to servers with no alignment in previous releases.</p>
   
   
<p>The following sections explain how server area sizing parameters are processed, which parameters determine fixed and variable table sizes, and the ranges of values these parameters can take.</p>
<p>The following sections explain how server area sizing parameters are processed, which parameters determine fixed and variable table sizes, and the ranges of values these parameters can take.</p>
 
===Initialization and error handling===
===Initialization and error handling===
<p>
<p>During initialization, each user, except User 0, is identified in the output before the user's parameter line is read. The aggregate size of each user's tables and the size of tables fixed during initialization are  printed after the user's parameters are read.   </p>
During initialization, each user, except User 0, is identified in the output before the user's parameter line is read. The aggregate size of each user's tables and the size of tables fixed during initialization are  printed after the user's parameters are read. </p>
   
   
<p>If errors are detected, they are reported and initialization continues whenever possible. If errors are detected during initialization, the run is canceled at the end of initialization. Error conditions in initializing  the server cause the run to end immediately with a return code of 96. </p>
<p>If errors are detected, they are reported and initialization continues whenever possible. If errors are detected during initialization, the run is canceled at the end of initialization. Error conditions in initializing  the server cause the run to end immediately with a return code of 96. </p>
   
   
<p>The results of user changes to the sizes of FTBL, GTBL, ITBL, and XTBL are discussed in the <var class="product">Model&nbsp;204</var> Parameter and Command Reference.     </p>
<p>The results of user changes to the sizes of FTBL, GTBL, ITBL, and XTBL are discussed in the <var>UTABLE</var> command [[UTABLE command#Usage notes|Usage notes]]. </p>
   
   
===Calculating fixed table size===
===Calculating fixed table size===  
<p>
<p>Use the following formula to calculate fixed table size, the FIXSIZE parameter value:</p>
Use the following formula to calculate fixed table size, the <var>[[FIXSIZE parameter|FIXSIZE]]</var> parameter value:</p>
   
   
<p class="code">Fixed table size = 2520  
<p class="code">Fixed table size = 2520  
       + ((LAUDPROC + 9) * 4)dwr  
      + ((MAXINCL+6) * 80)dwr
       + ((LAUDPROC + 9) * (MAXINCL-1))dwr  
       + (LIBUFF + 4)  
       + (LIBUFF + 4)  
       + (LOBUFF + 5)dwr
       + (LOBUFF + 5)dwr
       + (LOUTPB)dwr
       + (LOUTPB)dwr
       + ((NGROUP + 12) * (NRMTFILE + NFILES + 1))  
       + (((NGROUP + 12) * (NRMTFILE + NFILES + 1)) + (NRMTFILE + 1))dwr
       + (((NORQS*3) + 2)dwr + (NRMTFILE + 1))dwr
       + ((NORQS*3) + 2)dwr  
       + (3 * (ERRMSGL - 80))
       + (3 * ERRMSGL)
</p>
</p>
<p>
<p>
Each term of this formula that is followed by dwr must be double word rounded to the next multiple of eight. For example, if the value of LOBUFF is 500, the term (LOBUFF + 5) = 505, which must be rounded to 512, the next  multiple of 8. </p>
Each term of this formula that is followed by <code>dwr</code> must be double word rounded to the next multiple of eight. For example, if the value of <var>LOBUFF</var> is 500, the term <code>(LOBUFF + 5)</code> equals 505, which must be rounded to 512, the next  multiple of 8. </p>
   
   
<p>If SYSOPT = 1 or 2 (indicating CCASYS or CCAGRP), add 1 to the value of NFILES used in the formula. If SYSOPT = 3 (indicating both CCASYS and CCAGRP), add 2.</p>
<p>If <var>SYSOPT</var> is 1 or 2 (indicating CCASYS or CCAGRP), add 1 to the value of <var>NFILES</var> used in the formula. If <var>SYSOPT</var> is 3 (indicating both CCASYS and CCAGRP), add 2.</p>
   
   
<p>If any SQL threads are specified in CCAIN (IODEVs 13, 17, or 19), add 6712 bytes for C language work areas.</p>
<p>If any SQL threads are specified in CCAIN (IODEVs 13, 17, or 19), add 6712 bytes for C language work areas.</p>
   
   
<p>The "Fixed server table values" table, below, shows the minimum, maximum, and default values for parameters that affect fixed server table sizing. The rightmost columns show the relevant  units of measure; for example, the maximum value of NORQS is 32767 entries (not bytes). The values of LIBUFF and LOBUFF may need to be increased for SQL processing. Recommended values are <code>LIBUFF=3000</code> and <code>LOBUFF=5000</code>.</p>
<p>The "Fixed server table values" table, below, shows the minimum, maximum, and default values for parameters that affect fixed server table sizing. The rightmost columns show the relevant  units of measure; for example, the maximum value of <var>NORQS</var> is 32767 entries (not bytes). The values of <var>LIBUFF</var> and <var>LOBUFF</var> may need to be increased for SQL processing. Recommended values are <code>LIBUFF=3000</code> and <code>LOBUFF=5000</code>.</p>
   
   
<table>
<table>
<caption>Fixed server table values</caption>
<caption>Fixed server table values</caption>
<tr class="head">
<tr class="head">
<th><p>Parameter</p>
<th><p>Parameter</p></th>
</th>
<th><p>Default</p></th>
<th><p>Default</p>
<th><p>Max </p></th>
</th>
<th><p>Bytes/entries</p></th>
<th><p>Max </p>
</th>
<th><p>Bytes/entries</p>
</th>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>ERRMSGL</p>
<p>ERRMSGL</p></td>
</td>
<td>
<td>
<p>80</p>
<p>80</p></td>
</td>
<td>
<td>
<p>256</p>
<p>256</p></td>
</td>
<td>
<td>
<p>Bytes</p>
<p>Bytes</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>LAUDPROC</p>
<p>LAUDPROC</p></td>
</td>
<td>
<td>
<p>21</p>
<p>21</p></td>
</td>
<td>
<td>
<p>253</p>
<p>253</p></td>
</td>
<td>
<td>
<p>Bytes</p>
<p>Bytes</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>LIBUFF</p>
<p>LIBUFF</p></td>
</td>
<td>
<td>
<p>255</p>
<p>255</p></td>
</td>
<td>
<td>
<p>32767</p>
<p>32767</p></td>
</td>
<td>
<td>
<p>Bytes</p>
<p>Bytes</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>LOBUFF</p>
<p>LOBUFF</p></td>
</td>
<td>
<td>
<p>256</p>
<p>256</p></td>
</td>
<td>
<td>
<p>32767</p>
<p>32767</p></td>
</td>
<td>
<td>
<p>Bytes</p>
<p>Bytes</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>LOUTPB</p>
<p>LOUTPB</p></td>
</td>
<td>
<td>
<p>0</p>
<p>0</p></td>
</td>
<td>
<td>
<p>3000</p>
<p>3000</p></td>
</td>
<td>
<td>
<p>Bytes</p>
<p>Bytes</p></td>
</td>
</tr>
</tr>
 
<tr>
<tr>
<td>
<td>
<p>NFILES</p>
<p>MAXINCL</p></td>
</td>
<td>
<td>
<p>2</p>
<p>5</p></td>
</td>
<td>
<td>
<p>16383</p>
<p>40</p></td>
</td>
<td>
<td>
<p>Entries</p>
<p>90+LAUDPROC bytes per INCLUDE level</p></td>
  </td>
</tr>
   
<tr>
<td>
<p>NFILES</p></td>
<td>
<p>2</p></td>
<td>
<p>16383</p></td>
<td>
<p>Entries</p></td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>NGROUP</p>
<p>NGROUP</p></td>
</td>
<td>
<td>
<p>5</p>
<p>5</p></td>
</td>
<td>
<td>
<p>16383</p>
<p>16383</p></td>
</td>
<td>
<td>
<p>Entries</p>
<p>Entries</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>NORQS</p>
<p>NORQS</p></td>
</td>
<td>
<td>
<p>5</p>
<p>5</p></td>
</td>
<td>
<td>
<p>32767</p>
<p>32767</p></td>
</td>
<td>
<td>
<p>Entries</p>
<p>Entries</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>NRMTFILE</p>
<p>NRMTFILE</p></td>
</td>
<td>
<td>
<p>0</p>
<p>0</p></td>
</td>
<td>
<td>
<p>16383</p>
<p>16383</p></td>
</td>
<td>
<td>
<p>Entries</p>
<p>Entries</p></td>
</td>
</tr>
</tr>
</table>
</table>
 
===Calculating variable table size===
===Calculating variable table size===
   
   
Line 2,003: Line 1,951:
<tr class="head">
<tr class="head">
<th>
<th>
<p>Parameter</p>
<p>Parameter</p></th>
</th>
<th>
<th>
<p>Default</p>
<p>Default</p></th>
</th>
<th>
<th>
<p>Max </p>
<p>Max </p></th>
</th>
<th>
<th>
<p>Bytes/entries/lines</p>
<p>Bytes/entries/lines</p></th>
</th>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>HTLEN</p>
<p>HTLEN</p></td>
</td>
<td>
<td>
<p>132</p>
<p>132</p></td>
</td>
<td>
<td>
<p>32767</p>
<p>32767</p></td>
</td>
<td>
<td>
<p>Bytes</p>
<p>Bytes</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>LFSCB</p>
<p>LFSCB</p></td>
</td>
<td>
<td>
<p>0</p>
<p>8 (as of V7.7) <br />
</td>
0 (7.6 or earlier) </p></td>
<td>
<td>
<p>65528</p>
<p>65528</p></td>
</td>
<td>
<td>
<p>Bytes</p>
<p>Bytes</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>LFTBL</p>
<p>LFTBL</p></td>
</td>
<td>
<td>
<p>1000</p>
<p>1000</p></td>
</td>
<td>
<td>
<p>30 million</p>
<p>30 million</p></td>
</td>
<td>
<td>
<p>Bytes</p>
<p>Bytes</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>LGTBL</p>
<p>LGTBL</p></td>
</td>
<td>
<td>
<p>288</p>
<p>288</p></td>
</td>
<td>
<td>
<p>2 billion</p>
<p>2 billion</p></td>
</td>
<td>
<td>
<p>Bytes</p>
<p>Bytes</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>LHEAP</p>
<p>LHEAP</p></td>
</td>
<td>
<td>
<p>0</p>
<p>0</p></td>
</td>
<td>
<td>
<p>2 million</p>
<p>2 million</p></td>
</td>
<td>
<td>
<p>Bytes</p>
<p>Bytes</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>LITBL</p>
<p>LITBL</p></td>
</td>
<td>
<td>
<p>0</p>
<p>8 (as of V7.7) <br />
</td>
0 (7.6 or earlier) </p></td>
<td>
<td>
<p>32760</p>
<p>32760</p></td>
</td>
<td>
<td>
<p>Bytes</p>
<p>Bytes</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>LNTBL</p>
<p>LNTBL</p></td>
</td>
<td>
<td>
<p>50</p>
<p>50</p></td>
</td>
<td>
<td>
<p>32760</p>
<p>32760</p></td>
</td>
<td>
<td>
<p>12-byte entries</p>
<p>12-byte entries</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>LPDLST</p>
<p>LPDLST</p></td>
</td>
<td>
<td>
<p>2600</p>
<p>2600</p></td>
</td>
<td>
<td>
<p>32760</p>
<p>32760</p></td>
</td>
<td>
<td>
<p>Bytes</p>
<p>Bytes</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>LQTBL</p>
<p>LQTBL</p></td>
</td>
<td>
<td>
<p>400</p>
<p>400</p></td>
</td>
<td>
<td>
<p>262,143</p>
<p>262,143</p></td>
</td>
<td>
<td>
<p>16-byte entries</p>
<p>16-byte entries</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>LSTBL</p>
<p>LSTBL</p></td>
</td>
<td>
<td>
<p>600</p>
<p>600</p></td>
</td>
<td>
<td>
<p>16M</p>
<p>16M</p></td>
</td>
<td>
<td>
<p>Bytes</p>
<p>Bytes</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>LTTBL</p>
<p>LTTBL</p></td>
</td>
<td>
<td>
<p>50</p>
<p>50</p></td>
</td>
<td>
<td>
<p>8190</p>
<p>8190</p></td>
</td>
<td>
<td>
<p>4-byte entries</p>
<p>4-byte entries</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>LVTBL</p>
<p>LVTBL</p></td>
</td>
<td>
<td>
<p>50</p>
<p>50</p></td>
</td>
<td>
<td>
<p>524287</p>
<p>524287</p></td>
</td>
<td>
<td>
<p>32-byte entries</p>
<p>32-byte entries</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>LXTBL</p>
<p>LXTBL</p></td>
</td>
<td>
<td>
<p>1000</p>
<p>1000</p></td>
</td>
<td>
<td>
<p>32760</p>
<p>32760</p></td>
</td>
<td>
<td>
<p>Bytes</p>
<p>Bytes</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>MAXHDR</p>
<p>MAXHDR</p></td>
</td>
<td>
<td>
<p>5</p>
<p>5</p></td>
</td>
<td>
<td>
<p>32767</p>
<p>32767</p></td>
</td>
<td>
<td>
<p>Lines</p>
<p>Lines</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>MAXTRL</p>
<p>MAXTRL</p></td>
</td>
<td>
<td>
<p>5</p>
<p>5</p></td>
</td>
<td>
<td>
<p>32767</p>
<p>32767</p></td>
</td>
<td>
<td>
<p>Lines</p>
<p>Lines</p></td>
</td>
</tr>
</tr>
</table>
</table>
 
==Server tables==
==Server tables==
<p>
<p>
Line 2,314: Line 2,200:
   
   
===Full-screen buffer table (FSCB)===
===Full-screen buffer table (FSCB)===
<p>
<p>The full-screen buffer table (FSCB) stores menu, screen, and image definitions, in addition to the values of screen variables and image data blocks. FSCB space is reused by each logical menu definition, logical  screen definition, or block definition.</p>
The full-screen buffer table (FSCB) stores menu, screen, and image definitions, in addition to the values of screen variables and image data blocks. FSCB space is reused by each logical menu definition, logical  screen definition, or block definition.</p>
   
   
<p>The FSCB must be large enough to hold the largest screen, image, or menu definition. The following space is required:</p>
<p>The FSCB must be large enough to hold the largest screen, image, or menu definition. The following space is required:</p>
   
   
<ul>
<ul>
<li> 144 bytes of fixed overhead for every menu, including the menu title</li>
<li>144 bytes of fixed overhead for every menu, including the menu title</li>
   
   
<li> 144 bytes for each menu prompt</li>
<li>144 bytes for each menu prompt</li>
   
   
<li> 432 bytes of fixed overhead for the first panel of every screen:</li>
<li>432 bytes of fixed overhead for the first panel of every screen:</li>
   
   
<li> 144 bytes for each subsequent panel, including the screen title</li>
<li>144 bytes for each subsequent panel, including the screen title</li>
   
   
<li> 32 bytes for each screen prompt and input item</li>
<li>32 bytes for each screen prompt and input item</li>
   
   
<li> 32 bytes for every screen line containing at least one input item</li>
<li>32 bytes for every screen line containing at least one input item</li>
   
   
<li> 80 bytes for each defined screen line, including skipped lines</li>
<li>80 bytes for each defined screen line, including skipped lines</li>
   
   
<li> Additional space for automatic validation, including:</li>
<li>Additional space for automatic validation, including:</li>
   
   
<li> 2 or 4 bytes for each automatic validation option</li>
<li>2 or 4 bytes for each automatic validation option</li>
   
   
<li> 256 bytes for the VERIFY command when a particular character set is used in a compiled screen for the first time
<li>256 bytes for the VERIFY command when a particular character set is used in a compiled screen for the first time</li>
</li>
</ul>
</ul>
   
   
Line 2,345: Line 2,230:
   
   
<ul>
<ul>
<li> 8 bytes for each number in a NUMERIC RANGE statement (16 bytes for each range pair)</li>
<li>8 bytes for each number in a NUMERIC RANGE statement (16 bytes for each range pair)</li>
   
   
<li> Space for every block used in image definition
<li>Space for every block used in image definition</li>
</li>
</ul>
</ul>
   
   
Line 2,354: Line 2,238:
   
   
===File group table (FTBL)===
===File group table (FTBL)===
<p>
<p>Data structures particular to file groups are stored in FTBL. FTBL entries are:</p>
Data structures particular to file groups are stored in FTBL. FTBL entries are:</p>
   
   
<ul>
<ul>
Line 2,370: Line 2,254:
   
   
<ul>
<ul>
<li> Host Language threads use FTBL under the same circumstances as SOUL.</li>
<li>Host Language threads use FTBL under the same circumstances as SOUL.</li>
   
   
<li> Field entries are not deleted until the group is closed or until IFFNSH is called. </li>
<li>Field entries are not deleted until the group is closed or until IFFNSH is called. </li>
   
   
<li> Increase the total FTBL requirement by NGROUP times four bytes.
<li>Increase the total FTBL requirement by NGROUP times four bytes.
</li>
</li>
</ul>
</ul>
Line 2,380: Line 2,264:
<p>For Parallel Query Option/204 server nodes, the required size of FTBL increases by eleven bytes times the total number of group members for temporary scattered groups opened at the  client and containing a member on the server node.</p>
<p>For Parallel Query Option/204 server nodes, the required size of FTBL increases by eleven bytes times the total number of group members for temporary scattered groups opened at the  client and containing a member on the server node.</p>
   
   
<p>For information on using FTBL in 64-bit storage, see [[Creating server data sets (CCASERVR)#FTBL and above the bar storage|FTBL and above the bar storage]].</p>
<p>For information on using FTBL in 64-bit storage, see [[#Using 64-bit addressing and Above the Bar (ATB) storage|Above the bar storage]].</p>
 
===Understanding the global variable table (GTBL)===
===Understanding the global variable table (GTBL)===
<p>
<p>
Line 2,387: Line 2,271:
   
   
<ul>
<ul>
<li> Global variables </li>
<li>Global variables </li>
   
   
<li> Global images, screens, and menus</li>
<li>Global images, screens, and menus</li>
</ul>
</ul>
   
   
Line 2,395: Line 2,279:
   
   
<p>In addition, a 32-byte trailer stores information about offsets. </p>
<p>In addition, a 32-byte trailer stores information about offsets. </p>
<p>For information on using GTBL in 64-bit storage, see [[#Using_64-bit addressing and Above the Bar .28ATB.29 storage|Above the bar storage]].</p>
   
   
====Clearing GTBL entries====
====Clearing GTBL entries====
<p>
The <var>CLEARGO</var> command deletes all images, screens, and menus. You can also use the <var>CLEAR GLOBALS</var> statement to delete selected types of GTBL entries. For details, see [[Global features]].</p>
   
   
<p>The <var>CLEARGO</var> command deletes all images, screens, and menus. You can also use the <var>CLEAR GLOBALS</var> statement to delete selected types of GTBL entries. For details, see [[Global features]].</p>
====Space allocation====  
<p>
====Space allocation====
The space allocation for a global variable includes:</p>
<p>The space allocation for a global variable includes:</p>
   
   
<ul>
<ul>
<li> 4 bytes indicating the length of GTBL</li>
<li>4 bytes indicating the length of GTBL</li>
   
   
<li> 1 byte for the length of the variable name</li>
<li>1 byte for the length of the variable name</li>
   
   
<li> Variable name</li>
<li>Variable name</li>
   
   
<li> 1 byte for the length of the current name</li>
<li>1 byte for the length of the current name</li>
   
   
<li> Current value  </li>
<li>Current value  </li>
</ul>
</ul>
   
   
Line 2,425: Line 2,311:
The minimum length of GTBL is 40 bytes (X'28').</p>
The minimum length of GTBL is 40 bytes (X'28').</p>
   
   
====Improving global variable processing====
====Improving global variable processing====  
<p>
<p>
You can improve global variable processing by setting the <var>[[FASTGLOB parameter|FASTGLOB]]</var>, <var>[[GLBLPCT parameter|GLBLPCT]]</var>, and <var>[[GTBLHASH parameter|GTBLHASH]]</var> parameters. See [[Global features]] for a discussion of how these parameters affect performance. </p>
You can improve global variable processing by setting the <var>[[FASTGLOB parameter|FASTGLOB]]</var>, <var>[[GTBLPCT parameter|GTBLPCT]]</var>, and <var>[[GTBLHASH parameter|GTBLHASH]]</var> parameters. See [[Global features]] for a discussion of how these parameters affect performance. </p>
 
===Dummy string and $READ table (ITBL)===
===Dummy string and $READ table (ITBL)===
<p>
<p>ITBL holds dummy string and $READ responses that are entered as arguments to an INCLUDE statement or command.</p>
ITBL holds dummy string and $READ responses that are entered as arguments to an INCLUDE statement or command.</p>
   
   
<p>The space allocation for an ITBL entry includes:</p>
<p>The space allocation for an ITBL entry includes:</p>
   
   
<ul>
<ul>
<li> Argument strings, including delimiters, which are saved as they are entered</li>
<li>Argument strings, including delimiters, which are saved as they are entered</li>
   
   
<li> 4 bytes of overhead for each saved string
<li>4 bytes of overhead for each saved string</li>
</li>
</ul>
</ul>
   
   
Line 2,446: Line 2,330:
   
   
===Labels, names, and variables table (NTBL)===
===Labels, names, and variables table (NTBL)===
<p>
<p>NTBL holds labels, names, and variables. Each entry is allocated 12 bytes. NTBL has two entries for each first occurrence of a COMMON declaration.</p>
NTBL holds labels, names, and variables. Each entry is allocated 12 bytes. NTBL has two entries for each first occurrence of a COMMON declaration.</p>
   
   
<p>NTBL has one entry for each of the following elements: </p>
<p>NTBL has one entry for each of the following elements: </p>
   
   
<ul>
<ul>
<li> Statement label</li>
<li>Statement label</li>
   
   
<li> List name</li>
<li>List name</li>
   
   
<li> %variable</li>
<li>%variable</li>
   
   
<li> Image, menu, and screen variable</li>
<li>Image, menu, and screen variable</li>
   
   
<li> Partner process opened by a request</li>
<li>Partner process opened by a request</li>
   
   
<li> Additional COMMON declaration</li>
<li>Additional <var>COMMON</var> declaration</li>
   
   
<li> Unlabeled FIND</li>
<li>Unlabeled <var>Find</var></li>
   
   
<li> FOR EACH VALUE statement</li>
<li><var>For Each Value</var> statement</li>
   
   
<li> FOR statement with the IN ORDER clause</li>
<li><var>For</var> statement with the <var>In Order</var> clause</li>
   
   
<li> Sequential or VSAM file opened simultaneously</li>
<li>Sequential or VSAM file opened simultaneously</li>
</ul>
</ul>
   
   
<p>Most NTBL entries are preserved by the MORE command except for the unlabeled FIND and secondary FOR entries, which are deleted.</p>
<p>Most NTBL entries are preserved by the <var>MORE</var> command, except for the unlabeled <var>Find</var> and secondary <var>For</var> entries, which are deleted.</p>
   
   
<p>A host language thread requires NTBL entries for list names, compilation names, and variables. </p>
<p>A host language thread requires NTBL entries for list names, compilation names, and variables. </p>
   
   
<p>FLOD uses NTBL entries for tags and index registers. The size of NTBL determines the highest tag or index that can be specified. In this case, NTBL must be at least 12 bytes multiplied by the highest tag or  index size desired. </p>
<p><var>FLOD</var> uses NTBL entries for tags and index registers. The size of NTBL determines the highest tag or index that can be specified. In this case, NTBL must be at least 12 bytes multiplied by the highest tag or  index size desired. </p>
<p>You need not allow extra space for runtime NTBL storage used during request evaluation of an OPEN DATASET, OPEN EXTERNAL, or OPEN TERMINAL statement. Use the compiler high-water mark to set  LNTBL. </p>
   
   
<p>You need not allow extra space for runtime NTBL storage used during request evaluation of an <var>Open Dataset</var>, <var>Open External</var>, or <var>Open Terminal</var> statement. Use the compiler highwater mark to set  LNTBL. </p>
<p>For information on using NTBL in 64-bit storage, see [[#Using 64-bit addressing and Above the Bar .28ATB.29 storage|Above the bar storage]].</p>
===Internal statement table (QTBL)===
===Internal statement table (QTBL)===
   
   
<p>QTBL holds internal <var class="product">Model&nbsp;204</var> instructions that result from compilation of each internal statement. After compilation, the entries in QTBL drive the evaluator. QTBL is emptied by END and END MORE statements.</p>
<p>QTBL holds internal <var class="product">Model&nbsp;204</var> instructions that result from compilation of each internal statement. After compilation, the entries in QTBL drive the evaluator. QTBL is emptied by <var>End</var> and <var>End More</var> statements.</p>
   
   
<p>The Editor formats all of QTBL into 16-byte entries, which provide a map of text being edited. The number of entries used depends on the number and position of insertions and deletions, not on the amount of text.</p>
<p>The Editor formats all of QTBL into 16-byte entries, which provide a map of text being edited. The number of entries used depends on the number and position of insertions and deletions, not on the amount of text.</p>
Line 2,489: Line 2,375:
<p>Quadruple (QTBL) entries generated by SOUL statements vary in number and size. The "Sample QTBL entries" table, below, shows typical values for each entry. For more QTBL information, see [[Large request considerations#QTBL (internal statement table)|QTBL (internal statement table)]]. </p>
<p>Quadruple (QTBL) entries generated by SOUL statements vary in number and size. The "Sample QTBL entries" table, below, shows typical values for each entry. For more QTBL information, see [[Large request considerations#QTBL (internal statement table)|QTBL (internal statement table)]]. </p>
   
   
<p>You can reduce server I/O by allowing users executing shared precompiled procedures to use a shared copy of QTBL. </p>
<p>You can reduce server I/O by allowing users executing shared precompiled procedures to use a shared copy of QTBL.</p>
 
===QTBL and IFAM processing===
<p>For information on using QTBL in 64-bit storage, see [[#Using 64-bit addressing and Above the Bar .28ATB.29 storage|Above the bar storage]].</p>
 
<p>When using the Inverted File Access Method (IFAM):</p>
===QTBL and IFAM processing===  
<p>
When using the Inverted File Access Method (IFAM):</p>
   
   
<ul>
<ul>
<li> IFFIND, IFCOUNT, and list manipulations build quadruples so that the SOUL evaluator routines can be used.</li>
<li><var>IFFIND</var>, <var>IFCOUNT</var>, and list manipulations build quadruples so that the SOUL evaluator routines can be used.</li>
   
   
<li> IFGET, IFMORE, and IFPUT build field name lists in QTBL.</li>
<li><var>IFGET</var>, <var>IFMORE</var>, and <var>IFPUT</var> build field name lists in QTBL.</li>
   
   
<li> Other calls are evaluated directly.
<li>Other calls are evaluated directly.</li>
</li>
</ul>
</ul>
<p>
<p>IFAM's use of QTBL and the effect of the compiled IFAM feature are discussed in detail in the <var class="book">Rocket Model&nbsp;204 Host Language Interface Reference Manual</var>. </p>
IFAM's use of QTBL and the effect of the compiled IFAM feature are discussed in detail in [[HLI: Model 204 tables#Internal statements.2Fquad table .28QTBL.29|Internal statements/quad table (QTBL)]] and [[HLI: IFSTRT processing#Using the compiled IFAM facility|Using the compiled IFAM facility]]. </p>
 
===QTBL and FLOD processing===
===QTBL and FLOD processing===
<p>
<p>
Line 2,526: Line 2,413:
<tr class="head">
<tr class="head">
<th>
<th>
<p>SOUL statement</p>
<p>SOUL statement</p></th>
</th>
<th>
<th>
<p>QTBL entry size</p>
<p>QTBL entry size</p></th>
</th>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>$functions</p>
<p>$functions</p></td>
</td>
<td>
<td>
<p>16 + 3 per argument</p>
<p>16 + 3 per argument</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>%variable, subscripted (reference to)</p>
<p>%variable, subscripted (reference to)</p></td>
</td>
<td>
<td>
<p>16 + expression evaluation</p>
<p>16 + expression evaluation</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>ADD</p>
<p>ADD</p></td>
</td>
<td>
<td>
<p>20</p>
<p>20</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>AFTER</p>
<p>AFTER</p></td>
</td>
<td>
<td>
<p>20</p>
<p>20</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>AND (except where AND is part of BETWEEN)</p>
<p>AND (except where AND is part of BETWEEN)</p></td>
</td>
<td>
<td>
<p>16</p>
<p>16</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>Conversion between a string and a number</p>
<p>Conversion between a string and a number</p></td>
</td>
<td>
<td>
<p>16</p>
<p>16</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>CALL</p>
<p>CALL</p></td>
</td>
<td>
<td>
<p>16</p>
<p>16</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>CHANGE</p>
<p>CHANGE</p></td>
</td>
<td>
<td>
<p>44</p>
<p>44</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>CLEAR LIST</p>
<p>CLEAR LIST</p></td>
</td>
<td>
<td>
<p>20</p>
<p>20</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>CLEAR ON</p>
<p>CLEAR ON</p></td>
</td>
<td>
<td>
<p>16</p>
<p>16</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>CLEAR TAG</p>
<p>CLEAR TAG</p></td>
</td>
<td>
<td>
<p>16</p>
<p>16</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>CLOSE</p>
<p>CLOSE</p></td>
</td>
<td>
<td>
<p>16</p>
<p>16</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>CLOSE PROCESS</p>
<p>CLOSE PROCESS</p></td>
</td>
<td>
<td>
<p>16</p>
<p>16</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>COMMIT</p>
<p>COMMIT</p></td>
</td>
<td>
<td>
<p>4</p>
<p>4</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>COMMIT RELEASE</p>
<p>COMMIT RELEASE</p></td>
</td>
<td>
<td>
<p>20</p>
<p>20</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>COUNT RECORDS (with a group)</p>
<p>COUNT RECORDS (with a group)</p></td>
</td>
<td>
<td>
<p>52 + 20</p>
<p>52 + 20</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>DELETE</p>
<p>DELETE</p></td>
</td>
<td>
<td>
<p>24</p>
<p>24</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>DELETE RECORD</p>
<p>DELETE RECORD</p></td>
</td>
<td>
<td>
<p>16</p>
<p>16</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>ELSE</p>
<p>ELSE</p></td>
</td>
<td>
<td>
<p>16 + body of the clause</p>
<p>16 + body of the clause</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>ELSEIF</p>
<p>ELSEIF</p></td>
</td>
<td>
<td>
<p>16 + body of the clause END</p>
<p>16 + body of the clause END</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>END</p>
<p>END</p></td>
</td>
<td>
<td>
<p>4</p>
<p>4</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>Function call</p>
<p>Function call</p></td>
</td>
<td>
<td>
<p>16 + argument evaluation</p>
<p>16 + argument evaluation</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>FIND (with at least one direct condition)</p>
<p>FIND (with at least one direct condition)</p></td>
</td>
<td>
<td>
<p>64 + 16</p>
<p>64 + 16</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>FIND (with inverted condition)</p>
<p>FIND (with inverted condition)</p></td>
</td>
<td>
<td>
<p>64 + 36</p>
<p>64 + 36</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>FIND ALL RECORDS (no qualification)</p>
<p>FIND ALL RECORDS (no qualification)</p></td>
</td>
<td>
<td>
<p>64</p>
<p>64</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>FIND ALL RECORDS (with record
<p>FIND ALL RECORDS (with record security and group)</p></td>
  security and group)</p>
</td>
<td>
<td>
<p>64 + 52 + 20</p>
<p>64 + 52 + 20</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>FIND ALL RECORDS (with record
<p>FIND ALL RECORDS (with record security)</p></td>
  security)</p>
</td>
<td>
<td>
<p>64 + 52</p>
<p>64 + 52</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>FIND ALL VALUES (FRV field)</p>
<p>FIND ALL VALUES (FRV field)</p></td>
</td>
<td>
<td>
<p>74</p>
<p>74</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>FIND ALL VALUES (ORDERED field)</p>
<p>FIND ALL VALUES (ORDERED field)</p></td>
</td>
<td>
<td>
<p>32</p>
<p>32</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>FOR EACH RECORD</p>
<p>FOR EACH RECORD</p></td>
</td>
<td>
<td>
<p>24 + body of the loop</p>
<p>24 + body of the loop</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>FOR EACH VALUE OF (with IN ORDER, a group)</p>
<p>FOR EACH VALUE OF (with IN ORDER, a group)</p></td>
</td>
<td>
<td>
<p>88 + body of the loop + 68 + 24</p>
<p>88 + body of the loop + 68 + 24</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>GREATER THAN</p>
<p>GREATER THAN</p></td>
</td>
<td>
<td>
<p>20</p>
<p>20</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>IDENTIFY</p>
<p>IDENTIFY</p></td>
</td>
<td>
<td>
<p>16</p>
<p>16</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>IF</p>
<p>IF</p></td>
</td>
<td>
<td>
<p>32</p>
<p>32</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>IF (with operator)</p>
<p>IF (with operator)</p></td>
</td>
<td>
<td>
<p>32 + 16</p>
<p>32 + 16</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>Index loop</p>
<p>Index loop</p></td>
</td>
<td>
<td>
<p>40 + expression evaluation + body of the loop</p>
<p>40 + expression evaluation + body of the loop</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>IN RANGE FROM and TO, BETWEEN</p>
<p>IN RANGE FROM and TO, BETWEEN</p></td>
</td>
<td>
<td>
<p>28</p>
<p>28</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>INSERT</p>
<p>INSERT</p></td>
</td>
<td>
<td>
<p>24</p>
<p>24</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>MODIFY</p>
<p>MODIFY</p></td>
</td>
<td>
<td>
<p>16</p>
<p>16</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>NOTE</p>
<p>NOTE</p></td>
</td>
<td>
<td>
<p>20</p>
<p>20</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>ON</p>
<p>ON</p></td>
</td>
<td>
<td>
<p>16 + included statements</p>
<p>16 + included statements</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>OPEN</p>
<p>OPEN</p></td>
</td>
<td>
<td>
<p>20</p>
<p>20</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>OPEN PROCESS</p>
<p>OPEN PROCESS</p></td>
</td>
<td>
<td>
<p>20</p>
<p>20</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>OR</p>
<p>OR</p></td>
</td>
<td>
<td>
<p>16</p>
<p>16</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>PAUSE</p>
<p>PAUSE</p></td>
</td>
<td>
<td>
<p>16</p>
<p>16</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>POSITION</p>
<p>POSITION</p></td>
</td>
<td>
<td>
<p>20</p>
<p>20</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>PREPARE IMAGE</p>
<p>PREPARE IMAGE</p></td>
</td>
<td>
<td>
<p>8</p>
<p>8</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>PREPARE MENU</p>
<p>PREPARE MENU</p></td>
</td>
<td>
<td>
<p>8</p>
<p>8</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>PREPARE SCREEN</p>
<p>PREPARE SCREEN</p></td>
</td>
<td>
<td>
<p>8</p>
<p>8</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>PRINT</p>
<p>PRINT</p></td>
</td>
<td>
<td>
<p>16 for each term</p>
<p>16 for each term</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>PRINT (a field)</p>
<p>PRINT (a field)</p></td>
</td>
<td>
<td>
<p>16 + 20</p>
<p>16 + 20</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>PRINT MENU</p>
<p>PRINT MENU</p></td>
</td>
<td>
<td>
<p>16</p>
<p>16</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>PRINT SCREEN</p>
<p>PRINT SCREEN</p></td>
</td>
<td>
<td>
<p>16</p>
<p>16</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>READ IMAGE</p>
<p>READ IMAGE</p></td>
</td>
<td>
<td>
<p>16</p>
<p>16</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>READ MENU</p>
<p>READ MENU</p></td>
</td>
<td>
<td>
<p>20</p>
<p>20</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>READ SCREEN</p>
<p>READ SCREEN</p></td>
</td>
<td>
<td>
<p>20</p>
<p>20</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>RECEIVE</p>
<p>RECEIVE</p></td>
</td>
<td>
<td>
<p>16</p>
<p>16</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>RELEASE RECORD</p>
<p>RELEASE RECORD</p></td>
</td>
<td>
<td>
<p>20</p>
<p>20</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>RELEASE POSITION</p>
<p>RELEASE POSITION</p></td>
</td>
<td>
<td>
<p>8</p>
<p>8</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>REPEAT</p>
<p>REPEAT</p></td>
</td>
<td>
<td>
<p>16 + evaluation of WHILE clause</p>
<p>16 + evaluation of WHILE clause</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>REREAD SCREEN</p>
<p>REREAD SCREEN</p></td>
</td>
<td>
<td>
<p>20</p>
<p>20</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>RETRY</p>
<p>RETRY</p></td>
</td>
<td>
<td>
<p>16</p>
<p>16</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>RETURN</p>
<p>RETURN</p></td>
</td>
<td>
<td>
<p>16</p>
<p>16</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>SEND</p>
<p>SEND</p></td>
</td>
<td>
<td>
<p>16</p>
<p>16</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>SIGNAL PROCESS</p>
<p>SIGNAL PROCESS</p></td>
</td>
<td>
<td>
<p>12</p>
<p>12</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>STOP (automatically generated)</p>
<p>STOP (automatically generated)</p></td>
</td>
<td>
<td>
<p>16</p>
<p>16</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>STORE RECORD (with each field)</p>
<p>STORE RECORD (with each field)</p></td>
</td>
<td>
<td>
<p>16 + 16</p>
<p>16 + 16</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>TAB</p>
<p>TAB</p></td>
</td>
<td>
<td>
<p>4</p>
<p>4</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>TAG</p>
<p>TAG</p></td>
</td>
<td>
<td>
<p>16</p>
<p>16</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>THEN</p>
<p>THEN</p></td>
</td>
<td>
<td>
<p>16 + body of the clause</p>
<p>16 + body of the clause</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>TRANSFER</p>
<p>TRANSFER</p></td>
</td>
<td>
<td>
<p>16</p>
<p>16</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>WITH</p>
<p>WITH</p></td>
</td>
<td>
<td>
<p>0</p>
<p>0</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>WRITE IMAGE</p>
<p>WRITE IMAGE</p></td>
</td>
<td>
<td>
<p>12</p>
<p>12</p></td>
</td>
</tr>
</tr>
</table>
</table>
   
   
==User, field, group security table (RTBL)==
==User, field, group security table (RTBL)==
<p>
<p>
RTBL contains a user's privileges, class, field-level security (FLS) levels for each open file, and classes for open, permanent groups.</p>
RTBL contains a user's privileges, class, field-level security (FLS) levels for each open file, and classes for open, permanent groups.</p>
Line 3,200: Line 2,936:
<p>The size of RTBL is calculated from the formula:</p>
<p>The size of RTBL is calculated from the formula:</p>
   
   
<p class="code">((NGROUPS + 11) * (NFILES + 1)) + NRMTFILE + 1
<p class="code">(((NGROUPS + 11) * (NFILES + 1)) + (NRMTFILE + 1))dwr
</p>
</p>
<p>
<p>
For Parallel Query Option/204 client nodes, the required size of RTBL increases by (NRMTFILE=1) bytes.</p>
For Parallel Query Option/204 client nodes, the required size of RTBL increases by <code>(NRMTFILE=1)</code> bytes.</p>
   
   
===Character string table (STBL)===
===Character string table (STBL)===
Line 3,212: Line 2,948:
<li> Space used to store intermediate results during an arithmetic expression evaluation is freed when the evaluation is completed.</li>
<li> Space used to store intermediate results during an arithmetic expression evaluation is freed when the evaluation is completed.</li>
   
   
<li> Space used by <var>FOR EACH OCCURRENCE</var>, <var>FOR EACH RECORD</var>, and <var>FOR EACH VALUE</var> loops is reused until the end of the loop.</li>
<li>Space used by <var>FOR EACH OCCURRENCE</var>, <var>FOR EACH RECORD</var>, and <var>FOR EACH VALUE</var> loops is reused until the end of the loop.</li>
   
   
<li> The last value of a <var>Note</var> statement remains in STBL.</li>
<li>The last value of a <var>Note</var> statement remains in STBL.</li>
   
   
<li> <var>FIXED</var> or <var>FLOAT</var> %variable array uses eight bytes for each element.  
<li><var>FIXED</var> or <var>FLOAT</var> %variable array uses eight bytes for each element. </li>
</li>
</ul>
</ul>
   
   
Line 3,223: Line 2,958:
   
   
<ul>
<ul>
<li> The FIELD SAVE option requires 10 bytes plus the maximum length of the string plus one byte for each element.</li>
<li>The FIELD SAVE option requires 10 bytes plus the maximum length of the string plus one byte for each element.</li>
</ul>
</ul>
   
   
Line 3,229: Line 2,964:
   
   
<ul>
<ul>
<li> MORE releases all but the space required by %variables and arrays. </li>
<li>MORE releases all but the space required by %variables and arrays. </li>
   
   
<li> If a user is using the pattern matcher in an IF statement with an IMAGE or SCREEN ITEM as the pattern and an IMAGE or SCREEN ITEM as the comparison string, then the value of the pattern is stored in STBL. The space is  freed after each comparison, so the maximum increase is equal to the size of the largest pattern in a request that meets the above criteria.</li>
<li>If a user is using the pattern matcher in an IF statement with an IMAGE or SCREEN ITEM as the pattern and an IMAGE or SCREEN ITEM as the comparison string, then the value of the pattern is stored in STBL. The space is  freed after each comparison, so the maximum increase is equal to the size of the largest pattern in a request that meets the above criteria.</li>
</ul>
</ul>
   
   
====When the Inverted File Access Method (IFAM) is used====  
====When the Inverted File Access Method (IFAM) is used====  
<ul>
<ul>
<li> IFDVAL and IFFILE store the value string from the input parameter in STBL. </li>
<li><var>IFDVAL</var> and <var>IFFILE</var> store the value string from the input parameter in STBL. </li>
   
   
<li> Strings enclosed in quotation marks or values specified for <var>IFFIND</var> that are stored in STBL are the same types as those stored in STBL by SOUL.</li>
<li>Strings enclosed in quotation marks or values specified for <var>IFFIND</var> that are stored in STBL are the same types as those stored in STBL by SOUL.</li>
   
   
<li> EDIT form of <var>IFPUT</var> uses STBL for each value. Space from previous values is reused. </li>
<li>EDIT form of <var>IFPUT</var> uses STBL for each value. Space from previous values is reused. </li>
   
   
<li> <var>FLOD</var> stores translation table values and <var>CASE</var> statement comparison values in STBL.  
<li><var>FLOD</var> stores translation table values and <var>CASE</var> statement comparison values in STBL.  
</li>
</li>
</ul>
</ul>
   
   
====Parallel Query Option/204 STBL requirements====
====Parallel Query Option/204 STBL requirements====
<p>
<p>STBL requires an increase for Parallel Query Option/204 $functions used in remote file or scattered context and for SOUL pattern matching processes</p>
STBL requires an increase for Parallel Query Option/204 $functions used in remote file or scattered context and for SOUL pattern matching processes</p>
   
   
<ul>
<ul>
<li> Using one of the following $functions in remote context requires 12 additional bytes in STBL:
<li>Using one of the following $functions in remote context requires 12 additional bytes in STBL:
   
   
<p><var>$Curfile</var></p>
<p><var>$Curfile</var></p>
Line 3,261: Line 2,996:
<p><var>$UpdFile</var></p></li>
<p><var>$UpdFile</var></p></li>


<li> If you are using the pattern matcher in any SOUL statement, the full size of the pattern is used and stored in STBL. The space is freed after each statement block using the pattern  matcher, for example, <var>FIND</var> or <var>FOR</var>.</li>
<li>If you are using the pattern matcher in any SOUL statement, the full size of the pattern is used and stored in STBL. The space is freed after each statement block using the pattern  matcher, for example, <var>FIND</var> or <var>FOR</var>.</li>
</ul>
</ul>
   
   
===Temporary work page list table (TTBL)===
===Temporary work page list table (TTBL)===  
<p>
<p>TTBL entries keep track of scratch file (CCATEMP) pages. The entries are four bytes each and used by the Editor and <var>FIND</var> (or <var>IFFIND</var>) evaluator routines.</p>
TTBL entries keep track of scratch file (CCATEMP) pages. The entries are four bytes each and used by the Editor and <var>FIND</var> (or <var>IFFIND</var>) evaluator routines.</p>
   
   
<ul>
<ul>
<li> The Editor uses scratch pages to make a private copy of the procedure being edited.</li>
<li>The Editor uses scratch pages to make a private copy of the procedure being edited.</li>
   
   
<li> <var>FIND</var> uses scratch pages as work space for evaluating Boolean expressions.</li>
<li><var>FIND</var> uses scratch pages as work space for evaluating Boolean expressions.</li>
</ul>
</ul>
   
   
Line 3,289: Line 3,024:
<tr class="head">
<tr class="head">
<th>
<th>
<p>SOUL statement  </p>
<p>SOUL statement  </p></th>
</th>
<th>
<th>
<p>VTBL entry size (bytes)</p>
<p>VTBL entry size (bytes)</p></th>
</th>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>% variable:</p>
<p>% variable:</p></td>
</td>
<td>
<td>
<p>&nbsp;</p>
<p>&nbsp;</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>FIXED</p>
<p>FIXED</p></td>
</td>
<td>
<td>
<p>16</p>
<p>16</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>FLOAT</p>
<p>FLOAT</p></td>
</td>
<td>
<td>
<p>12</p>
<p>12</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>STRING</p>
<p>STRING</p></td>
</td>
<td>
<td>
<p>24</p>
<p>24</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>array</p>
<p>array</p></td>
</td>
<td>
<td>
<p>20</p>
<p>20</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>array element reference</p>
<p>array element reference</p></td>
</td>
<td>
<td>
<p>12</p>
<p>12</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>CALL</p>
<p>CALL</p></td>
</td>
<td>
<td>
<p>4 + (4 * arguments)</p>
<p>4 + (4 * arguments)</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>CALL statement evaluation</p>
<p>CALL statement evaluation</p></td>
</td>
<td>
<td>
<p>28</p>
<p>28</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>COUNT</p>
<p>COUNT</p></td>
</td>
<td>
<td>
<p>8</p>
<p>8</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>FIND (basic entry, single file)</p>
<p>FIND (basic entry, single file)</p></td>
</td>
<td>
<td>
<p>8</p>
<p>8</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>workspace</p>
<p>workspace</p></td>
</td>
<td>
<td>
<p>20 + 20 + 28</p>
<p>20 + 20 + 28</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>fieldname = value pair</p>
<p>fieldname = value pair</p></td>
</td>
<td>
<td>
<p>20 or more</p>
<p>20 or more</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>retrieval</p>
<p>retrieval</p></td>
</td>
<td>
<td>
<p>28</p>
<p>28</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>Ordered Index retrieval</p>
<p>Ordered Index retrieval</p></td>
</td>
<td>
<td>
<p>4 + 4 per segment</p>
<p>4 + 4 per segment</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>FIND (basic entry, group)</p>
<p>FIND (basic entry, group)</p></td>
</td>
<td>
<td>
<p>8 + (8 * files)</p>
<p>8 + (8 * files)</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>FOR EACH RECORD (no IN ORDER clause)</p>
<p>FOR EACH RECORD (no IN ORDER clause)</p></td>
</td>
<td>
<td>
<p>16</p>
<p>16</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>FOR EACH VALUE (with FROM, TO, LIKE, ORDERED</p>
<p>FOR EACH VALUE (with FROM, TO, LIKE, ORDERED</p></td>
</td>
<td>
<td>
<p>48</p>
<p>48</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>FOR EACH RECORD IN ORDER BY (with ORDERED field)</p>
<p>FOR EACH RECORD IN ORDER BY (with ORDERED field)</p></td>
</td>
<td>
<td>
<p>48</p>
<p>48</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>FOR EACH VALUE (with ORDERED field)</p>
<p>FOR EACH VALUE (with ORDERED field)</p></td>
</td>
<td>
<td>
<p>40</p>
<p>40</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>Function (SOUL)</p>
<p>Function (SOUL)</p></td>
</td>
<td>
<td>
<p>4 + (4 * arguments)</p>
<p>4 + (4 * arguments)</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>Lists:</p>
<p>Lists:</p></td>
</td>
<td>
<td>
<p>&nbsp;</p>
<p>&nbsp;</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>single files</p>
<p>single files</p></td>
</td>
<td>
<td>
<p>8</p>
<p>8</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>groups</p>
<p>groups</p></td>
</td>
<td>
<td>
<p>8 + (8 * files)</p>
<p>8 + (8 * files)</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>Menu definition</p>
<p>Menu definition</p></td>
</td>
<td>
<td>
<p>48</p>
<p>48</p>
Line 3,514: Line 3,200:
<tr>
<tr>
<td>
<td>
<p>Numeric expression</p>
<p>Numeric expression</p></td>
</td>
<td>
<td>
<p>16</p>
<p>16</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>ON</p>
<p>ON</p></td>
</td>
<td>
<td>
<p>28</p>
<p>28</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>Related image set</p>
<p>Related image set</p></td>
</td>
<td>
<td>
<p>12 + 4 for every 256 items</p>
<p>12 + 4 for every 256 items</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>Screen definition</p>
<p>Screen definition</p></td>
</td>
<td>
<td>
<p>68 + 4 for each panel</p>
<p>68 + 4 for each panel</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>Screen entry (one panel)</p>
<p>Screen entry (one panel)</p></td>
</td>
<td>
<td>
<p>72</p>
<p>72</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>SORT</p>
<p>SORT</p></td>
</td>
<td>
<td>
<p>&nbsp;</p>
<p>&nbsp;</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>each referenced field</p>
<p>each referenced field</p></td>
</td>
<td>
<td>
<p>20</p>
<p>20</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>each sort key</p>
<p>each sort key</p></td>
</td>
<td>
<td>
<p>32</p>
<p>32</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>String expression</p>
<p>String expression</p></td>
</td>
<td>
<td>
<p>8</p>
<p>8</p></td>
</td>
</tr>
</tr>
   
   
<tr>
<tr>
<td>
<td>
<p>Subroutine declaration</p>
<p>Subroutine declaration</p></td>
</td>
<td>
<td>
<p>16 + parameters   </p>
<p>16 + parameters </p></td>
</td>
</tr>
</tr>
</table>
</table>
Line 3,608: Line 3,274:
   
   
====IFAM and FLOD considerations====
====IFAM and FLOD considerations====
<p>
The following considerations apply to VTBL: </p>
   
   
<p>The following considerations apply to VTBL: </p>
<p>IFAM requires VTBL space for <var>IFFIND</var>, <var>IFCOUNT</var>, and lists (matching SOUL requirements), and a few extra bytes for temporary work space. </p>
<p>IFAM requires VTBL space for IFFIND, IFCOUNT, and lists (matching SOUL requirements), and a few extra bytes for temporary work space.   </p>
<p>FLOD needs a minimal amount of VTBL space if the L statement (locate loop) is used.  </p>
   
   
<p>FLOD needs a minimal amount of VTBL space if the L statement (locate loop) is used. </p>
====VTBL requirement for Application Subsystem users====  
====VTBL requirement for Application Subsystem users====  
<p>
<p>
The size of VTBL for Application Subsystem users loading saved compilations does not have to be as large as the compiling user's VTBL. As long as the loading user's VTBL size accommodates the request's VTBL requirement, the loading user can have a smaller VTBL than the compiling user. </p>
The size of VTBL for [[Application Subsystem development|Application Subsystem]] users loading saved compilations does not have to be as large as the compiling user's VTBL. As long as the loading user's VTBL size accommodates the request's VTBL requirement, the loading user can have a smaller VTBL than the compiling user. </p>
   
   
===Procedure security table (XTBL)===
===Procedure security table (XTBL)===
Line 3,623: Line 3,289:
XTBL contains procedure security information for each file and permanent group member that a user has open. The size of each file entry depends on the number of user-class/procedure-class mappings defined in the file for  the user's class.  </p>
XTBL contains procedure security information for each file and permanent group member that a user has open. The size of each file entry depends on the number of user-class/procedure-class mappings defined in the file for  the user's class.  </p>
   
   
[[Category:System Manager]]
[[Category:System management]]
[[Category:Model 204 operational issues]]

Latest revision as of 21:20, 25 March 2022

Overview

CCAIN is the Model 204 control file used to define the runtime and user environments, and to control system operations.

When all the CCAIN input stream is read, Model 204 automatically terminates.

The discussion of the CCAIN file is presented in these pages:

  • The page you are reading describes the structure of the CCAIN file and the parameters used to define the runtime environment. Topics directly relating to the runtime parameters such as resource locking, disk buffers, and server areas are included.
  • Defining the user environment (CCAIN) discusses setting up the user environment.
  • Controlling system operations (CCAIN) discusses the commands used to control system operations.

Special considerations relating to Model 204 configurations or operating systems follow each discussion whenever appropriate.

Structure of CCAIN

The CCAIN file is divided into three sections, as described here:

Runtime environment

The runtime environment specifications line, which is known as the User 0 parameter line, sets system characteristics and default user parameters during Model 204 initialization.

User 0, which acts as the system operator, is the name given to the input stream used by Model 204 initialization routines. The input stream is read from the CCAIN file and echoed on the CCAPRINT file. (For more information on CCAPRINT, see Obtaining User 0 output (CCAPRINT).)

The User 0 parameter line, which is described in this page, includes:

  • System table sizes
  • I/O buffer sizes
  • Scheduler and performance options
  • Recovery options

Pre-user 0 commands

Parameters on the User 0 line are specified on the first line of the CCAIN input stream unless certain commands are used. The following commands are the only ones that can precede the User 0 parameter line:

  • * (a comment) is also allowed, however, a blank must follow the *.
  • An all-blank line is also allowed.

In addition, starting with version 7.5, you can provide a common configuration for all Model 204 jobs by linking PRECCAIN into your ONLINE, IFAM1, and/or IFAM4 load modules. PRECCAIN, an assembler module which you modify and link into the load modules, contains Model 204 commands and parameters set and executed, respectively, during Model 204 initialization.

User environments and definitions

User environment definitions and specifications are set for each user on a separate line for:

  • Device type and terminal communication network
  • Compiler table defaults
  • Server configuration
  • Default output options

System control commands

System control commands are entered on successive lines. System commands include:

  • Recovery procedures
  • Suspension of User 0
  • Message control
  • Allocation and freeing of data sets
  • Definition of data sets and printers
  • End-of-data and end-of-job statements
  • SOUL requests
  • FLOD programs

ONLINE data streams with CCAIN

The following pages present z/OS, z/VSE, and z/VM examples for ONLINE data streams. The ONLINE examples illustrate the structure of CCAIN, including the runtime environment specifications line (User 0), user environment definitions and specifications, and system control commands.

A z/OS example for a BATCH204 run follows the ONLINE data streams.

Parameter lines

A CCAIN parameter line consists of one or more 80-column card images with parameter keywords and values in columns 1 through 71.

If the line exceeds 71 characters, any non-blank character in column 72 indicates continuation to the next card image.

The maximum length of the parameter area is controlled by the LIBUFF parameter, which is listed in the Common runtime parameters and Fixed server table values tables.

Model 204 accepts comment lines or blank lines after the User 0 parameters in the CCAIN input stream. IODEV lines can have comments and blank lines before, between and after them.

As shown in the following examples, these rules governing parameter lines apply in all operating environments.

z/OS JCL

The following example shows z/OS JCL for an ONLINE data stream containing the CCAIN file.

//M204ONLN JOB CLASS=A,MSGCLASS=A,NOTIFY=LEN //RUN EXEC PGM=ONLINE,REGION=4096K, // TIME=1440,PARM=('SYSOPT=149,LIBUFF=1024,LOBUFF=3000') //STEPLIB DD DSN=M204.RLSE.LOADLIB,DISP=SHR //CCAJRNL DD DSN=M204.JOURNAL,DISP=SHR //CHKPOINT DD DSN=M204.CHKPOINT,DISP=SHR //CCATEMP DD UNIT=3380,SPACE=(TRK,90), // DISP=(NEW,DELETE) //CCASNAP DD SYSOUT=A //SYSMDUMP DD SYSOUT=A //SYSUDUMP DD SYSOUT=A //CCAAUDIT DD SYSOUT=A //CCASTAT DD DSN=M204.CCASTAT,DISP=SHR //CCAGRP DD DSN=M204.CCAGRP,DISP=SHR //CLIENTS DD DSN=M204.FILE.CLIENTS,DISP=SHR //VEHICLES DD DSN=M204.FILE.VEHICLES,DISP=SHR //CLAIMS89 DD DSN=M204.FILE.CLAIMS89,DISP=SHR //CLAIMS90 DD DSN=M204.FILE.CLAIMS90,DISP=SHR //CCASERVR DD UNIT=3380,DISP=(NEW,DELETE), // SPACE=(CYL,5,,CONTIG) //CCAPRINT DD SYSOUT=A //CCAIN DD * X Runtime NUSERS=9,NSERVS=2,MINBUF=18,MAXBUF=1000, X environment TERMBUF=5,NFILES=4,NDCBS=4,NDIR=4,SPCORE=50000, X definitions IFAMBS=4000,LRETBL=800,VTAMNAME=M204,CRFSCHNL=M204FULL, X User0 CRIOCHNL=M204PROD,IFAMCHNL=IFAMPROD, X RCVOPT=9,CPMAX=1,CPTIME=30,CPTO=5,CPTQ=5, X LFSCB=7000,LGTBL=500,LSTBL=3000,LVTBL=200, X LOUTPB=3000,NBKPG=5,OUTCCC=80,SERVSIZE=72456 IODEV=7,NOTERM=3,POLLNO=1,SERVSIZE=72456 User environment IODEV=7,POLLNO=2 defining 8 users IODEV=7,POLLNO=3 device types, and IODEV=29,NOTERM=2,POLLNO=1 the communication IODEV=29,POLLNO=2 network IODEV=11,NOTERM=2,POLLNO=1 IODEV=11,POLLNO=2 IODEV=23 HALT 27,MODEL 204 IS UP AND RUNNING,3,EOD EOD *SLEEP 300 BROADCAST URGENT 1***SYSTEM GOES DOWN IN 5 MINUTES *SLEEP 300 HALT 24,WAIT FOR USERS TO LOGOUT,3,EOJ CHECKPOINT System operation BUMP ALL control commands *SLEEP 300 EOJ

z/VSE JCL

The following example shows z/VSE JCL for an ONLINE data stream containing the CCAIN File:

// JOB ONLINE // DLBL M204LIB,'M204.PROD.LIBRARY' // EXTENT SYSnnn,... // LIBDEF PHASE.SEARCH=(M204LIB.V210,PRD1.BASE) // DLBL CCAJRNL,'MODEL204.CCAJRNL' // EXTENT SYS001,balance of extent information // DLBL CHKPNT,'MODEL204.CHKPOINT' // EXTENT SYS001,balance of extent information // DLBL CCATEMP,'MODEL204.CCATEMP',,DA // EXTENT SYS001 // DLBL CCASRVR,'MODEL204.CCASERVR',,DA // EXTENT SYS001 // DLBL CCASRV0,'MODEL204.CCASERV0',,DA // EXTENT SYS001 // DLBL CCAGRP,'MODEL204.CCAGRP,,DA // EXTENT SYS001 // DLBL CCASYS,'MODEL204.CCASYS',,DA // EXTENT SYS001 // DLBL CCASTAT,'MODEL204.CCASTAT' // EXTENT SYS001,balance of extent information // ASSGN SYS001,X'cuu' // ASSGN SYS002,X'108' ---- Local 3270 terminal // ASSGN SYS003,X'019' ---- Local 3270 terminal // ASSGN SYS008,PRINTER ---- Audit trail *** INSERT LABEL INFORMATION AND ASSIGNMENTS *** FOR USER DATABASE FILES HERE // UPSI 10011011 // OPTION SYSPARM='LIB=512' // EXEC ONLINE,SIZE=AUTO NUSERS=6,MAXBUF=1000,LFSCB=4900, Runtime environment LOUTPB=2400,NDIR=10,NSERVS=2,SERVSIZE=95000, definition (User 0) RCVOPT=9 IODEV=35,INPUT=SYS002,SERVSIZE=95000 User environment IODEV=35,INPUT=SYS003 defining 5 users, IODEV=41,NOTERM=2,POLLNO=1 device types, and the IODEV=11,POLLNO=2 communication network IODEV=23,NOTERM=1,POLLNO=1 *** INSERT USER ZERO REQUESTS HERE HALT 22,MODEL 204 IS AVAILABLE,3,EOJ System operation CHECKPOINT EOJ control commands /* /&

CMS CCAIN file

PAGESIZE=6184,NUSERS=5,NSERVS=2, X NFILES=3,NDCBS=3,MINBUF=18,MAXBUF=1000, X RCVOPT=9,SERVSIZE=95000 IODEV=41,NOTERM=2,POLLNO=1 IODEV=41,POLLNO=2 IODEV=39,NOTERM=1,POLLNO=1 IODEV=43,NOTERM=1,POLLNO=1 HALT 19,MODEL 204 IS NOW UP,10,END OF DAY EOD HALT 24,WAIT FOR USERS TO LOGOUT,3,EOJ CHECKPOINT EOJ

z/VM ONLINE processing

A Model 204 ONLINE environment is created in a z/VM environment by:

  • Defining runtime parameters in the User 0 input file.
  • Executing the CMS ONLINE command, which causes an EXEC procedure to:
    • Execute a user-created EXEC procedure to define the file recovery environment
    • Invoke Model 204 to perform file recovery
    • Execute a user-created EXEC procedure to define the ONLINE environment
    • Invoke Model 204 to establish the ONLINE environment

Samples of the components necessary to invoke a Model 204 ONLINE environment follow.

EXEC procedure defining the ONLINE environment

&TRACE OFF &C FILEDEF * CLEAR &C LABELDEF * CLEAR &C FILEDEF CCAIN DISK DOCONLN CCAIN A &C FILEDEF CCAPRINT DISK DOCONLN CCAPRINT A &C FILEDEF CCAAUDIT J DSN M204 CCAAUDIT &C FILEDEF CCASNAP PRINTER &C FILEDEF CCAJRNL G DSN M204 CCAJRNL &C FILEDEF CHKPOINT G DSN M204 CHKPNT &C FILEDEF CCATEMP H DSN M204 CCATEMP &C FILEDEF CCASERVR I DSN M204 CCASRVR &C FILEDEF CCAGRP J DSN M204 CCAGRP &C FILEDEF CCASYS J DSN M204 CCASYS &C FILEDEF CCASTAT J DSN M204 CCASTAT &C FILEDEF CARS J DSN M204 CARS &STACK SYSOPT 146 LIBUF 1000

CMS ONLINE command

The ONLINE command brings up Model 204 in the service machine, allowing multiple users to log on.

Syntax

The format of the ONLINE command is:

ONLINE [TEST] [NODCSS] [IFDIAL] [exec1] [BYPASS] [exec2] [BYPASS] [execargs]

Where:

  • TEST specifies that a TEST version of the Model 204 ONLINE module or shared segment, such as T204, is to be invoked. The default is the production version M204.
  • NODCSS specifies that shared segments are not to be used, even though they exist.
  • IFDIAL specifies that a single user IFDIAL connection is to be made (saved segments mandatory). The IFDIAL connection must be made on the main (nonrecovery) step.

    A single-user IFDIAL EXEC procedure, SAMPDIAL, is supplied as part of the distributed material. Customize and install SAMPDIAL on an accessible minidisk. The M204 EXEC expects the IFDIAL EXEC to be named SINGDIAL.

    For more information, refer to the Rocket Model 204 Installation Guide for IBM z/VM, version 7.4.

  • exec1 specifies the name of the EXEC procedure that contains the ACCESS commands for the required minidisks and the file definition (FILEDEF or M204FDEF) commands for Model 204 recovery purposes. You must create the EXEC in accordance with the file requirements for the Model 204 ONLINE environment to be recovered.
  • BYPASS specifies not to use the EXEC procedure name in the ONLINE command and bypasses the recovery or Online steps, or both.
  • exec2 specifies the name of the EXEC procedure that contains the ACCESS commands for the required minidisks and the file definition (FILEDEF or M204FDEF) commands for Model 204 regular online production files. You must create the EXEC in accordance with the file requirements for the Model 204 online environment to be initiated.
  • execargs are any user arguments, which are passed directly to the EXECs (1 and 2).

Usage notes

The EXEC can also include the Dictionary and Access/204 file definitions, if they are installed.

The following considerations apply to CMS online command processing:

  • If no operands are specified on the ONLINE command, the default name of the restart EXEC procedure is M204REST.
  • The default name of the Online EXEC procedure is M204DEF.
  • If one operand is specified, it is assumed to be the name of the Online EXEC procedure.
  • EXEC procedures invoked by ONLINE provide the necessary Model 204 parameters.
  • Required options must be placed in the stack (the &STACK command) as keyword-value pairs, separated by blanks.
  • If IFDIAL is specified, the main (nonrecovery) EXEC must provide only one parameter, the user program name, in the stack. The program name must be placed in the CMS stack before returning to the ONLINE EXEC.

    The IFSETUP function (see the Rocket Model 204 Host Language Interface Reference Manual) is used to send the CCAIN parameters via the user program. Neither CCAIN nor CCAPRINT are used for IFDIAL connections.

  • A single-user Model 204 interactive Online environment uses an EXEC procedure, SAMPSING, which is supplied as part of the distributed material. An IODEV statement is not required. (See Server areas.)

    Customize and install SAMPSING and its companion, SAMPSING CCAIN, on a generally accessible CMS minidisk. Name the customized files SINGLUSR EXEC and SINGLUSR CCAIN to sustain compatibility with the standard distributed user interfaces.

Return codes are evaluated as follows:

  • A return code of zero from any one of the EXEC procedures invokes Model 204.
  • A return code of one (1) bypasses the invocation of Model 204.
  • Any other return code is considered an error and causes the ONLINE EXEC to terminate immediately.

Example

ONLINE BYPASS DOCONLN

The parameters used in the sample above:

  • Use the version of Model 204 with saved segments
  • Provide no recovery arguments
  • Execute a user-written EXEC (DOCONLN) that defines the ONLINE environment

CMS utilities and EXECs

The "CMS utilities" table explains how to use CMS utility command modules relating to Model 204 in the CMS environment. None of the commands can be issued within the Model 204 environment. For information about syntax, refer to CMS utility command modules.

CMS utilities

Utility

Purpose

Comments

M204APND

Concatenates file definitions.

A DDNAME of CLEAR removes all file definitions.

M204CMS

The interface between CMS and Model 204 that provides system services during execution of load modules, for example M204ONLN, M204IFM1, and M204UTILC.

 

M204FDEF

Creates file definitions for files on unaccessed variable format disks without accessing the resident disk.

An example defining the file CLI:

CP LINK MVS 201 201 MW WRITE M204FDEF CLI 201 DSN M204 CLI

M204LDEF

Specifies magnetic tape label information for tape volumes using the M204APND module.

Standard LABELDEF command parameters and options are used.

M204UTIL

Initializes, labels, allocates, erases, renames, and lists variable-format volumes.

Not recommended for space allocation on DOS or OS format disks owned by a guest operating system, because the catalog is not updated and does not work on indexed VTOCs. You can use IEFBR14 for space allocation and M204FDEF or a FILEDEF for access.

M204XFER

Transfers control to the version of the M204CMS module that executes in a saved segment (DCSS).

M204XFER can also load a second DCSS containing the Model 204 program invoked by M204CMS.

Using the M204UTIL utility

The M204UTIL utility uses RESERVE/RELEASE logic when updating the VTOC of a variable-format disk. You can use it to manipulate a volume being used by one or more Model 204 service virtual machines.

Note: Erasing data sets that are in use by Model 204 on such volumes produces unpredictable results.

The "M204UTIL options" table lists the options that are available with M204UTIL.

M204UTIL options

Allocation unit

Option

BLKSIZE

Block size

DSORG

Either PS or DA

LRECL

Record length

PRIMARY

CYL TRK BLK

RECFM

F/FA/FBA/V/VA/VBA/U

You must specify the primary option. Other options are not mandatory. The operands and options are function-dependent.

For example, the first statement below initializes a temporary minidisk. The second creates a data set named DEV.SCRATCH.CCATEMP to be stored on it. The third statement erases the data set.

M204UTIL INITIAL 291 TMP291 M204UTIL ALLOCATE DEV SCRATCH CCATEMP 291 (PRIMARY 5 CYL) M204UTIL ERASE DEV SCRATCH CCATEMP 291

Using the M204MOUN EXEC to mount and dismount tapes

When a tape must be mounted, the CMS interface to Model 204 invokes the EXEC procedure M204MOUN, passing the DDname, device address, volume serial number, volume sequence, and access type (READ or WRITE) as arguments.

The M204MOUN EXEC determines the status of the tape device, issues appropriate Control Program and CMS commands, and sends a message to the system operator for a tape mount and drive attachment to the service virtual machine, if necessary.

Based on criteria at its disposal, the EXEC can reject the attempt to mount the tape. You can alter the M204MOUN EXEC defaults to meet site requirements.

When a tape volume is dismounted, the CMS interface to Model 204 invokes the EXEC procedure M204UNLD, passing the DDname, device address, volume serial number, volume sequence, access type (READ or WRITE), and file status (EOV or EOF) as arguments.

  • EOV (request another volume) indicates an entry at end-of-volume.
  • EOF (no further requests) indicates an entry due to end-of-file.

BATCH204 JCL with CCAIN

Sample z/OS JCL for invoking a BATCH204 run

//RUN EXEC PGM=BATCH204,REGION=1200K, // TIME=10,PARM='SYSOPT=144' //STEPLIB DD DSN=M204.LOADLIB,DISP=SHR //CCAAUDIT DD SYSOUT=A //CCASTAT DD DSN=M204.CCASTAT,DISP=SHR //CCAJRNL DD DSN=M204.JOURNAL,DISP=SHR //CCATEMP DD UNIT=3330,SPACE=(TRK,20), // DISP=(NEW,DELETE) //CCASNAP DD SYSOUT=A //SYSMDUMP DD SYSOUT=A //SYSUDUMP DD SYSOUT=A //CENSUS DD DSN=M204.FILE.CENSUS,DISP=SHR //CCAPRINT DD SYSOUT=A //CCAIN DD * PAGESZ=6184,NFILES=1,SNAPCTL=2 . . .

STEPLIB points to the load module library where the Model 204 program is linked.

  • If the load module library is added to the LINKLIB concatenation, STEPLIB is not necessary.
  • If EXCPVR under z/OS is used, STEPLIB must be authorized.

Runtime environment specifications

You can specify Model 204 runtime environment parameters on the EXEC statement and on the User 0 parameter line of the CCAIN input stream.

The following sections explain how to set EXEC parameters, discuss the most commonly used User 0 parameters, and detail procedures specific to z/VSE and z/VM environments.

Specifying EXEC statement parameters

The JCL EXEC statement includes the following parameters that affect the runtime environment (see the sample in z/OS JCL).

  • PGM specifies the Model 204 configuration.
  • TIME specifies how long Model 204 can run before being canceled by the operating system. Specify at least 10 seconds for system initialization and normal termination.

    Under z/OS, if TIME is set to 1440, the operating system's automatic cancellation of the run is bypassed. If the Model 204 automatic shutdown facility is also bypassed, then Model 204 can run indefinitely until brought down by other means.

  • PARM sets various Model 204 parameters, including the LIBUFF parameter and the SYSOPT parameter, which is described in the SYSOPT parameter options table.

    Note: The value set for LIBUFF takes effect immediately, so you must set LIBUFF large enough to accommodate CCAIN.

  • REGION specifies the size of the memory area allocated for the Model 204 configuration. The next section explains how to estimate the value of this parameter.

Calculating region size

Consider the following factors when estimating region size for an Online system (z/OS) or z/VM machine size (CMS):

  • Size of the load module, which varies depending on the use of optional modules
  • Spare core (SPCORE) specification, the default is 8192 bytes

    Increase the default, if you use deferred update, the FLOD exit (FLODXT) feature, directed output, or active subsystems. Additional memory is also required to open sequential data sets. The requirements for FLODXT are given under SPCORE in the "Common runtime parameters" table.

  • Number of buffers used for each server

    Four buffers for each server is the minimum requirement. Each buffer requires slightly more than one Model 204 page. The main memory required is dependent upon the SERVSIZE parameter setting.

    No work space is required. Under normal conditions, five active users or application threads can be serviced efficiently by one server.

  • Number of servers allocated

    The size of each user's area is dependent on the settings of the compiler table parameters governing the size and complexity of the SOUL requests. The formula to calculate server area size is given in Sizing user server areas.

    In exceptional cases, processing needs might require a distinct server for each user.

  • Storage overhead

    Approximately 500 bytes per user and 700 bytes per file are required. The actual amount depends on the number of data sets and extents.

Setting the SYSOPT parameter

SYSOPT values, which can be summed, define actions taken during a run. Individual SYSOPT options are shown in the following table:

SYSOPT parameter options

Option

Specifies...

128

Log for the CCAJRNL and the CCAAUDIT data sets

64

Abend without a dump when the return code is nonzero

32

Print lines relating to system initialization or IFAM function calls (RK lines) on the audit trail or journal

16

Login is required

8

Automatic disconnect operation in response to the LOGOUT command

4

Execution of data definition commands within a particular run only through the File Management facility of Dictionary

2

Existing permanent group file (CCAGRP) is required

1

CCASYS file, which is required for subsystem applications

SYSIPT logical unit in z/VSE

In the z/VSE environment, CCAIN is replaced by the logical unit SYSIPT, a device-independent input reader. Typically, the SYSIPT logical unit is assigned to the same device as that used by the Job Control program for reading JCL. It is usually unnecessary to provide a z/VSE ASSGN statement for this logical unit.

You must place CCAIN data in one of the following:

  • Job stream immediately following the z/VSE EXEC Job Control statement:

    // EXEC ONLINE,SIZE=AUTO PAGESZ=6184,RCVOPT=1 . . . . /* /&

    For a full example, see z/VSE JCL.

  • A disk data set. Use any utility that takes card input and writes it to a file of 80-byte unblocked records. You must also supply a DLBL and EXTENT for either CCAIN or IJSYSIN:
  • For CCAIN, the symbolic unit referenced on the EXTENT statement must be a programmer logical unit, for example, SYS022.
  • For IJSYSIN, the symbolic unit referenced on the EXTENT statement must be SYSIPT.
  • Procedure with the DATA=YES option on the CATALP statement.

User 0 input file in the z/VM environment

In z/VM, the User 0 output file is specified as a file stored on a minidisk. There are no restrictions on the choice of the CMS file identifier. For example:

FILEDEF CCAIN DISK DOCONLN CCAIN A

Model 204 also runs within a user's virtual machine in a single-user mode. In this case the file is defined with a FILEDEF command, similar to the example shown above, in the single-user EXEC. Runtime parameters are set up the same as for multiple users, except that the number of users is set to one (NUSERS=1).

Stacking z/VM runtime parameters

In a z/VM environment, the EXEC containing the FILEDEF commands can specify SYSOPT (and any other runtime parameters) before initialization by stacking the parameters:

&C FILEDEF CCAIN DISK DOCONLN CCAIN A &C FILEDEF CCAPRINT DISK DOCONLN CCAPRINT A . . . * *STACK THE PARM FIELD VALUE FOR MODEL 204 * &STACK SYSOPT 128 LIBUFF 2048

User 0 parameters

The runtime environment specifications entered on the User 0 parameter line further define system options, user default values, and work area sizes.

Parameters common to many Model 204 configurations are summarized in the "Common runtime parameters" table.

Common runtime parameters

Parameter

Specifies...

CFRLOOK

Collect critical file resources conflict statistics.

CPMAX

Maximum number of checkpoints

CPTIME

Checkpoint time intervals

LENQTBL

Number of entries in each user's resource enqueuing table. (See Resource locking table for sizing formulas.) The default is 6.

LIBUFF

Length of the input buffer used for input lines from CCAIN or the user's terminal. LIBUFF must be three bytes longer than the longest line or record read into it. Longer lines are rejected with an error message. The default is 255.

If an input line is continued with a nonblank character, the number of characters in the original line and all continuations (not including continuation characters) must fit in the LIBUFF specification.

LOBUFF

Length of the output buffer used for output lines to CCAAUDIT, CCAPRINT, for a user's terminal, or for a directed output (USE) data set. LOBUFF can be reset on individual user parameter lines. The default is 256. The recommended value for SQL processing is 5000.

LOGADD

Number of slots reserved for adding new password (CCASTAT) entries. The default is 0.

LOGFAIL

Action taken when the number of consecutive login failures exceeds the value of the LOGTRY parameter. Default is 0.

LOGONENQ

Use of unique user IDs for systemwide logons to a single ONLINE system. (See the LOGONENQ entry in the "User environment control parameters" table to specify unique user IDs for specific terminals.) The default is 0.

The Subsystem Management facility is not affected by LOGONENQ.

LOGTRY

Maximum number of login attempts allowed. The default is 0.

LRETBL

Length of each user's part of the record enqueuing table. (See Resource locking.) Default is 200.

LRUTIM

Disk page reference interval for references considered obsolete. Use LRUTIM to calculate DKRR statistics. The default is 0.

MAXBUF

Maximum number of file page buffers allocated below the bar during Model 204 initialization. (See Disk buffers and Model 204 storage.) The default is 256.

MINBUF

Minimum number of file page buffers allocated below the bar during Model 204 initialization. (See Disk buffers and Model 204 storage.) The default is 18.

NDCBS

Number of Model 204 file DCBs that can be used at any one time. The default is 10.

NDIR

Maximum number of Model 204 files that can be opened during a run. The default is 5.

NFILES

Maximum number of Model 204 files that can be open at any one time. Files remain open until an explicit CLOSE is issued or the session ends. The default is 2.

NFILES, NDCBS, and NDIR specifications are automatically incremented during system initialization if SYSOPT=2 (permanent group file). With the VIEW command, you can view parameter values during a run.

NGROUP

Maximum number of file groups each user can have open at the same time. The default is 5.

NSERVS

Number of servers. The default is NUSERS (see below).

NSUBTKS

Maximum number of pseudo subtasks that can be generated in a Model 204 run. The default is 4.

NUMBUFG

Number of file page buffers allocated above the bar during Model 204 initialization. (See Disk buffers and Model 204 storage.) The default is 0.

NUSERS

Total number of SOUL users and IFAM2 or IFAM4 threads supported. The default is 1. The value of NUSERS consists of the total number of I/O device types (IODEVs) specified on the user parameter lines plus 1 for User 0. Online users are defined as terminal users with a particular type of terminal or as a host language thread, if IFAM is supported in the online region.

PAGEFIX

Fixes areas in memory; can be useful in reducing paging traffic under z/OS or z/VSE. The default is X `0000000', which means nothing is page fixed.

For z/VSE only: A PAGEFIX request is valid only if real pages have been assigned by the ALLOC command. If ALLOC is 0 or if the total number of pages to be fixed exceeds the number of real pages, the PAGEFIX request fails.

RETRVKEY

PF key used to retrieve a previous terminal input line. 280 bytes of spare core is required for each user that has a defined retrieve key. The default is 0.

SEQOPT

Activation of the prefetch (look-ahead) feature for SOUL applications requiring entry order retrieval. Values are 1 (on) or 0 (off). The default is 0. Activation of SEQOPT requires resizing the MAXBUF parameter by using the formula:

MAXBUF = NUSERS * (4 + 2 * [maximum FOR EACH RECORD loop nest level])

You can modify SEQOPT with the RESET command.

SERVSIZE

Size of each server area. The default, formerly 0, is 65536. (See Server areas.)

SPCORE

Minimum amount of storage within the Model 204 address space to leave unallocated at the end of Model 204 initialization. You can set SPCORE in the EXEC statement PARM field or on the User 0 parameter line. The default is 8192. Spare core is used by:

  • IFAM4 application program storage. The default is 12288.
  • Active subsystems. (See the formula given in SPCORE size.)
  • FILELOAD or FLOD commands for tape input and deferred update output. When using the FLODXT feature, you must allocate 100 bytes for each FLODXT program.
  • Each defined retrieval key for previous terminal input (180 bytes per key).

In z/OS, a number of bytes of virtual storage equal to your SPCORE setting is reserved above the line, and the same number is reserved below the line. The BTB amount is ignored in Model 204 7.7 and higher if the NUMBUFG parameter setting is greater than 0.

TIMESTOP

Amount of time (CPU milliseconds) before automatic termination processing begins or before initiation of commands or SOUL requests stops. TIMESTOP cannot be reset. The default is 1500.

If TIMESTOP is set to 0, the Model 204 timing facility's automatic shutdown is bypassed. If, in addition, the JCL EXEC statement parameter TIME is set to 1440, the z/OS automatic shutdown is bypassed, and Model 204 continues to run indefinitely until brought down by other means.

XMEMOPT

Model 204 Cross-Memory Services facility used by Timer PC and IOS Branch Entry for z/OS systems, as well as using SUSPEND/RESUME instead of WAIT/POST for communication between Model 204 real subtasks. Coordinates with XMEMSVC.

It is also required for:

VIO is incompatible with IOSB and EXCPVR.

XMEMSVC

SVC number of the Model 204 Cross-Memory Services module (M204XSVC). Installation of this module with an SVC is deprecated as of Model 204 7.5. XMEMSVC coordinates with XMEMOPT. The default is 0.

M204XSVC is also used by:

  • IOS Branch Entry
  • UL/DB2
  • CRAM-XDM
  • CPUID check (product license verification; prior to Model 204 7.5)

z/VSE UPSI Job Control statement

In a z/VSE environment:

  • Use the SYSPARM parameter of the z/VSE OPTION Job Control statement to specify a limited number of parameters that are normally specified on User 0 or any user's parameter lines, if the maximum length of the data does not exceed eight characters. For example, you can set the LIBUFF parameter with the following statement:

    // OPTION SYSPARM='LIB=2048'

  • Set the SYSOPT value before initialization by using the z/VSE UPSI Job Control statement. Specify the value as a series of weighted UPSI bit values.

    For example, including RK lines on the audit trail can be specified with the following statement, which is the equivalent of SYSOPT=32:

    00100000

    The "UPSI/SYSOPT settings" table summarizes the UPSI bit settings and SYSOPT equivalents:

    UPSI/SYSOPT settings

    UPSI setting

    SYSOPT value

    Meaning

    10000000

    128

    Generate audit trail and/or journal

    01000000

    64

    Abend without a dump when the return code is nonzero

    00100000

    32

    Include RK lines on the audit trail

    00010000

    16

    Login required

    00001000

    8

    Automatic disconnect in response to the LOGOUT command

    00000100

    4

    Restrict the use of data definition commands within a run

    00000010

    2

    Open CCAGRP for use of permanent file group

    00000001

    1

    Open CCASYS for use of application subsystem definitions

Resource locking

To maintain data integrity, resource locking requests and reserves system and file resources for share (SHR) and exclusive (EXCL) use with other users. Data corruption is prevented by using linked lists of system and file resources. Conflict in the locking table results from attempts to lock exclusively on a file resource.

Resource locking messages indicate a wait for a file, a conflict for a resource, or that the table is full and needs to be increased with the LENQTBL parameter.

Locking occurs on:

  • File resources, which are usually locked in SHR mode, such as:
    • File access
    • Record locking table
    • Table B and Group index
    • Tables C and D
    • Permanent procedures
    • Access Control Table
  • System resources, which are usually locked in EXCL mode, such as:
    • Access to the CCASTAT file
    • Group definition table in CCATEMP
    • Updates to CCAGRP
    • Names of a file and subsystem
    • User defined resources
  • Records

The following sections explain the resource locking tables and the details of resource locking on single and multiple CPUs.

Record locking table

The record locking table (also called: record enqueuing table), whose length is the product of the number of users (NUSERS) and the length in bytes of one user's part of the table (LRETBL), contains control information necessary to detect conflicts between users trying to update records simultaneously.

You can issue a MONITOR ENQ command to determine current usage in the record locking table.

Calculating allocated size of record locking table

The amount of space required by a request is roughly proportional to the number of lists and FIND statements contained in the request. Each FIND statement or list requires about 46 bytes per file for files less than or equal to 300,000 records. Space requirements increase at the rate of 2.25 bytes per segment. The maximum value is 65,535.

SYSOPT2=X'40'

Record sets — found sets, including FDWOL found sets, sorted sets, lists, and LPU lists — are traced through entries in the record locking table. One entry is required for each segment (49,152 records) in the record set. These entries are CCATEMP page numbers.

When the SYSOPT2 X'40' bit is set, the entries contain 4-byte CCATEMP page numbers. Setting the X'40' bit provides a substantial increase in the number of simultaneous record sets that can be concurrently active in a given Model 204 run. Therefore, if you set the SYSOPT2 X'40' bit, you should also at least double the LRETBL value.

  • When the SYSOPT2 setting does not include X'40', then at any given time the bit maps corresponding to all users holding found sets of any kind must fit into CCATEMP pages designated as the small model page pool no matter how large CCATEMP has been allocated.
  • When the SYSOPT2 setting does include X'40', the CCATEMP page restriction is removed and user found sets can be placed anywhere within CCATEMP. This includes both the small model page pool and the CCATEMP expansion area, allowing for the possibility of a greater number of concurrent found sets being held by all users.

Resource locking table

You can use the $CenqCt function to obtain information on the number of unused entries in the resource locking table (also called: resource enqueuing table).

Sizing the resource locking table

For details on estimating the size of the resource locking table, see LENQTBL.

For z/OS, Model 204 allocates the resource locking table above the 16-megabyte line.

Multiple jobs running on one CPU

Locking occurs at the file level when application files are shared between multiple jobs.

File locking modes is EXCL when:

  • Files are opened from a SOUL thread or an IFAM1 thread that has file update privileges.
  • Files are opened from an IFAM2 thread or an IFAM4 thread that has allowed updates with thread update and file update privileges.
  • Command is entered to create or delete a permanent group.

File locking is SHR mode when:

  • Files are opened under any other circumstances than those listed above.
  • Files are opened in deferred update mode. Such files remain in SHR mode for the duration of the run.

    Note: Up to 192 files can be opened in deferred update mode. An attempt to exceed 192 files results in an error message.

  • Files have the file recovery option (FRCVOPT) parameter set to include X'10'. Locking on an application file does not occur when it is closed, unless FRCVOPT is set to X'10'. FRCVOPT is discussed extensively in File integrity and recovery.
  • The Model 204 job uses the CCAGRP data set.

The following sections explain how locking conflicts are handled by Model 204, and how data integrity is ensured when multiple jobs run on one CPU.

Handling locking conflicts

Locking conflicts for application files are handled first by the operating system and next by Model 204.

The operating system initially examines the disposition for all application files, as specified in the JCL for a job. If two jobs specify SHR for the same application file, the operating system allows both jobs access to the file. When the second job attempts to process the application file, Model 204 determines that another job poses a locking conflict.

Model 204 reads the first page of the file and examines the lock, which is located on that page. If a conflict is detected, Model 204 waits until the job's time limit is reached for the file to become available. Then, if the file is not available, Model 204 sends error messages to the operator's console and to the output device of the user who attempted to open the file.

Error messages are issued once every five minutes until the file becomes available, the job time limit for an online job is reached, or the maximum number of error messages for a batch job (ERMX) is reached.

Messages sent to the operator's console are:

  • For an Online job:

    *** M204.0582: ACCESS TO FILE filename PREVENTED BY: jobname *** M204.0584: FILE IS IN USE — filename

  • For a batch job the message sent from Model 204 to the operator:

    *** M204.0582: ACCESS TO FILE filename PREVENTED BY: jobname *** M204.0581: ENQ'ING TO SHR FOR FILE filename volname *** M204.0582: ACCESS TO FILE filename PREVENTED BY: jobname *** M204.0583: ENQ'ING TO EXCL FOR FILE filename volname

Data integrity

When multiple jobs run on the same CPU, data integrity is ensured by using:

  • Operating system locking and unlocking facility for shared application files and the system file containing file group definitions (CCAGRP).
  • Special lock stored in the system file containing user and file security information (CCASTAT).
  • Restriction on sharing the system file that provides space for user work tables (CCASERVR) and the system scratch file (CCATEMP) between jobs.

Multiple Model 204 versions running on separate CPUs

The operating system file locking mechanism prevents concurrent updating and retrieval of data sets by jobs that run on separate CPUs. The RESERVE/RELEASE hardware feature restricts use of a device to a single CPU in the following ways:

  • Device containing a file's first data set can be reserved when control of the file is gained on one CPU and one of the following conditions is true:
  • File is opened in a Model 204 job for the first time.
  • File that was read-only is first opened for update.
  • Last updating user closes the file.
  • File is completely closed.
  • Device is released in each case after a single disk read and disk write have been performed.

Each file contains a list of jobs that have control of the file. The list is read and updated only while the device is reserved. If control of the file cannot be obtained, then the list is not updated, and the list of jobs preventing access, with their system IDs, is sent to the operator.

Each list entry contains the following information:

  • SMF system ID lock type (SHR or EXCL)
  • Job and step names
  • Date and time that the list entry was created

How Model 204 resolves locking conflicts

Locking conflicts can be handled automatically or by issuing the ENQCTL command.

Conflicts are handled automatically in single CPU error cases where a Model 204 job has a file open and either the operating system crashes or the Model 204 job is canceled. In these instances, the locking list in the file still shows the file as locked and the following process occurs:

  1. When a file is opened, the locking list is processed after the operating system enqueuing. If the operating system enqueuing succeeds, there is no conflicting job on the requesting job's system. Any conflicting list entries for the same system are obsolete.
  2. If the locking request is exclusive, any list entries for the current system are eliminated as obsolete.
  3. If the request is shared, any exclusive entries for the current system and any shared entry having the same system ID, job, and step names are eliminated.

Locking conflicts between CPUs

You can clear conflicts occurring between CPUs by issuing the ENQCTL command to interrogate or modify the status of a file's locking list. The following rules apply to the ENQCTL command:

  • If an ENQCTL command is issued with only a file name, all list entries for the file are displayed.
  • If an ENQCTL command is issued with arguments, all the entries satisfying the arguments are deleted.

For example, if a system crash occurs for system S133, the operator at another system can issue the following command to remove all the locking list entries from CENSUS that were added by jobs running on system S133:

ENQCTL CENSUS S133

Indiscriminate use of the ENQCTL command can cause shared DASD integrity exposure through the removal of entries of active systems or jobs.

Shared DASD locking conflicts

If a shared DASD locking conflict occurs, Model 204 sends an error message to the operator's console. Error messages are issued once every five minutes until the conflict is resolved and the file becomes available.

Messages sent to the operator's console are:

  • For a batch job:

    *** M204.0582: ACCESS TO FILE filename PREVENTED BY: jobname *** M204.0584: FILE IS IN USE -- filename

    Note: Both of these messages increment the error count for the batch job. Because the batch OPEN command is aborted after the specified maximum number of errors (ERMX) is reached, Model 204 does not wait indefinitely for the conflict to be resolved.

  • For active system or job locking list entries deleted by using the ENQCTL command:

    *** M204.0585: SHARED DASD ENQ LIST OVERLAID FOR filename AT hh:mm:ss ON yy.ddd

    The date and time identify the most recent update of the file. Used in conjunction with the operating system job logs, this information can determine the cause of the problem.

z/VSE considerations

The following considerations apply to resource locking in a z/VSE environment:

  • File locking is available for z/VSE releases that support LOCK and UNLOCK (SVC 110).
  • Multiple copies of Model 204 running in separate z/VSE systems cannot share any Model 204 database files.

Resource locking in z/VM

The following considerations apply to resource locking in z/VM environments:

  • CMS-format disks cannot be shared in read/write mode by multiple virtual or real machines. Any attempt at SHR access destroys the data.

    The file allocation techniques that are used and the lack of support in CMS for access serialization prevent effective read/write file sharing.

    Files on CMS-format disks do not require preallocation. The files are created automatically the first time they are referenced and continue to increase in size as more data is added. File size is restricted only by the available space defined on the minidisk.

  • Several virtual machines can share variable-format disks by using virtual RESERVE/RELEASE facilities.

    RESERVE/RELEASE permits access to a volume restricted to a particular (real or virtual) access path. Because allocations are static in nature, a file can be read and written without further reference to the allocation information, unless secondary allocation functions are required.

    Files on variable-format disks require preallocation. A primary allocation must be provided. Secondary extents can be specified to permit limited extension of the file. The file allocation information is recorded on a disk in the Volume Table of Contents (VTOC).

    Some files on variable-format disks can be read/write shared by multiple Model 204 virtual machines while others cannot:

    • Files that can be shared are CCAGRP, CCAIN, CCASTAT, CCASYS, and Model 204 files.
    • Files that cannot be shared are CCAAUDIT, CCAJRNL, CCAPRINT, CCARF, CCASERVR, CCASNAP, CCATEMP, CHKPOINT, RESTART, USE data sets, and deferred update data sets.
  • SHR mode access on a read-only device can cause data inconsistencies.

    If a CMS user has SHR access to a Model 204 file on a read-only minidisk, SHR does not prevent another user from upgrading to the EXCL mode.

Disk buffers and Model 204 storage

The disk buffer pool holds pages from database files and from CCATEMP and CCAGRP. CCATEMP pages consist of found sets, sorted sets, backpage images, temporary procedures and other data structures. Database pages consist of pages from Tables FCT, A, B, C, D, E and X. Pages are read into and written from this buffer pool by the disk buffer manager which manages this resource using a least recently used algorithm. This pool of buffers is shared by all users.

Model 204 utilizes the following areas of storage, depending on the operating system architecture your site supports:

  • Below the line, for 24-bit storage for non-XA systems: z/OS, z/VM, and z/VSE
  • Above the line, for sites that support 31-bit storage for OS/390, XA, ESA, z/OS, z/VM, and z/VSE
  • Above the bar, for sites that support 64-bit storage for z/OS, z/VM, and z/VSE

The buffer pool consists of the following data structures:

  • Disk Buffer Control Blocks: 160 bytes each, one per buffer
  • Hash cells: 16 bytes each. The number of hash cells allocated for each buffer is equal to the HASHCELL parameter value, which defaults to 3.
  • Page fix lists: 16 bytes per buffer
  • Buffers: 6184 bytes, plus 8-byte overrun detection area

    The disk buffer overrun detection area, the space between each buffer in the disk buffer pool, is eight bytes of hexadecimal FF, so for each buffer, 6192 bytes is allocated. The total size of the buffer pool is then:

    (NUMBUF + NUMBUFG) * (6192 + 160 + (16*HASHCELL) + 16)

    NUMBUF is a viewable parameter that is equal to the number of buffers allocated above the line. NUMBUF is equal to or less than MAXBUF, depending on the amount of virtual storage available to the job.

    NUMBUFG is a settable and viewable parameter that is equal to the number of buffers allocated above the bar (ATB). If NUMBUFG buffers cannot be allocated in available above the bar storage, the run terminates.

    Note: As of version 7.7 of Model 204, either NUMBUF or NUMBUFG is 0: all disk buffer storage is allocated BTB, or all is allocated ATB, depending on the setting of NUMBUFG.

Using 31-bit storage

When BTB buffers are being used (that is, NUMBUFG is 0 under version 7.7 or higher, or NUMBUFG is any value under Model 204 prior to 7.7) in systems that support 31-bit addressing, Model 204 disk buffers are allocated above the 16-megabyte line. This frees virtual storage for other data that must remain below the line, and it allows for the allocation of a larger buffer pool, since there is more virtual storage above the line. As the number of buffers increases, database pages can remain in memory for longer periods of time, and repeated reads (I/O) for the same pages are reduced.

  • If IOS Branch Entry (XMEMOPT X'02') is used, control blocks, hash cells, and page fix lists are allocated above the line.
  • If IOS Branch Entry is not used, the disk buffer control blocks and hash cells (and page fix lists if EXCPVR is used) are allocated below the line. The buffers themselves are allocated above the line.

Note: For information about controlling the allocation of hash cells per buffer pool page, see the HASHCELL parameter.

A minimum number of BTB buffers is required to bring up an Online configuration:

  • Model 204 7.6 or lower:

    The minimum number of buffers is equal to the result of the following calculation:

    NLRUQ * ((NSERVS + NSUBTKS) * MAXOBUF + 15)

    If MINBUF is set smaller than the above result, Model 204 resets MINBUF to the result value.

    If MAXBUF is smaller than MINBUF after the previous calculation, MAXBUF is reset to the value of MINBUF.

    Rocket Software recommends that you start with a minimum setting of MAXBUF=10000 and monitor performance statistics to determine if that number is adequate. Generally, performance will improve as the size of the buffer pool increases. That will not be the case, however, if real storage is limited and system paging increases. Many sites are running with MAXBUF=50000, 100000, or more.

  • Model 204 7.7 and higher:

    If NUMBUFG is 0, only BTB buffers are used, and the minimum number of buffers calculation and the effects on MINBUF and MAXBUF are as described in the preceding item.

    If NUMBUFG is greater than 0, only ATB buffers are used, and the minimum number of ATB buffers is described in Managing ATB storage with NUMBUFG.

Using 64-bit addressing and Above the Bar (ATB) storage

In systems that support 64-bit virtual storage, you can place Table B and Table X pages (and other entities listed in Model 204 entities in above the bar storage) in the above-the-bar buffer pool, or above the two gigabyte (2GB) address line. Pages that are not stored above the bar reside in the buffer pool above the line.

Important:

  • For Model 204 version 7.4, you should ensure that your user-written and third-party $functions can work with non-swappable server tables in 64-bit storage above the bar.
  • For Model 204 version 7.5 and higher, any assembler language functions that you have written for use within Model 204 version 7.5 must be 64-bit compliant. Contact Technical Support if you need help with conversion of your functions.
  • For Model 204 version 7.7 and higher, activating usage of ATB buffers (setting NUMBUFG greater than 0) causes all buffer storage to be ATB and none to be BTB.

    Prior to the gradual introduction of ATB storage for Model 204, storage was rather limited, so Model 204 took all the storage it could, returned SPCORE bytes, and allocated the rest into the buffer pool. If the resulting number of buffers was not between MINBUF and MAXBUF, the run terminated. On more contemporary systems, virtual storage is abundant, making obsolete the concept of calculating the amount of storage (BTB) that will fit.

    The following documentation retains many remarks that apply to versions preceding 7.7 where ATB and BTB buffers might both be used together.

  • In most cases, Table B pages constitute the biggest portion of all pages in the buffer pool. Moving Table B pages to an above-the-bar buffer pool lets Model 204 place more pages from all other tables in the below-the-bar buffer pool and thereby reduce I/O and CPU time to read and write pages to and from disk.
  • When a buffer is allocated above the bar, the corresponding disk buffer control blocks (one per buffer, 160 bytes each) and hash cells (three per buffer, 16 bytes each) are also allocated above the bar. This means there is no below the bar storage penalty for allocating above-the-bar buffers.
  • Having these two buffer pools rather than one improves Model 204 scalability by reducing MP collisions when using buffer pool resources.
  • Eight bytes added to the end of every buffer, above and below the bar, detect buffer overruns. The buffer size per page is 6192 bytes (or 6184 plus 8).

Managing ATB storage with NUMBUFG

Note: If you set NUMBUFG greater than zero to use storage above the bar, IBM requires that you set a limit on how much of that virtual storage each address space can use. This limit is called MEMLIMIT.

When NUMBUFG is set to a nonzero value, an above-the-bar buffer pool is allocated with NUMBUFG buffers. As of Model 204 7.7, this ATB buffer pool handles all disk buffer storage, and you get the exact amount of storage you specify with NUMBUFG. Before version 7.7 of Model 204, nonzero NUMBUFG activates an ATB buffer pool in addition to the BTB buffer pool.

If ATB and BTB buffer pools are both being used:

  • The ATB and the BTB buffer pool are allocated with at least a minimum number of buffers, and the calculations for those minimums are very similar:

    The ATB minimum, calculated by Model 204, is:

    NLRUQG * ((NSERVS + NSUBTKS) * MAXOBUF + 15)

    If you set NUMBUFG to a lower value, it is reset to the calculated value.

    The BTB minimum is:

    NLRUQ * ((NSERVS + NSUBTKS) * MAXOBUF + 15)

    If you set MINBUF to a lower value, it is reset to the calculated value.

  • Table B and Table X pages (and other entities listed in Model 204 entities in above the bar storage) use the above-the-bar buffer pool. Those pages are not read into the below-the-bar buffer pool. Consequently, most sites can reduce the size of the below-the-bar buffer pool by the highwater mark of Table B pages currently resident in that buffer pool.
  • To quickly implement the above-the-bar feature, initially set NUMBUFG equal to your MAXBUF setting and leave MAXBUF at its current setting.
  • If NUMBUFG is greater than zero, the buffer hash pool is allocated above the bar. In addition, control blocks associated with ATB buffers are also allocated above the bar. NUMBUFG is limited to buffer pools of 4.2 terabytes or fewer.
  • To use the above-the-bar buffer pool in z/OS, IOS Branch Entry is required. This means XMEMOPT must be set to include X'02'. You can explicitly exclude allocating above-the-bar buffers by setting NUMBUFG=0.

    If NUMBUFG is greater than zero and XMEMOPT does not include X'02', the following message is issued, NUMBUFG is not reset, and the job terminates.

    M204.2581: XMEMOPT=2 (IOS BRANCH) REQUIRED FOR NUMBUFG > 0

    If you cannot get the number of buffers you requested, the job fails.

Determining the NUMBUFG setting

The number of buffers you want to allocate above the bar and below the bar is dependent on the mix of work that is being done on your system. See Model 204 entities in above the bar storage for a list of entities that can go above the bar.

  • The LDKBMWNG parameter, which applies to above-the-bar buffers, corresponds to the LDKBMWND parameter, which applies to below-the-bar buffers.
  • If NLRUQG is set greater than 1, the value of LDKBMWNG is rounded up to a multiple of NLRUQ. LDKBMWND has a minimum size of one (1).

High values of LDKBMWNG might unnecessarily increase the number of writes done (measured by the DKWR statistic). Low values might cause excessive waiting for buffers (measured by the MAXIOX statistic). Rocket Software recommends starting values for LDKBMWND and LDKBMWNG at 10% of NUMBUF and NUMBUFG, respectively.

If you do not set LDKBMWNG, it is set to the same value as LDKBMWND.

Designating non-swappable and swappable server space

You can allocate designated server tables for each user in storage above the bar that will not be subject to server swapping. This feature enables you to divide the server storage into two parts: swappable and non-swappable. This makes the swappable part of the server storage smaller and faster to swap.

The SERVNSSZ and SERVNSA parameters control non-swappable server areas.

  • SERVNSSZ (server non-swappable size) is the amount of space in bytes required for the above the bar server tables per user.
  • SERVNSA (server non-swappable areas) specifies the tables above the bar.

In order to store a table in ATB storage:

  • Increase the SERVNSSZ parameter by the corresponding table size.
  • Set the proper bit in SERVNSA; for example:
    • For FTBL, set the first byte to X'02', so the value of SERVNSA is X'02000000'.
    • For GTBL, set the second byte to X'80', so the value of SERVNSA is X'00800000'.
    • For NTBL, set the third byte to X'40', so the value of SERVNSA is X'00004000'.
    • For QTBL, set the third byte to X'20', so the value of SERVNSA is X'00002000'.

Note: The settings for each server table above the bar are independent of each other. So if FTBL, GTBL, NTBL, and QTBL are all placed above the bar, SERVNSA should be set to X'02806000'.

The non-swappable server part can be used with server swapping done in storage or on disk. It can also be used when there is no server swapping (NUSERS=NSERVS) to make servers below the bar smaller by using the non-swappable server part above the bar and saving storage below the bar.

To obtain below-the-bar storage savings when the non-swappable server part is used, decrease the value of the SERVSIZE parameter by the LFTBL value used in calculating the server size.

Note: When a table such as FTBL is placed in the non-swappable server part above the bar, the UTABLE command decreasing the table size will not free any storage in the regular server below the bar.

When using non-swappable ATB server space, each user will get SERVNSSZ bytes of ATB space, even if the thread is logged out or running resident requests.

For greater efficiency, Model 204 version 7.5 also provides swappable ATB server areas that can supplement or replace the non-swappable areas.

The SERVGA and SERVGSZ parameters control swappable server areas.

  • SERVGA (server swappable areas) specifies the tables above the bar. Each server table is controlled by a bit in SERVGA.
  • SERVGSZ (server non-swappable size) is the amount of space in bytes required for the swappable above-the-bar server tables per server. The total amount of storage allocated for swappable above-the-bar server areas equals SERVGSZ rounded to 4K and multiplied by NSERVS.

Note: In Model 204 V7.5 and higher, server tables can be in three different places:

  • The BTB swappable server area
  • The ATB swappable server area
  • The ATB non-swappable server area

But server tables cannot be in two places at the same time. For example, you cannot make servers swappable and non-swappable at the same time. If, for instance, you set the NTBL bit on for the SERVNSA parameter, and you also set it on for SERVGA, the result would be:

M204.1399: Same server area defined for server above the bar and non-swappable server

However, you can make parts of your server swappable and other parts non-swappable: the non-swappable areas are like having NUSERS=NSERVS, but only for some tables. So if you had large STBLs and GTBLs, you might want to make them non-swappable to reduce server swap times. And if you had small TTBLs and ITBLs, you might want to put them in the swappable area. Any table in the above-the-bar SRVR (the swappable part of the server) is not taking up space in the below-the-bar server. The same is true for any table in the ATB-non-swappable part of the server.

The goal is to reduce the requirement for below-the-bar server area so that you can increase NSERVS (as NSERVS increases, so does the need for below-the-bar virtual storage).

ATB storage for APSY precompiled procedures

The RESPAGE parameter activates the APSY precompiled procedures in storage feature using above-the-bar pages by specifying a number of 4K-byte operating system pages.

Specifying RESPAGE stores precompiled procedures as resident requests above the bar in the RESPAGE area. Using RESPAGE allows you to substantially increase the resident request area and decrease server swapping of QTBL and NTBL pages.

Also, when RESPAGE is greater than 0, RESSIZE is reset to -1, and no storage is allocated for RESSIZE.

RESPAGE is independent of SERVNSA. That is, if RESPAGE is greater than 0, NTBL and QTBL for resident requests will always be stored in the resident request area, outside of the non-swappable server areas, even if the SERVNSA bits specify NTBL or QTBL are to be stored in the non-swappable server areas. This avoids the duplication of storing NTBL and QTBL in two different locations. In other words, a resident request is only stored in the resident request area and nowhere else.

Storing resident requests above the bar is independent of tables above the bar. You can use a combination of resident requests and swappable servers ATB to reduce BTB-server sizes and thus increase the number of servers.

ATB storage for EBM pages

Existence Bit Map (EBM) pages reside in above the bar storage.

Each Model 204 file contains one EBM page for each segment in a file. If a file has five segments, that means there are five EBM pages for that file.

To allow more ATB buffers for the EBM pages, increase the NUMBUFG setting by a value that accommodates all the EBM pages for all files that might be open concurrently in your job. If in addition the version of Model 204 is lower than 7.7, BTB buffers are also being used, and you can reduce the MAXBUF parameter by the same amount you increased NUMBUFG for EBM pages.

ATB storage for procedure pages

Procedure text pages, located in Table D, are also eligible to reside in the ATB buffer pool. Each SOUL procedure is stored in one or more procedure text pages, the initial page of which is pointed to by the procedure dictionary. (Pages from the procedure dictionary, which is also stored in Table D, are read into the BTB buffer pool.)

In a development environment where procedure page volume is high and where NUMBUFG is allocated, you might need to increase NUMBUFG to accommodate the procedure text pages. In this case, if BTB buffers are also being used (Model 204 version less than 7.7), you can reduce the MAXBUF parameter by the same amount you increased NUMBUFG.

ATB storage for screens and images

Pages used for Model 204 SCREEN and IMAGE items reside in the buffer pool above the bar.

ATB storage for hash table cells

The hash table is used to locate pages in the buffer pool based on the file and page number. You control the number of hash cells allocated in the hash table with the parameter HASHCELL. If NUMBUFG is also set to a value greater than zero to allocate buffers above the bar, the hash cells are also allocated above the bar.

ATB storage for XmlDoc object pages

As of Model 204 version 7.5, the CCATEMP pages used for XmlDoc objects use the ATB buffer pool, which might allow the BTB buffer pool to be reduced, perhaps providing more storage for server areas. It also might provide a reduction in CPU utilization, especially when the TEMPPAGE parameter is used to allocate CCATEMP in memory.

Monitoring disk buffers

To get started using ATB buffers in an environment where both ATB and BTB buffers will be used, you might want to implement NUMBUFG, then do more analysis later. A suggested starting value for NUMBUFG in this case is equal to your MAXBUF setting (while leaving MAXBUF at its current setting). Then use the MONITOR DISKBUFF commands to analyze the buffer pool utilizations.

Managing delayed disk updates

The disk update process allows delayed disk updates, which avoids duplicate database writes in certain situations.

When a user completes an update unit for a file and there are no other update units active against that file, Model 204 writes the buffer to disk with all of the file's modified pages, marks the file as physically consistent, and issues a message stating that the disk update is complete.

Specifying delayed updates with the DKUPDTWT parameter

The CCAIN parameter DKUPDTWT specifies delayed disk updates. The value of DKUPDTWT determines how many seconds a disk buffer containing a file's modified pages must have aged before it can be written to disk.

When DKUPDTWT is zero, the default value, Model 204 writes all of the file's modified pages to disk at the end of the last in-flight update of the file. The user who completed the last in-flight update waits for this disk update process to complete and for the message stating that the disk update is complete.

If DKUPDTWT is not zero, Model 204 delays the start of the disk update process for at least DKUPDTWT seconds, after which it may be the checkpoint pseudo subtask (CHKPPST) that performs the disk update. The user who completed the last in-flight update does not have to wait for the disk update process to complete.

When DKUPDTWT is not zero, the CHKPPST and CHKPTIMR pseudo subtasks are started automatically at Model 204 initialization. An error message informs you if the NSUBTKS parameter is set too low to start these pseudo subtasks.

The maximum value of DKUPDTWT depends on the value of the CPTIME parameter. If CPTIME is nonzero, DKUPDTWT must be less than or equal to CPTIME*30. The absolute maximum value of DKUPDTWT is 60.

The system manager can reset DKUPDTWT to zero while the online is running. It can be reset to a nonzero value as long as the CHKPPST and CHKPTIMR pseudo subtasks were started during Model 204 initialization.

Handling delayed updates and CHKPPST

The CHKPPST pseudo subtask plays a central role in handling delayed disk updates. When DKUPDTWT is set to 0, CHKPPST does the following:

  1. Sleeps for CPTIME minutes.
  2. Tries to quiesce updates, for up to CPTQ, plus CPTO seconds.
  3. Takes the checkpoint, if all updates are quiesced.

If DKUPDTWT is greater than 0, CHKPPST has substantially more processing to perform:

  1. Sleeps for DKUPDTWT divided by four seconds.
  2. Further processing depends on the value, rounded to the nearest integer of:

    N = (CPTIME * 60) / (DKUPDTWT / 4)

Attempting a checkpoint

If the number of wake-up calls since the last checkpoint is N, CHKPPST takes a new checkpoint, as follows:

Attempt

Purpose

1. Performs the disk update process on all files that are not being updated, regardless of how long since they were marked disk-update-needed.
2. Attempts to deactivate Host Language Interface (HLI) updates for CPTQ seconds. Performs the disk update process on all files that are not being updated each time Model 204 determines that there are more HLI jobs to wait for.
3. Attempts to deactivate all other updates for CPTO seconds. Performs the disk update process on all files that are not being updated each time Model 204 determines that there are more users to wait for.
4. If all updates have been deactivated, performs the disk update process on all remaining files marked disk-update-needed. Otherwise, abandons the checkpoint attempt.
5. Performs the disk update process again. Then takes the checkpoint.
6. If the number of wake-up calls since the last checkpoint is not N, CHKPPST performs the disk update process on all files that have aged sufficiently — that is, marked disk-update-needed for at least DKUPDTWT seconds.

Factors affecting disk update and checkpoint processing

Several important factors affect the processing of disk updates and checkpoints:

  • Some disk updates might be interrupted by another thread's request for the file's UPDATE resource. Attempts 1, 2, 3, 4, and 6 might be interrupted by an attempt to start a new update or by a user doing a disk update as part of CLOSE FILE processing. In these cases, the following message is issued, and the next file is processed:

    M204.0440: DISK UPDATED ABORTED

  • Attempts 2, 3, and 4 might be interrupted by the expiration of the waiting time set with Model 204 parameters CPTQ and CPTO, respectively. In these cases, the M204.0440 message is issued, all remaining files are bypassed, and the checkpoint is timed out.
  • If CPTQ and CPTO are zero (no time-out intervals specified) and the DKUPDTWT parameter is nonzero, updates are deactivated for as long as required to perform the disk update process for all available files. If you do not want checkpoint attempts to deactivate updates, set DKUPDTWT to zero.
  • If Attempts 2, 3, or 4 abort due to a CPTO or CPTQ time-out, the checkpoint time-out message indicates the name of the file being written at the time of the time-out:

    M204.0843: CHECKPOINT TIMED OUT ON date/time UPDATING FILE file

  • Attempt 5 cannot be interrupted once it begins. Therefore, CPTO and CPTQ intervals are not honored for a CLOSE FILE command that is blocking a checkpoint. This type of event is likely to be infrequent and of short duration.
  • The sleep intervals of CHKPPST are not adjusted by the amount of time required to perform Attempt 6. Therefore, checkpoints might be spaced out by more than CPTIME minutes. If this is a frequent problem, adjust CPTIME downward.

Understanding file statistics

For descriptions of the file statistics DKUPTIME, UPDTTIME, and PDNGTIME, see Disk buffer monitor statistics and parameters.

Handling 64-bit statistics

To support very long running Model 204 regions, Model 204 V7R1 included modifications to the capacity of statistical counters (by increasing the size of some statistics and also exploiting 64-bit processing where appropriate). For sites upgrading to V7R1 or later, in-house or third-party support applications that process statistical counters need to review the statistics generated:

  • As some of the statistics fields became double-words, check Using system statistics for a revised layout of the System, Final, and Partial statistics. Also, additional Disk Buffer Monitor, MP/204, and File statistics were updated.
  • Examine your in-house or third-party support applications for changes you need to make because of the increased length of some of the statistics. Make any changes necessary to your applications, then reassemble with the release upgrade.
  • If your in-house or third party support applications don't reference any of these double word statistics, you only need to reassemble your program with the updated offsets.

Server areas

Server areas are the internal work areas allocated to each user. Each area is divided into a fixed and variable portion. The fixed portion, which includes logical I/O buffers and user resettable parameters, is calculated by Model 204 at initialization. The variable portion can be changed dynamically with the UTABLE command or the IFUTBL IFAM function.

Sizing user server areas

The default size of all user server areas is set on User 0's parameter line. If the default is used, the allocated server area is exactly large enough to contain the tables for each user specified on each user's parameter line. If SERVSIZE is also specified on a particular user's parameter line, the default is overridden for that user.

The value of SERVSIZE must be as large as, or larger than, the user's aggregate table size. It is calculated by examining the user's server area requirements and monitoring the system statistics (described in ONLINE monitoring) that provide information about the installation work load. The following formula gives the approximate size:

SERVSIZE = fixed-table-size + variable-table-size

Where:

  • fixed-table-size represents settings, defined during initialization, that cannot be modified during the run.
  • variable-table-size represents settings that can be varied using the UTABLE command or its IFAM equivalent, IFUTBL.

SERVSIZE and server page alignment

Servers and some server tables are always aligned on a 4K page boundary. In pre-7.4 releases, server and tables alignment took place only when DSPOPT had settings of bits X'01' or X'02', or when the APSYPAGE parameter was indicated.

If you used server alignment previously, there is no change in your server size requirements.

If you did not use server alignment previously, then you might notice an increase in server size that in the worst case could be up to 24528 bytes per server.

When you calculate server size, take into account that FSCB, HEAP, NTBL, QTBL, STBL, and VTBL are each rounded on a 4K page boundary, so in the worst case each area could require up to 4088 bytes of server space, compared to servers with no alignment in previous releases.

The following sections explain how server area sizing parameters are processed, which parameters determine fixed and variable table sizes, and the ranges of values these parameters can take.

Initialization and error handling

During initialization, each user, except User 0, is identified in the output before the user's parameter line is read. The aggregate size of each user's tables and the size of tables fixed during initialization are printed after the user's parameters are read.

If errors are detected, they are reported and initialization continues whenever possible. If errors are detected during initialization, the run is canceled at the end of initialization. Error conditions in initializing the server cause the run to end immediately with a return code of 96.

The results of user changes to the sizes of FTBL, GTBL, ITBL, and XTBL are discussed in the UTABLE command Usage notes.

Calculating fixed table size

Use the following formula to calculate fixed table size, the FIXSIZE parameter value:

Fixed table size = 2520 + ((MAXINCL+6) * 80)dwr + ((LAUDPROC + 9) * (MAXINCL-1))dwr + (LIBUFF + 4) + (LOBUFF + 5)dwr + (LOUTPB)dwr + (((NGROUP + 12) * (NRMTFILE + NFILES + 1)) + (NRMTFILE + 1))dwr + ((NORQS*3) + 2)dwr + (3 * ERRMSGL)

Each term of this formula that is followed by dwr must be double word rounded to the next multiple of eight. For example, if the value of LOBUFF is 500, the term (LOBUFF + 5) equals 505, which must be rounded to 512, the next multiple of 8.

If SYSOPT is 1 or 2 (indicating CCASYS or CCAGRP), add 1 to the value of NFILES used in the formula. If SYSOPT is 3 (indicating both CCASYS and CCAGRP), add 2.

If any SQL threads are specified in CCAIN (IODEVs 13, 17, or 19), add 6712 bytes for C language work areas.

The "Fixed server table values" table, below, shows the minimum, maximum, and default values for parameters that affect fixed server table sizing. The rightmost columns show the relevant units of measure; for example, the maximum value of NORQS is 32767 entries (not bytes). The values of LIBUFF and LOBUFF may need to be increased for SQL processing. Recommended values are LIBUFF=3000 and LOBUFF=5000.

Fixed server table values

Parameter

Default

Max

Bytes/entries

ERRMSGL

80

256

Bytes

LAUDPROC

21

253

Bytes

LIBUFF

255

32767

Bytes

LOBUFF

256

32767

Bytes

LOUTPB

0

3000

Bytes

MAXINCL

5

40

90+LAUDPROC bytes per INCLUDE level

NFILES

2

16383

Entries

NGROUP

5

16383

Entries

NORQS

5

32767

Entries

NRMTFILE

0

16383

Entries

Calculating variable table size

Use the following formula to calculate variable table size:

Variable table size = 96 + ((HTLEN+5) * (MAXHDR + MAXTRL)) dwr + (LFSCB) dwr + (LFTBL) dwr + (LGTBL) dwr + (LHEAP) dwr + (LITBL) dwr + (LNTBL * 12) + (LPDLST +32) dwr + (LQTBL * 16) + (LSTBL) dwr + (LTTBL * 4)dwr + (LVTBL * 32) + (LXTBL) dwr

Each term of this formula that is followed by dwr must be doubleword rounded to the next multiple of eight. The "Variable server table values" table shows minimum and maximum values:

Variable server table values

Parameter

Default

Max

Bytes/entries/lines

HTLEN

132

32767

Bytes

LFSCB

8 (as of V7.7)
0 (7.6 or earlier)

65528

Bytes

LFTBL

1000

30 million

Bytes

LGTBL

288

2 billion

Bytes

LHEAP

0

2 million

Bytes

LITBL

8 (as of V7.7)
0 (7.6 or earlier)

32760

Bytes

LNTBL

50

32760

12-byte entries

LPDLST

2600

32760

Bytes

LQTBL

400

262,143

16-byte entries

LSTBL

600

16M

Bytes

LTTBL

50

8190

4-byte entries

LVTBL

50

524287

32-byte entries

LXTBL

1000

32760

Bytes

MAXHDR

5

32767

Lines

MAXTRL

5

32767

Lines

Server tables

Server tables are sections of the server area used by the SOUL compiler and evaluator to store all the information necessary to run a request. Some server tables are also used by the editor and HLI functions.

Each user has a copy of the server tables in the server. Table sizes are controlled by the parameters shown in the "Common runtime parameters" table. Parameter settings on the user's parameter line affect the size of the servers and the region.

The "Summary of server tables" lists the server tables. Further information on individual tables is contained in the subsections that follow.

Summary of server tables

Table

Contents

FSCB

Menu, screen, and image information

FTBL

File groups

GTBL

Global variables

ITBL

Dummy string and $READ responses

NTBL

Statement labels, list names, and variables

QTBL

Statements in internal form (quadruples)

RTBL

User privileges, class, and field level security information

STBL

Character strings

TTBL

Temporary work pages

VTBL

Compiler variables

XTBL

Procedure security

Full-screen buffer table (FSCB)

The full-screen buffer table (FSCB) stores menu, screen, and image definitions, in addition to the values of screen variables and image data blocks. FSCB space is reused by each logical menu definition, logical screen definition, or block definition.

The FSCB must be large enough to hold the largest screen, image, or menu definition. The following space is required:

  • 144 bytes of fixed overhead for every menu, including the menu title
  • 144 bytes for each menu prompt
  • 432 bytes of fixed overhead for the first panel of every screen:
  • 144 bytes for each subsequent panel, including the screen title
  • 32 bytes for each screen prompt and input item
  • 32 bytes for every screen line containing at least one input item
  • 80 bytes for each defined screen line, including skipped lines
  • Additional space for automatic validation, including:
  • 2 or 4 bytes for each automatic validation option
  • 256 bytes for the VERIFY command when a particular character set is used in a compiled screen for the first time

Additional occurrences of the same character set do not add extra space. ONEOF and character RANGE store each character string plus one byte for each string's length.

  • 8 bytes for each number in a NUMERIC RANGE statement (16 bytes for each range pair)
  • Space for every block used in image definition

The amount of required space is computed as the sum of the specific SOUL statements, clauses, and items. For a complete list of these values, see Full-screen feature.

File group table (FTBL)

Data structures particular to file groups are stored in FTBL. FTBL entries are:

  • Sixty-two-byte fixed size entry plus six bytes for each file in the group definition.

    This entry is allocated each time a group is opened (explicitly by the OPEN command or implicitly for an ad hoc group) and is released when the group is closed.

  • Variable entry, consisting of nine fixed-bytes plus a number of bytes equal to the length of the field name plus 11 bytes per file in the group

    This entry is created for collecting field-name codes and properties during a SOUL request. An entry is allocated each time a new field name is encountered in the request. The field entries are deleted at every END statement (including END MORE).

When the Inverted File Access Method (IFAM) is used:

  • Host Language threads use FTBL under the same circumstances as SOUL.
  • Field entries are not deleted until the group is closed or until IFFNSH is called.
  • Increase the total FTBL requirement by NGROUP times four bytes.

For Parallel Query Option/204 server nodes, the required size of FTBL increases by eleven bytes times the total number of group members for temporary scattered groups opened at the client and containing a member on the server node.

For information on using FTBL in 64-bit storage, see Above the bar storage.

Understanding the global variable table (GTBL)

GTBL contains information about:

  • Global variables
  • Global images, screens, and menus

GTBL entries are created by the $Incrg, $Getg, and $Setg functions. When a global variable is redefined, its old entry is deleted from GTBL and a new entry is added.

In addition, a 32-byte trailer stores information about offsets.

For information on using GTBL in 64-bit storage, see Above the bar storage.

Clearing GTBL entries

The CLEARGO command deletes all images, screens, and menus. You can also use the CLEAR GLOBALS statement to delete selected types of GTBL entries. For details, see Global features.

Space allocation

The space allocation for a global variable includes:

  • 4 bytes indicating the length of GTBL
  • 1 byte for the length of the variable name
  • Variable name
  • 1 byte for the length of the current name
  • Current value

Global images, screens, and menus require space for a 20-byte header in addition to the size of the object.

When allocating GTBL space, always remember to add 32 bytes for the trailer.

The minimum length of GTBL is 40 bytes (X'28').

Improving global variable processing

You can improve global variable processing by setting the FASTGLOB, GTBLPCT, and GTBLHASH parameters. See Global features for a discussion of how these parameters affect performance.

Dummy string and $READ table (ITBL)

ITBL holds dummy string and $READ responses that are entered as arguments to an INCLUDE statement or command.

The space allocation for an ITBL entry includes:

  • Argument strings, including delimiters, which are saved as they are entered
  • 4 bytes of overhead for each saved string

Space taken by a string is released when the included procedure is executed.

Labels, names, and variables table (NTBL)

NTBL holds labels, names, and variables. Each entry is allocated 12 bytes. NTBL has two entries for each first occurrence of a COMMON declaration.

NTBL has one entry for each of the following elements:

  • Statement label
  • List name
  • %variable
  • Image, menu, and screen variable
  • Partner process opened by a request
  • Additional COMMON declaration
  • Unlabeled Find
  • For Each Value statement
  • For statement with the In Order clause
  • Sequential or VSAM file opened simultaneously

Most NTBL entries are preserved by the MORE command, except for the unlabeled Find and secondary For entries, which are deleted.

A host language thread requires NTBL entries for list names, compilation names, and variables.

FLOD uses NTBL entries for tags and index registers. The size of NTBL determines the highest tag or index that can be specified. In this case, NTBL must be at least 12 bytes multiplied by the highest tag or index size desired.

You need not allow extra space for runtime NTBL storage used during request evaluation of an Open Dataset, Open External, or Open Terminal statement. Use the compiler highwater mark to set LNTBL.

For information on using NTBL in 64-bit storage, see Above the bar storage.

Internal statement table (QTBL)

QTBL holds internal Model 204 instructions that result from compilation of each internal statement. After compilation, the entries in QTBL drive the evaluator. QTBL is emptied by End and End More statements.

The Editor formats all of QTBL into 16-byte entries, which provide a map of text being edited. The number of entries used depends on the number and position of insertions and deletions, not on the amount of text.

Quadruple (QTBL) entries generated by SOUL statements vary in number and size. The "Sample QTBL entries" table, below, shows typical values for each entry. For more QTBL information, see QTBL (internal statement table).

You can reduce server I/O by allowing users executing shared precompiled procedures to use a shared copy of QTBL.

For information on using QTBL in 64-bit storage, see Above the bar storage.

QTBL and IFAM processing

When using the Inverted File Access Method (IFAM):

  • IFFIND, IFCOUNT, and list manipulations build quadruples so that the SOUL evaluator routines can be used.
  • IFGET, IFMORE, and IFPUT build field name lists in QTBL.
  • Other calls are evaluated directly.

IFAM's use of QTBL and the effect of the compiled IFAM feature are discussed in detail in Internal statements/quad table (QTBL) and Using the compiled IFAM facility.

QTBL and FLOD processing

FLOD builds its own quadruples (flodruples) in QTBL. Flodruple sizes vary, but most are 20 bytes or less.

Major exceptions are:

  • Read-and-load-field flodruple, which expands four bytes for each entry in a translation table
  • CASE statement, which requires eight bytes for each comparison string

Sample QTBL entries

"Sample QTBL entries" shows typical QTBL entry sizes for various SOUL statements and program structures:

Sample QTBL entries

SOUL statement

QTBL entry size

$functions

16 + 3 per argument

%variable, subscripted (reference to)

16 + expression evaluation

ADD

20

AFTER

20

AND (except where AND is part of BETWEEN)

16

Conversion between a string and a number

16

CALL

16

CHANGE

44

CLEAR LIST

20

CLEAR ON

16

CLEAR TAG

16

CLOSE

16

CLOSE PROCESS

16

COMMIT

4

COMMIT RELEASE

20

COUNT RECORDS (with a group)

52 + 20

DELETE

24

DELETE RECORD

16

ELSE

16 + body of the clause

ELSEIF

16 + body of the clause END

END

4

Function call

16 + argument evaluation

FIND (with at least one direct condition)

64 + 16

FIND (with inverted condition)

64 + 36

FIND ALL RECORDS (no qualification)

64

FIND ALL RECORDS (with record security and group)

64 + 52 + 20

FIND ALL RECORDS (with record security)

64 + 52

FIND ALL VALUES (FRV field)

74

FIND ALL VALUES (ORDERED field)

32

FOR EACH RECORD

24 + body of the loop

FOR EACH VALUE OF (with IN ORDER, a group)

88 + body of the loop + 68 + 24

GREATER THAN

20

IDENTIFY

16

IF

32

IF (with operator)

32 + 16

Index loop

40 + expression evaluation + body of the loop

IN RANGE FROM and TO, BETWEEN

28

INSERT

24

MODIFY

16

NOTE

20

ON

16 + included statements

OPEN

20

OPEN PROCESS

20

OR

16

PAUSE

16

POSITION

20

PREPARE IMAGE

8

PREPARE MENU

8

PREPARE SCREEN

8

PRINT

16 for each term

PRINT (a field)

16 + 20

PRINT MENU

16

PRINT SCREEN

16

READ IMAGE

16

READ MENU

20

READ SCREEN

20

RECEIVE

16

RELEASE RECORD

20

RELEASE POSITION

8

REPEAT

16 + evaluation of WHILE clause

REREAD SCREEN

20

RETRY

16

RETURN

16

SEND

16

SIGNAL PROCESS

12

STOP (automatically generated)

16

STORE RECORD (with each field)

16 + 16

TAB

4

TAG

16

THEN

16 + body of the clause

TRANSFER

16

WITH

0

WRITE IMAGE

12

User, field, group security table (RTBL)

RTBL contains a user's privileges, class, field-level security (FLS) levels for each open file, and classes for open, permanent groups.

The size of RTBL is calculated from the formula:

(((NGROUPS + 11) * (NFILES + 1)) + (NRMTFILE + 1))dwr

For Parallel Query Option/204 client nodes, the required size of RTBL increases by (NRMTFILE=1) bytes.

Character string table (STBL)

STBL stores all character strings in counted form, with a 1-byte length preceding the string itself. The following considerations apply to space usage:

  • Space used to store intermediate results during an arithmetic expression evaluation is freed when the evaluation is completed.
  • Space used by FOR EACH OCCURRENCE, FOR EACH RECORD, and FOR EACH VALUE loops is reused until the end of the loop.
  • The last value of a Note statement remains in STBL.
  • FIXED or FLOAT %variable array uses eight bytes for each element.

When the %variable is reassigned, the STBL space is reused.

  • The FIELD SAVE option requires 10 bytes plus the maximum length of the string plus one byte for each element.

NO FIELD SAVE does not reserve the extra 10 bytes and results in significant saving when using a multidimensional array.

  • MORE releases all but the space required by %variables and arrays.
  • If a user is using the pattern matcher in an IF statement with an IMAGE or SCREEN ITEM as the pattern and an IMAGE or SCREEN ITEM as the comparison string, then the value of the pattern is stored in STBL. The space is freed after each comparison, so the maximum increase is equal to the size of the largest pattern in a request that meets the above criteria.

When the Inverted File Access Method (IFAM) is used

  • IFDVAL and IFFILE store the value string from the input parameter in STBL.
  • Strings enclosed in quotation marks or values specified for IFFIND that are stored in STBL are the same types as those stored in STBL by SOUL.
  • EDIT form of IFPUT uses STBL for each value. Space from previous values is reused.
  • FLOD stores translation table values and CASE statement comparison values in STBL.

Parallel Query Option/204 STBL requirements

STBL requires an increase for Parallel Query Option/204 $functions used in remote file or scattered context and for SOUL pattern matching processes

  • Using one of the following $functions in remote context requires 12 additional bytes in STBL:

    $Curfile

    $RlcFile

    $Update

    $UpdFile

  • If you are using the pattern matcher in any SOUL statement, the full size of the pattern is used and stored in STBL. The space is freed after each statement block using the pattern matcher, for example, FIND or FOR.

Temporary work page list table (TTBL)

TTBL entries keep track of scratch file (CCATEMP) pages. The entries are four bytes each and used by the Editor and FIND (or IFFIND) evaluator routines.

  • The Editor uses scratch pages to make a private copy of the procedure being edited.
  • FIND uses scratch pages as work space for evaluating Boolean expressions.

The number of TTBL entries required by FIND depends on the complexity of the Boolean expression. Entries are released at the end of the FIND statement evaluation.

Compiler variable table (VTBL)

VTBL stores values of simple variable types and refers to the String Table (STBL) in cases of more complex variables. The variables are local (%variables), internal, screen, and image variables.

Many SOUL statements and some constructs cause one or more compiler variables to be allocated in VTBL.

Entries in VTBL vary in size. The "Sample VTBL entries" table shows typical values. For more information, refer to VTBL (compiler variable table).

Sample VTBL entries

SOUL statement

VTBL entry size (bytes)

% variable:

 

FIXED

16

FLOAT

12

STRING

24

array

20

array element reference

12

CALL

4 + (4 * arguments)

CALL statement evaluation

28

COUNT

8

FIND (basic entry, single file)

8

workspace

20 + 20 + 28

fieldname = value pair

20 or more

retrieval

28

Ordered Index retrieval

4 + 4 per segment

FIND (basic entry, group)

8 + (8 * files)

FOR EACH RECORD (no IN ORDER clause)

16

FOR EACH VALUE (with FROM, TO, LIKE, ORDERED

48

FOR EACH RECORD IN ORDER BY (with ORDERED field)

48

FOR EACH VALUE (with ORDERED field)

40

Function (SOUL)

4 + (4 * arguments)

Lists:

 

single files

8

groups

8 + (8 * files)

Menu definition

48

Numeric expression

16

ON

28

Related image set

12 + 4 for every 256 items

Screen definition

68 + 4 for each panel

Screen entry (one panel)

72

SORT

 

each referenced field

20

each sort key

32

String expression

8

Subroutine declaration

16 + parameters

Effect of the MORE parameter on VTBL

The MORE parameter deletes all VTBL entries except %variables, list entries, images, menus, screens, labeled SORT and sort key entries, labeled FIND entries, and labeled COUNT entries.

IFAM and FLOD considerations

The following considerations apply to VTBL:

IFAM requires VTBL space for IFFIND, IFCOUNT, and lists (matching SOUL requirements), and a few extra bytes for temporary work space.

FLOD needs a minimal amount of VTBL space if the L statement (locate loop) is used.

VTBL requirement for Application Subsystem users

The size of VTBL for Application Subsystem users loading saved compilations does not have to be as large as the compiling user's VTBL. As long as the loading user's VTBL size accommodates the request's VTBL requirement, the loading user can have a smaller VTBL than the compiling user.

Procedure security table (XTBL)

XTBL contains procedure security information for each file and permanent group member that a user has open. The size of each file entry depends on the number of user-class/procedure-class mappings defined in the file for the user's class.