1. set tSC=...
do $SYSTEM.Status.DisplayError(tSC)
2. set tSC=...
zwrite tSC
3. An alternative?
Is there a meaningful difference between the two? Should one be used over the other for any reason? Should something else be used?
InterSystems ObjectScript is a scripting language to operate with data using any data model of InterSystems Data Platform (Objects, Relational, Key-Value, Document, Globals) and to develop business logic for serverside applications on InterSystems Data Platform.