Download User Manual for OpenVMS Systems

Transcript
Table 7–3 (Cont.) Setting of RMS Record Access Block Fields by a Call to the OPEN
Procedure
Field
1
RAB$W_USZ
1 After
Name
OPEN Parameters and Value
User record area size
Set to size of record area; for files other
than TEXT, the size is equal to the size of
the component type; for TEXT files, the size
is equal to the value of RECORD_LENGTH;
otherwise, 255.
the call to OPEN, this field must contain the same value it had before the call.
Table 7–4 presents the status of RMS XAB fields when you call the OPEN
procedure. If a field is not included in the following table, it is initialized to
zero.
Table 7–4 Setting of Extended Attribute Block Fields by a Call to the OPEN Procedure
Field
Name
PASCAL OPEN Keyword and Value
XAB$B_DTP
Data type of key
Set to data type of key
XAB$B_FLG
Key option flags
XAB$V_CHG
Changes allowed
0 if key is 0, else 1
XAB$V_DUP
Duplicates allowed
0 if key is 0, else 1
XAB$W_POS0
Key position
Position of key in indexed file
XAB$B_REF
Key of reference
Primary key is 0, first alternate key is 1,
second alternate key is 2, and so on
XAB$B_SIZ0
Key size
Size of key
Table 7–5 presents the status of RMS Name Block fields when you call
the OPEN procedure. If a field is not included in the following table, it is
initialized to zero.
Table 7–5 Setting of Name Block Fields by a Call to the OPEN Procedure
Field
Name
OPEN Keyword and Value
NAM$L_ESA1
Expanded string area
Address of RTL buffer
1 These
fields are only valid during execution of user-action functions; Compaq Pascal places 0 in these fields
after the call to OPEN.
(continued on next page)
Input and Output Processing 7–9