Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to Handle XML tags in COBOL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: How to Handle XML tags in COBOL
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

Site Director


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

PostPosted: Mon Feb 05, 2007 10:27 am    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Mon Feb 05, 2007 12:57 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts COBOL Programming Sandpit? jodrisco COBOL Programming 6 Wed Apr 12, 2017 3:47 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us