ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » WMQI 2.1 - COBOL to XML?

Post new topic  Reply to topic
 WMQI 2.1 - COBOL to XML? « View previous topic :: View next topic » 
Author Message
Joharik
PostPosted: Tue Jun 04, 2002 9:23 pm    Post subject: WMQI 2.1 - COBOL to XML? Reply with quote

Novice

Joined: 13 Feb 2002
Posts: 10
Location: Kuala Lumpur Malaysia

Hi,

I'm new to WMQI. We going to start our project soon with WMQI 2.1 on OS390 platform. My question is, when we received the input from the application in COBOL format, how do we convert thos to XML format?

Appologize for asking those simple question.

TIA
Back to top
View user's profile Send private message Send e-mail
Yanghui
PostPosted: Wed Jun 05, 2002 2:49 am    Post subject: Reply with quote

Disciple

Joined: 08 May 2002
Posts: 151
Location: Dublin, Ireland

Hi,

You can add a XML physical format right after you create a new msgset, and then import COBOL COPYBOOK into it.

In Compute node, you can set up

"Properties"."MessageDomain" = "MRM";
"Properties"."MessageSet" = "......";
"Properties"."MessageType" = "......";
"Properties"."MessageFormat" = "XML";

Then, you should be able to generate XML without extra effort.

Hope it helps.

Regards
-Yanghui
Back to top
View user's profile Send private message Send e-mail
kirani
PostPosted: Wed Jun 05, 2002 8:03 am    Post subject: Re: WMQI 2.1 - COBOL to XML? Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Joharik wrote:
Hi,
My question is, when we received the input from the application in COBOL format, how do we convert thos to XML format?


You can do this by creating a messageset and adding two physical layers to it,
1. CWF
2. XML

After you import your COBOL copybook into Messageset WMQI will create Elements and Types for you. You will have to then model your input (COBOL) and output (XML) messages into MRM. Once your messages are modeled, you can write a simple message flow to transform from one format to another with very few lines of ESQL code.

If you don't want to model your XML message into MRM, then you don't have to add second wire format. In this case, you will have to write ESQL code to that creates XML output message from incoming Fixed Lenght message (COBOL) Message.

Working with Messages manual has some examples on this.

Regards,
_________________
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
View user's profile Send private message Visit poster's website
Joharik
PostPosted: Wed Jun 05, 2002 3:22 pm    Post subject: Reply with quote

Novice

Joined: 13 Feb 2002
Posts: 10
Location: Kuala Lumpur Malaysia

Thanx a lot.

Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » WMQI 2.1 - COBOL to XML?
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.