Terminal Syntax On How to see the contents of a message

I have a batch and would like to see the records in it on a terminal

First will use .%OpenId(Id) then will want to get the first record something around GetAT(1) with this I get the object reference but will actual need to see the data any help

Answers

You can use zwrite to display object contents to a terminal:

set msg = ##class(class).%OpenId(Id)
zwrite msg
set obj = msg.GetAt(1)
zwrite obj