XML files generation - COBOL or Java?

C/C++ and Java for MVS & zOS.
Post Reply
B Mkote
New Member
Posts: 6
Joined: Thu Mar 19, 2015 1:52 pm

XML files generation - COBOL or Java?

Post by B Mkote »

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?
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 »

Anyone please?
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: XML files generation - COBOL or Java?

Post by nicc »

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: 1891
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: XML files generation - COBOL or Java?

Post by Robert Sample »

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).
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

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