I have a cics porgram which reads a message from a queue. Sometimes the message length if more than 32767 bytes. So please give me asolution to handle the above situation in cics. Tried using GETMAIN but the messgae lenght is exceeding.
You can do a GETMAIN using the FLENGTH option where the length variable is a fullword (4 bytes).
By the way, the maximum length of storage that can be acquired using LENGTH is 65520 bytes and 1,073,741,824 bytes for FLENGTH.