MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Data from XML format to ASCII format

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
vardhan_tulasi
Beginner


Joined: 14 Aug 2007
Posts: 2
Topics: 1

PostPosted: Thu Nov 01, 2007 11:40 am    Post subject: Data from XML format to ASCII format Reply with quote

W.R.T Mainframes is any tool which translates data from XML format to ASCII format where mainfrme languages(like COBOL) can understand for further processing. If no tool availble how the data can be processed with COBOL?
Back to top
View user's profile Send private message
sriramla
Beginner


Joined: 22 Feb 2003
Posts: 74
Topics: 1

PostPosted: Thu Nov 01, 2007 11:55 am    Post subject: Reply with quote

To make it clear, the "XML format" as mentioned in your post is nothing but a text file having data surrounded by XML tags. Its not a different 'format' like ASCII or EBCDIC. You can open the XML file in PC using notepad or any text editor to read the contents.

Coming to XML processing, COBOL supports XML Paring. Check the manuals page of this link for more info on XML PARSE. You can search this board for XML PARSE verb of COBOL for examples.
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Thu Nov 01, 2007 1:34 pm    Post subject: Reply with quote

Just to further point out that on the mainframe your cobol program is more likely to be seeing its data encoded in EBCDIC not ASCII
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
vardhan_tulasi
Beginner


Joined: 14 Aug 2007
Posts: 2
Topics: 1

PostPosted: Wed Nov 07, 2007 10:36 am    Post subject: Reply with quote

Hi Sriramla,

I can see the XML data file and DTD which is definition of the XML Data file, my question is to process the XML data file thru COBOL code. XML file contains different attributes and elements with XML tags, let us say master and detail records. The data need to be read in the sequece to process.
Saw the manuals talking about Flat file to XML data file generation and poping exceptional handling, need vice versa. Give your thoughts on the same please.
Back to top
View user's profile Send private message
sriramla
Beginner


Joined: 22 Feb 2003
Posts: 74
Topics: 1

PostPosted: Wed Nov 07, 2007 2:00 pm    Post subject: Reply with quote

Have you seen the XML PARSE command of COBOL? I guess thats what you are looking for when you say "process the XML data file thru COBOL code".
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group