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.

ZWRITEMainNEW $ESTACKSET $ZTRAP="OnErr"WRITE !,"$ZTRAP set to: ",$ZTRAPWRITE !,"Main $ESTACK= ",$ESTACK // 0WRITE !,"Main $ECODE= ",$ECODE," $ZERROR=",$ZERRORDO SubAWRITE !,"Returned from SubA" // not executedWRITE !,"MainReturn $ECODE= ",$ECODE," $ZERROR=",$ZERRORQUITSubAWRITE !,"SubA $ESTACK= ",$ESTACK // 1ZTRAPWRITE !,"SubA $ECODE= ",$ECODE," $ZERROR=",$ZERRORQUITOnErrWRITE !,"OnErr $ESTACK= ",$ESTACK // 0WRITE !,"OnErr $ECODE= ",$ECODE," $ZERROR=",$ZERRORQUITSee Also• $ZERROR special variable• $ZTRAP special variable• Error Handling in Using <strong>Caché</strong> <strong>ObjectScript</strong>ZWRITEDisplays variables.ZWRITE:pc variableZW:pc variableArgumentspcvariableOptional — A postconditional expression.Optional — Name of a variable to display, or a comma-separated listof variables to display.DescriptionThe ZWRITE command displays variables on the current device. The ZWRITE commandhas two forms:• Without an argument• With arguments<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 411

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!