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
 

 

How to read a MQ message using a Copybook thru File-manager

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

New User


Joined: 23 Feb 2007
Posts: 17
Location: NOIDA

PostPosted: Mon Jun 18, 2007 9:56 am    Post subject: How to read a MQ message using a Copybook thru File-manager
Reply with quote

Hi,

I've the following requirement:

-I've a message in a local queue.
-I want to read this message using a copybook by FIle-aid/File Manager.

I copied the message in a PS dataset and tried to read in File-manager but in vain.

yes i cld have wriiten a program to get the message from MQ to the PS and successfully read it (I guess).
But is there any other way?

Please let me know.

Thanks,
Pradip
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Jun 18, 2007 10:31 am    Post subject:
Reply with quote

Hello,

How did you do this?
Quote:
I copied the message in a PS dataset and tried to read in File-manager but in vain.


What kind of error did you get?

If you do a regular 3.4, what are the attributes of the ps you created?

The more complete info you post, but more help we might be.
Back to top
View user's profile Send private message
aqilis

New User


Joined: 23 Feb 2007
Posts: 17
Location: NOIDA

PostPosted: Mon Jun 18, 2007 11:10 am    Post subject: Re: How to read a MQ message using a Copybook thru File-mana
Reply with quote

Thanks Dick for responding.
Well , i did it through PQEdit using the 'Z' option.
Attached is the screen shot.


Thanks,
Pradip
[/img]
Back to top
View user's profile Send private message
aqilis

New User


Joined: 23 Feb 2007
Posts: 17
Location: NOIDA

PostPosted: Mon Jun 18, 2007 11:18 am    Post subject: Re: How to read a MQ message using a Copybook thru File-mana
Reply with quote

Sorry I'm unable to attach the screen shot.



File Search Tools Help
------------------------------------------------------------------------------
PQEdit - ERP.AR2004.NEWCUST
Command ===> Scroll ===> CSR

Cmds: I Ins R Rep F Fwd H HexEdit Msg Z ISPF Edit Msg
D Del G Go Hn HexEdit Col n Zn ISPF Edit Col n More:

1
Cmd Status Msg Data(1 - 60)
00001 R502R50217 602174
****************************************************************


Thanks
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Jun 18, 2007 6:01 pm    Post subject:
Reply with quote

Hello,

As i'm not familiar with PQEdit, i don't know if the info you posted is an error or just a reflection of what you told PQEdit to do.

If you answer this
Quote:
If you do a regular 3.4, what are the attributes of the ps you created?
it may help.

Yes, it would be trivial to run a bit of code to copy info from MQ to a PS. I'd guess 50 lines or so of which over 40 could be cloned. . .
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Tue Jun 19, 2007 9:27 am    Post subject:
Reply with quote

Have you created copybook for the exact MQ message format?
Back to top
View user's profile Send private message
aqilis

New User


Joined: 23 Feb 2007
Posts: 17
Location: NOIDA

PostPosted: Tue Jun 19, 2007 9:53 am    Post subject: Re: How to read a MQ message using a Copybook thru File-mana
Reply with quote

Hi,

yes , there is nothing wrong with the copybook being used.

But , I'm not sure of the format in which data get stored in a message.


This is how it looks when I open it PQEdit for editing:

EDIT ERP.AR2004.NEWCUST Columns 00001 00072
Command ===> Scroll ===> PAGE
****** ***************************** Top of Data ******************************
000001 R502R50217 602174 f* ?/
000002 R50
000003
000004
000005
000006
000007
000008
000009
000010 00{0000000000000000000000000000000000000000000000000000000000
000011
000012 0 WERNWC19204 A 000 000000
000013 000 TESTING TESTING CHEMS
000014
000015 e
000016 Phon ALASK
000017 Quote File I
000018


From here I did a CUT/PASTE to a sequential dataset and opened in File-manager.
The record length for the sequential dataset , i'm using is = (The number of lines i get when i open the message in edit panel ) * 72.

Finally I've to settle down for writing a small prog to GET the message into the sequential dataset .
I'm sure this will work.

Thanks,
Pradip.
Back to top
View user's profile Send private message
prem_ibm

New User


Joined: 15 Sep 2007
Posts: 31
Location: Chennai

PostPosted: Mon Jun 09, 2008 2:35 pm    Post subject: Reply to: How to read a MQ message using a Copybook thru Fil
Reply with quote

Hi Pareep,
If u want to map the input que massage with the Copy book through File-aid or file manager then first copy the Input queue message in to the PS by submitting the jcl then u will be able to map the message fields with copy book provided that message should not be in the XML other format.

Hope this will help .Thaks
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 Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 5 Wed Jul 26, 2017 7:35 pm
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am


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