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> CommandsOPENAcquires ownership of a specified device or file for input/output operations.OPEN:pc device:(parameters):timeout:"mnespace",...O:pc device:(parameters):timeout:"mnespace",...ArgumentspcdeviceparameterstimeoutmnespaceOptional — A postconditional expression.The device to be opened, specified by a device ID or a device alias.A device ID can be an integer (a device number), a device name,or the pathname of a sequential file. If a string, it must be enclosedwith quotation marks.Optional — The list of parameters used to set device characteristics.The parameter list is enclosed in parentheses, and the parametersin the list are separated by colons. Parameters can either bepositional (specified in a fixed order in the parameter list) or keyword(specified in any order). A mix of positional and keyword parametersis permitted. The individual parameters and their positions andkeywords are highly device-dependent.Optional — The number of seconds to wait for the request tosucceed, specified as an integer.Optional — The name of the mnemonic space that contains thecontrol mnemonics to use with this device, specified as a quotedstring.DescriptionUse the OPEN command to acquire ownership of a specified device (or devices) forinput/output operations. An OPEN retains ownership of the device until ownership is releasedwith the CLOSE command.An OPEN command can be used to open multiple devices by using a comma to separatedthe specifications for each device. Within the specification of a device, its arguments areseparated by using colons (:). If an argument is omitted, the positional colon must be specified;however, trailing colons are not required.100 <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!