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> CommandsNotesAcquiring Ownership of a DeviceA process acquires ownership of a device with the OPEN command and makes it active withthe USE command. If the closed device is the active (that is, current) device, the default I/Odevice becomes the current device. (The default I/O device is established at log-in.) When aprocess is terminated (for example, after a HALT), all of its opened devices are automaticallyclosed and returned to the system.If the process's default device is closed, any subsequent output (such as error messages) tothat device causes the process to hang. In this case, you must explicitly re-open the defaultdevice.See Also• OPEN command• I/O Devices and Commands in <strong>Caché</strong> I/O Device GuideCONTINUEJumps to FOR, WHILE, or DO WHILE command and reexecutes test and loop.CONTINUE:pcArgumentpcOptional — A postconditional expression.DescriptionThe CONTINUE command is used within the code block following a FOR, WHILE, or DOWHILE command. CONTINUE causes execution to jump back to the FOR, WHILE, or DOWHILE command. The FOR, WHILE, or DO WHILE command evaluates its test condition,and, based on that evaluation, re-executes the code block loop. Thus, the CONTINUE commandhas exactly the same effect on execution as reaching the closing curly brace ( } ) of thecode block.CONTINUE takes no arguments (other than the postconditional). At least two blank spacesmust separate it from a command following it on the same line.22 <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!