Guardian Programming Reference Summary for pTAL and TAL
SETMODE Operations
Guardian Programming Reference Summary for pTAL and TAL—522631-001
11-25
144 Sets LU character set and double-byte character code
Theparam1 parameter must be omitted for function 144.
Theparam2 parameter must be omitted for function 144.
last-params [0].<0> = 0 no translation
=1SNAX does EBCDIC/ASCII translation
.<1:7>=IBM device type
1=IBM-3277
2=not 3277 or 3276
3=IBM-3276
.<8:15>=value of LU attribute ALLOWEDMIX
[1].<0:7>=LU character set
0=ASCII (USASCII)
9=EBCDIC (IBM EBCDIC)
14 =KATAKANA EBCDIC
.<8:15>=double-byte character set
0=No DBCS
2=IBMKANJI
3=IBMMIXED
5=JEFKANJI
146 Queue waiters for disk file write
param1
= 0 disables the effect of param1
= 1 causes CONTROL 27 requests to be queued and completed one at a time;
otherwise all are completed by the first write.
The param2 parameter is not used with function 146.
SETMODE 146 remains in effect until the file has no more openers. When
there are no more openers, the effect of SETMODE 146 is lost and the next
open must repeat this SETMODE function.
149 Disk: Alternate key insertion locking
param1
= 0 no automatic locking (default): locking and unlocking during insertion is
not automatically performed.
= 1 automatic locking: writes of record with alternate keys are locked at the
beginning of insertion and unlocked after all associated alternate key record
insertions are complete. This prevents interference from programs attempting
concurrent update of the same record.
The param2 parameter must be zero if supplied.
SETMODE 149 is not valid (nor needed) for audited files. For process pairs,
the mode needs to be set in the backup by CHECKSETMODE. If the file is a
key-sequenced file using the generic locks feature, the lock established by
automatic locking might not be released automatically at the end of the write
processing.
<function> Parameters and Effect