Guardian Programming Reference Summary for pTAL and TAL

Procedure Calls Summary (D-F)
Guardian Programming Reference Summary for pTAL and TAL522631-001
5-8
DEFINEREADATTR
Obtains the current value of an attribute in a DEFINE in the calling process’s context or
in the working set.
error := DEFINEREADATTR ( [ define-name ]
,attribute-name
,[ cursor ]
,value-buf
,value-buf-len
,value-len
,[ read-mode ]
,[ info-word ] );
error, INT returned value
0Successful.
2049 A syntax error occurred in name.
2051 DEFINE not found.
2052 An error occurred when placing PFS in use.
2054 Bounds error on parameter.
2055 Attribute not supported.
2061 No more attributes (see “Considerations”).
2066 Missing parameter.
define-name, STRING .EXT:ref:24 input
attribute-name, STRING .EXT:ref:16 input, output
cursor, INT:ref:1 input, output
value-buf, STRING .EXT:ref:* output
value-buf-len, INT:value input
value-len, INT:ref:1 output
read-mode, INT:value input
0 Search the present attributes only.
1 Search the present plus required attributes that are not present.
2 Search the present plus the required and optional attributes that are not present.