Table A (File architecture): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 20: Line 20:
=== Non [[FILEORG parameter|FILEORG]] x'100' Files ===
=== Non [[FILEORG parameter|FILEORG]] x'100' Files ===


The maximum number of fields (the sum of [[ASTRPPG parameter|ASTRPPG]] * ) in any Model 204 file is 4000.  
The maximum number of fields (the sum of [[ASTRPPG parameter|ASTRPPG]] * [[ATRPG parameter|ATRPG]]) in any Model 204 file is 4000.  


Even when the product of the above is 4000, this number may not actually be reached because of wasted entries (where ASTRPPG is defined too large) or due to vagaries of the hashing algorithm.
Even when the product of the above is 4000 or less, this number may not actually be reached because of wasted entries (where ASTRPPG is defined too large, you can not fit the full number on any page) or due to vagaries of the hashing algorithm.




Line 30: Line 30:
With the introduction of X'100'files (in Model 204 V7R5) the maximum number of fields ([[ASTRPPG parameter|ASTRPPG]] * [[ATRPG parameter|ATRPG]]) has been increased to 32000. In order to support this increase, as well as the additional attributes. the field code has been increased from 2 to three bytes.
With the introduction of X'100'files (in Model 204 V7R5) the maximum number of fields ([[ASTRPPG parameter|ASTRPPG]] * [[ATRPG parameter|ATRPG]]) has been increased to 32000. In order to support this increase, as well as the additional attributes. the field code has been increased from 2 to three bytes.


Where the maximum number of fields exceeds 4000, no fields may be defined as [[KEY Field Attribute|KEY]] or [[NUMERIC RANGE Field Attribute|NUMERIC RANGE]].  
Where the maximum number of fields exceeds 4000, no fields may be defined as [[KEY Attribute|KEY]] or [[NUMERIC RANGE Attribute|NUMERIC RANGE]].  




Line 36: Line 36:
== Many and Few Valued Pages ==
== Many and Few Valued Pages ==


If a field has the [[CODED field attribute|CODED]] or [[FOR EACH VALUE field attibute|FRV]] attribute, a complete list of the values that the field has ever had (since it was last created or reorganized) is held in either FEW-VALUED or MANY-VALUED pages in Table A (with the latter the default).
If a field has the [[CODED attribute|CODED]] or [[FOR EACH VALUE attibute|FRV]] attribute, a complete list of the values that the field has ever had (since it was last created or reorganized) is held in either FEW-VALUED or MANY-VALUED pages in Table A (with the latter the default).


Both of these sets of pages should be kept very small.  
Both of these sets of pages should be kept very small.  

Revision as of 00:59, 4 April 2013

Table A contains three structures:

A dictionary of the fieldgroup / field names and their attributes.

Some attributes (notably 'CODED') require lists of values to be maintained. These lists are stored either in the FEW-VALUED or MANY-VALUED structures.

Table A usually is small in relation to the rest of the file.

Internal File Dictionary

Defined by the ATRPG.

The internal file dictionary is a hashed file where each page contains up to ASTRPPG field or field group definitions.

Each entry contains the field code (the representation of the field as physically used in records); the field name; and the attributes as assigned by the DEFINE FIELD command (or by a redefinition).


Non FILEORG x'100' Files

The maximum number of fields (the sum of ASTRPPG * ATRPG) in any Model 204 file is 4000.

Even when the product of the above is 4000 or less, this number may not actually be reached because of wasted entries (where ASTRPPG is defined too large, you can not fit the full number on any page) or due to vagaries of the hashing algorithm.


FILEORG x'100' Files

With the introduction of X'100'files (in Model 204 V7R5) the maximum number of fields (ASTRPPG * ATRPG) has been increased to 32000. In order to support this increase, as well as the additional attributes. the field code has been increased from 2 to three bytes.

Where the maximum number of fields exceeds 4000, no fields may be defined as KEY or NUMERIC RANGE.


Many and Few Valued Pages

If a field has the CODED or FRV attribute, a complete list of the values that the field has ever had (since it was last created or reorganized) is held in either FEW-VALUED or MANY-VALUED pages in Table A (with the latter the default).

Both of these sets of pages should be kept very small.