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 Variables$DEVICEContains user-specified device status information.$DEVICEDescription$DEVICE can be used to record device status information. You can use the $ZUTIL(96,5)function to place a value in $DEVICE. By convention, this value should describe the outcomeof an I/O operation as a 3-piece string, in the form:standard_error,user_error,explanatory_textYou can also set $DEVICE using the SET command.By default, $DEVICE contains the null string.See Also• $ZUTIL(96,5) Set $DEVICE Special Variable function$ECODEContains the current error code string.$ECODE$ECDescriptionWhen an error occurs, <strong>Caché</strong> sets the $ECODE special variable to a comma-surroundedstring containing the error code corresponding to the error. For example, when a referenceis made to an undefined global variable, <strong>Caché</strong> sets the $ECODE special variable to thefollowing string:,M7,$ECODE can contain ANSI-standard M error codes, with the form M#, where # is an integer.For example, M6 and M7 are “undefined local variable” and “undefined global variable,”respectively. (M7 is issued for both globals and process-private globals.) For a complete list,see ANSI-Standard M Error Messages in the <strong>Caché</strong> Error <strong>Reference</strong>.420 <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!