View previous topic :: View next topic
|
Author |
Message |
aqilis
New User
Joined: 23 Feb 2007 Posts: 17 Location: NOIDA
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
aqilis
New User
Joined: 23 Feb 2007 Posts: 17 Location: NOIDA
|
|
|
|
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 |
|
|
aqilis
New User
Joined: 23 Feb 2007 Posts: 17 Location: NOIDA
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
Have you created copybook for the exact MQ message format? |
|
Back to top |
|
|
aqilis
New User
Joined: 23 Feb 2007 Posts: 17 Location: NOIDA
|
|
|
|
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 |
|
|
prem_ibm
New User
Joined: 15 Sep 2007 Posts: 31 Location: Chennai
|
|
|
|
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 |
|
|
|