11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Caché</strong> <strong>ObjectScript</strong> CommandsHANGSuspends execution for a specified number of seconds.HANG:pc hangargH:pc hangargwhere hangarg can be:hangtime,...ArgumentspchangtimeOptional — A postconditional expression.The amount of time to wait, in seconds.DescriptionHANG suspends the executing routine for the specified time period. If there are multiplearguments, <strong>Caché</strong> suspends execution for the sum of the arguments.HANG has the same minimum abbreviation (H) as the HALT command. HANG is distinguishedby its required hangtime argument.ArgumentspcAn optional postconditional expression. <strong>Caché</strong> executes the HANG command if the postconditionalexpression is true (evaluates to a non-zero numeric value). <strong>Caché</strong> does not executethe command if the postconditional expression is false (evaluates to zero). For further details,refer to Command Postconditional Expressions in Using <strong>Caché</strong> <strong>ObjectScript</strong>.hangtimeThe amount of time to wait, in seconds. This time can be expressed as any numeric expression.You can specify whole seconds as an integer, or fractional seconds using a decimal value.You can use exponentiation (**), arithmetic expressions, and other numeric operators. Youcan set hangtime to 0 (zero), in which case no hang is performed. Setting hangtime to a negativenumber is the same as setting it to 0.52 <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!