11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Caché</strong> <strong>ObjectScript</strong> Special VariablesBit1314151617181920212224 &25Test$ZA\8192#2$ZA\16384#2$ZA\32768#2$ZA\65536#2$ZA\131072#2$ZA\262144#2$ZA\524288#2$ZA\1048576#2$ZA\2097152#2$ZA\4194304#2$ZA\16777216#4MeaningFor COM ports: DSR (Data Set Ready). A signal sent fromthe modem to its computer indicating that it is ready tooperate. For TCP devices: the device is currently in theConnected state talking to a remote host.Ring set if TRUE.Carrier detect set if TRUE.CE_BREAK COM port error state.CE_FRAME COM port error state.CE_IOE COM port error state.CE_OVERRUN COM port error state.CE_RXPARITY COM port error state.CE_TXFULL COM port error state.TXHOLD COM port error state. Set if any of the followingfields are true in the error mask returned byClearCommError(): fCtsHold, fDsrHold, fRlsdHold,fXoffHold, fXoffSent.<strong>Caché</strong> requested DTR (Data Terminal Ready) setting:0=DTR off. 1=DTR=on. 2=DTR handshaking. When set(1), indicates readiness to transmit and receive data.While many of the conditions that $ZA shows are errors, they do not interrupt the program'sflow by trapping to $ZTRAP. (A with breaks enabled traps to $ZTRAP.) Aprogram concerned with these errors must check $ZA after every READ.COM ports use bits 12 through 15, 24 and 25 to report the status of modem control pins. Thiscan be done regardless of whether <strong>Caché</strong> modem control checking is on or off for the port.A user can enable or disable $ZA error reporting for COM ports by setting the OPEN orUSE command portstate parameter (byte 8, to be specific). If error reporting is enabled, theport error state is reported in bits 16 through 22. For further details, see Terminal I/O in <strong>Caché</strong>I/O Device Guide.$ZA With Magnetic Tape I/OWith magnetic tape I/O, the bit fields in $ZA indicate errors and special conditions. <strong>Caché</strong>updates $ZA after each command that references the magnetic tape device.460 <strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!