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

How to Handle XML tags in COBOL


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kiran_polnati
Warnings : 2

New User


Joined: 23 Jun 2005
Posts: 22

PostPosted: Mon Feb 05, 2007 10:18 am
Reply with quote

hi ,

i am dealing wiht MQ 's in my prgramme . Data comes over MQ my programe is to get the data from MQ using MQGET and store into the Working storage cobol varibales.

here is DATA in MQ is XML fromate like

<date>23453535</date>
<data1> // data1 is group Repetative nature

<data2>siss</data2>
<data3>2345</data3>
<data4> // data4 is the group Repetative nature
<data5>34434</data5>
<data6>sdfd </data6>

</data4>
</data1>


the data coming throught MQ in XML formate i wanted to unstring the data into COBOL varibales
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 Feb 05, 2007 10:27 am
Reply with quote

And you started a new thread because. . . . . icon_confused.gif
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Feb 05, 2007 12:57 pm
Reply with quote

Have you looked up XML parsing in the manuals? It is not the sort of process that can be "taught" here to somebody that has no prior knowledge of the subject. If you understand the basic concept from the manual, your more detailed questions can be answered here.
Back to top
View user's profile Send private message
acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Mon Feb 05, 2007 1:27 pm
Reply with quote

or use the XML PARSE (Cobol Enterprise 3.2 ?)...

Code:
 XML PARSE xml-document PROCESSING PROCEDURE xml-handler   
   ON EXCEPTION                                             
     display 'XML document error ' XML-CODE                 
   NOT ON EXCEPTION                                         
     display 'XML document successfully parsed'             
 END-XML                                                   
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top