The MQGET call (browse or destructive read) returns the actual message length. This would require far less overhead (mainframe and mid-range) than recursive MQGET calls and managing application buffer ...
Is there a way (on Z/os [CICS]) to determine the size of a message without having to overhead of actually reading the message? I know you can peek at a message using the MQOO_INQUIRE parameter. Howe ...