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.

Routine, Debugging, and Other CommandsArgumentspc<strong>Caché</strong> executes the ZZDUMP command if the postconditional expression is true (evaluatesto a non-zero numeric value). <strong>Caché</strong> does not execute the command if the postconditionalexpression is false (evaluates to zero). For further details, refer to Command PostconditionalExpressions in Using <strong>Caché</strong> <strong>ObjectScript</strong>.expressionYou can specify expression as a numeric, a string literal, a list, or a variable that resolves toone of these. You can specify a single expression, or a comma-separated list of expressions.Specifying a comma-separated list of expressions is parsed as issuing a separate ZZDUMPcommand for each expression.ExamplesThe following example shows ZZDUMP returning hex dumps for two single-character stringvariables. Note that each comma-separated expression is treated as a separate invocation ofZZDUMP:SET x="A"SET y="B"ZZDUMP x,y0000: 41 A0000: 42 BThe following example shows ZZDUMP returning a hex dump for a string variable too longfor a single dump line. Note that the position for the second dump line (0010:) is in hexadecimal:SET z="ABCDEFGHIJKLMNOPQRSTUVWXYZ"ZZDUMP z0000: 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 ABCDEFGHIJKLMNOP0010: 51 52 53 54 55 56 57 58 59 5A QRSTUVWXYZThe following example shows ZZDUMP returning hex dumps for three variables. Note thatno hex dump (not even a blank line) is returned for a null string variable. Also note that anumber is converted to canonical form (leading and trailing zeros and plus sign removed); astring containing a number is not converted to canonical form:SET x=+007SET y=""SET z="+007"ZZDUMP x,y,z416 <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!