IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

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


IBM Mainframe Forums -> Java & MQSeries
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Mon Jun 18, 2007 10:31 am
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
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
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

Moderator Emeritus


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

PostPosted: Mon Jun 18, 2007 6:01 pm
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 0
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Error to read log with rexx CLIST & REXX 11
Search our Forums:

Back to Top