View previous topic :: View next topic |
Author |
Message |
vardhan_tulasi Beginner
Joined: 14 Aug 2007 Posts: 2 Topics: 1
|
Posted: Thu Nov 01, 2007 11:40 am Post subject: Data from XML format to ASCII format |
|
|
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 |
|
 |
sriramla Beginner
Joined: 22 Feb 2003 Posts: 74 Topics: 1
|
Posted: Thu Nov 01, 2007 11:55 am Post subject: |
|
|
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 |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Thu Nov 01, 2007 1:34 pm Post subject: |
|
|
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 |
|
 |
vardhan_tulasi Beginner
Joined: 14 Aug 2007 Posts: 2 Topics: 1
|
Posted: Wed Nov 07, 2007 10:36 am Post subject: |
|
|
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 |
|
 |
sriramla Beginner
Joined: 22 Feb 2003 Posts: 74 Topics: 1
|
Posted: Wed Nov 07, 2007 2:00 pm Post subject: |
|
|
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 |
|
 |
|
|