Computing Record Length - IBM 1130 User Manual

Computing system
Hide thumbs Also See for 1130:
Table of Contents

Advertisement

COMPUTING RECORD LENGTH
Once you have decided what data will be included in
your disk record, you may easily calculate the
length of the record by listing the fields in the record,
totalling the number of real fields (called R), the
number of integer fields (called I), and using the
table below to determine the number of words:
*EXTENDED
No
PRECISION
Precision
Card Used
Card Used
*ONE
WORD
INTEGERS
WORDS
=
WORDS
=
Card Used
(3xR)
+I
(2xR)
+I
No
Integers
WORDS
=
WORDS
=
Card Used
(3xR) +(3xI)
(2xR) +(2xI)
Section
Subsections
Page
80
50
I
00
01
In the case of fields comprising the items of an
array (often alphameric data), the number of items
is the size of the array.
For example,
if
you have
a field conSisting of a 16-character name, placed
two characters per word
(A2
format) in the array
NAME, this will count as eight items rather than
one, when you are calculating 1.
The task is simplified by the fact that *ONE
WORD INTEGERS should always be used, reducing
all integers to one word per field.
Except in very
unusual cases, you should compile all of your pro-
grams using the *ONE WORD INTEGERS control
card.

Advertisement

Table of Contents
loading

Table of Contents