Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Converting MQRFH2 to a readable format in z/OS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
View previous topic :: :: View next topic  
Author Message
Midhun Mohandas

New User


Joined: 03 Mar 2014
Posts: 24
Location: India

PostPosted: Thu May 15, 2014 10:10 am    Post subject: Converting MQRFH2 to a readable format in z/OS
Reply with quote

Hi,

I am sending a message from an application running in windows to z/OS queue. The format of message being send is MQRFH2.

I am receiving the message in z/OS queue but it is getting an abend 2110 (083E) (RC2110): MQRC_FORMAT_ERROR.

The CCSID and Encoding of the message when I am sending it are

The libraries that I have added in cobol program for get message are CMQODV,CMQMDV,CMQGMOV,CMQRFH2,CMQV.

the values that I gave for messagedesc in cobol PROGRAM are

MOVE MQGMO-VERSION-2 TO MQGMO-VERSION
MOVE MQMI-NONE TO MQMD-MSGID
MOVE MQCI-NONE TO MQMD-CORRELID
MOVE MQENC-NATIVE TO MQMD-ENCODING
MOVE MQCCSI-Q-MGR TO MQMD-CODEDCHARSETID
MOVE MQFMT-RF-HEADER-2 to MQRFH-FORMAT.

I am calling 'mqget' in following way

CALL 'MQGET' USING W03-HCONN
W03-HOBJ
MQMD
MQGMO
W00-MSGLENGTH
W00-MSGBUFFER
W00-DATALENGTH
W03-COMPCODE
W03-REASON

*************************************************************
During sending, if I am using the 'FORCED MQRFH2' as message properties, in the application sending message, I am not getting the abend 2110 but I am getting junk values as messages.

Please tell me if I need to change any of these values, so that I will be able to read the messages send in MQRFH2 format will be readable in z/OS.
Back to top
View user's profile Send private message

Midhun Mohandas

New User


Joined: 03 Mar 2014
Posts: 24
Location: India

PostPosted: Thu May 15, 2014 10:32 am    Post subject:
Reply with quote

And I would like to add one more thing that I don't think it is a ASCII to EBCIDIC conversion problem, because when I put this messages as 'MQSTR' format from the same application it is displaying perfectly in z/OS. So I think problem is with MQRFH2 format.

Can someone tell what is the use of CMQRFH2V copy files in cobol ?
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2433
Location: Netherlands, Amstelveen

PostPosted: Thu May 15, 2014 11:04 am    Post subject: Reply to: Converting MQRFH2 to a readable format in z/OS
Reply with quote

"junk values"? Could that be Unicode strings?

https://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=%2Fcom.ibm.mq.csqzak.doc%2Ffr14560_.htm
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1695
Location: NY,USA

PostPosted: Wed May 21, 2014 4:19 am    Post subject:
Reply with quote

http://www-01.ibm.com/support/docview.wss?uid=swg1PK78642

http://www.ibmmainframes.com/viewtopic.php?t=62735&highlight=
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 11 Tue May 16, 2017 2:20 pm
No new posts Format record to remove Leading zeroes Learncoholic DFSORT/ICETOOL 14 Wed Apr 05, 2017 2:43 pm
No new posts How to pick only YYMMDD from DATE1P (... atulbaviskar SYNCSORT 7 Wed Mar 22, 2017 11:39 am
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts Converting decimal to numeric using I... Balaryan DFSORT/ICETOOL 4 Thu Feb 02, 2017 11:27 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us