Author |
Message
|
vishal |
Posted: Fri Mar 19, 2004 4:10 pm Post subject: Importing cobol copy books |
|
|
 Novice
Joined: 01 Feb 2004 Posts: 13
|
I was trying to Import the cobol copy book layout to message set...But couldn't get all the fields in the cobol copy book.I am using WMQI v 2.1.
I checked it couple of times if the allignmnet of the colums ..Evrything looked perfect and similar to the previous cobol copy books, which were imported successfully...
Any suggestions or help would be appreciated..
Thanks in advance |
|
Back to top |
|
 |
kirani |
Posted: Fri Mar 19, 2004 5:29 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Goto your <wmqi_install>\log directory on the config mgr server. There should be a report/log file generated for your import, which will be named after your copybook file name. Look for any errors into that file. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
waugh |
Posted: Mon Mar 22, 2004 6:19 pm Post subject: |
|
|
 Master
Joined: 19 Feb 2004 Posts: 225
|
check the spaces and alignment, like compound element should have 9 spaces and 01 as code, child elements should have 03 as code and 11 spaces.. check the log for errors after import is done...
Hope that helps
Waugh |
|
Back to top |
|
 |
kirani |
Posted: Mon Mar 22, 2004 11:45 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
For a COBOL copybook, you can have only one compound element at 01 level. All child elements should have higher level number than it's parent element. I don't think your elements needs to be aligned, i.e. your elements should have exactly 11 spaces and so on.
Make sure you followed "COBOL standards" when creating this copybook. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
vishal |
Posted: Wed Mar 24, 2004 5:11 pm Post subject: |
|
|
 Novice
Joined: 01 Feb 2004 Posts: 13
|
Thanks,
That really worked ....
I have a task to convert XML message to MRM. I am using RFH UTIL for PUT and GET messages.The message has been successfully processed and got commuted to the Output Queue. Here is the problem..
In the RFH util in the data tab I checked the option cobol and showed the path for the cobolcopy book file. But to my surprise I got just the Copybook displayed with a message that says,
Cobol copy book size is zero and the message data length doesn't match the cobol copybook.
Am I missing something here.I am a novice to RFHUTIL...My assumption is that the Copybook should be displayed with the values assigned to each field.When I checked the message in character..I can see the assigned values...Can any one advice on this..Do u guys think I need to take care of any CCSID in the coding or in the options of setting the CWF.
THANKS IN ADVANCE... |
|
Back to top |
|
 |
waugh |
Posted: Thu Mar 25, 2004 5:46 am Post subject: |
|
|
 Master
Joined: 19 Feb 2004 Posts: 225
|
Vishal,
you will only see fixed length string in your output queue, so you would see only data with padded characters. until you are getting message on output queue thats fine. You can forget about RFHUtil.
waugh |
|
Back to top |
|
 |
waugh |
Posted: Thu Mar 25, 2004 8:10 am Post subject: |
|
|
 Master
Joined: 19 Feb 2004 Posts: 225
|
vishal,
ignore my last message. I got ur question wrong.
how can you tell that your message transformed correctly?
can you see it in fixed length format in MQ Explorer? |
|
Back to top |
|
 |
|