XML files generation - COBOL or Java?

C/C++ and Java for MVS & zOS.
Previous topicNext topic

Topic Author
B Mkote
New Member
Posts: 6
Joined: Thu Mar 19, 2015 1:52 pm

XML files generation - COBOL or Java?

Post by B Mkote » Thu Jul 09, 2015 3:46 pm

Hi,

We have the need to produce an XML formatted file from what is now a sequential file produced by a COBOL program. I did some cursory search and with that it seems like either we can use a third party tool or can write a COBOL program with all the XML tags already in working storage reformat the file in to XML. Or can there be a way to use a Java app to read the generated file and produce the XML using Java tools and a Java parser?

But with these we are not sure what one should be choose. Asking client for a new tool is a tough preposition. The option with COBOL seems doable, but does not seem to be the most elegant of solutions. Solution with Java parser sounds interesting and appealing, but the question is, we need to make sure that anything that is run is standard, vanilla IBM stuff. What level of VSE (if any) supports Java natively? Someone here mentioned that VSE might not support this approach.

Anyone else have any other thoughts on what approach should we take to get done with it?




Topic Author
B Mkote
New Member
Posts: 6
Joined: Thu Mar 19, 2015 1:52 pm

Re: XML files generation - COBOL or Java?

Post by B Mkote » Fri Sep 04, 2015 2:24 pm

Anyone please?




nicc
Global Moderator
Global Moderator
Posts: 593
Joined: Wed Apr 23, 2014 8:45 pm

Re: XML files generation - COBOL or Java?

Post by nicc » Fri Sep 04, 2015 2:57 pm

Anyone please?
No. People answer of their own free will, on their own time, for free and depending on whether the topic interests them. Do not beg!

As to whether Java will run on your system - ask your sysprogs. It may not even be installed - and it runs un the USS side of the 'box'.

COBOL has XML capabilities builtin - use them.


Regards
Nic

User avatar

Robert Sample
Global Moderator
Global Moderator
Posts: 1375
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
Zodiac: Virgo

Re: XML files generation - COBOL or Java?

Post by Robert Sample » Fri Sep 04, 2015 5:54 pm

I don't know enough about VSE to provide an answer. However, your customer won't care about an "elegant" solution (as your post stated it). Your customer is concerned about getting something that is easy to maintain, works correctly, and fulfills their requirements. Whether that solution is in COBOL or JAVA or whatever won't matter (unless the language to use is one of the requirements).



Previous topicNext topic

Return to “C, C++ and Java for Mainframes.”