I tried the simpler getoptions from your previous message and that seemed to work. I am not sure if removing the "MQGMO_ACCEPT_TRUNCATED_MSG" will create another problem. It may only have been require ...
I appreciate your inputs.
I checked my input against the code jefflowrey sent me. And I seem to be loading the unlimited wait options correctly, even if they are different.
Regarding using the cli ...
I have a perl code MQGET script that does not do an unlimited wait, as I require.... The code I am using is below. It works fine, except that it falls through to the next statement if the queue is emp ...