Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
COBOL--> XML and XML--> COBOL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
bhushanhundikar

New User


Joined: 05 Jan 2007
Posts: 2
Location: USA

PostPosted: Fri May 13, 2011 8:48 am    Post subject: COBOL--> XML and XML--> COBOL
Reply with quote

Hi,

I need to convert data from flat files into a XML format. The XSD (XML schema) file has been provided. The XML format has many (6-7) levels of nesting and has attributes and elements. Can any one tell if this is possible through cobol/ PL1? . I know its possible to generate XMLs, but I need to know if it possible to handle so many levels of nesting. Also is there a size restriction? How to generate a copybook that can be provided as an input to Xml generated are there any tools ?

I also need to parse the XML and generate flat files out of it.

Thanks!
Bhushan
Back to top
View user's profile Send private message

prino

Senior Member


Joined: 07 Feb 2009
Posts: 1101
Location: Oostende, Belgium

PostPosted: Fri May 13, 2011 10:38 am    Post subject:
Reply with quote

Both COBOL and PL/I are Turing-complete, so they can be used to solve any computable problem.

PL/I can access the z/OS system parser via the PLISAXD function, and also has a builtin to turn structures into XML.
Back to top
View user's profile Send private message
Stefan

Active User


Joined: 12 Jan 2006
Posts: 110
Location: Germany

PostPosted: Fri May 13, 2011 12:19 pm    Post subject: Re: COBOL--> XML and XML--> COBOL
Reply with quote

In the last years XML processing has become a regular task in COBOL and PL/I. No mystery, no complex algorithms, full language support, excellent performance, and great documentations with samples.

Hope this helps
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 972
Location: Richmond, Virginia

PostPosted: Sat May 14, 2011 8:36 pm    Post subject:
Reply with quote

My automata theory classes were among the most interesting in college, and I've even read some related material after college.

I'm wondering, though, how many listeners know what "Turing-complete" means.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1786
Location: Bloomington, IL

PostPosted: Sun May 15, 2011 3:52 am    Post subject:
Reply with quote

Phrzby Phil wrote:
My automata theory classes were among the most interesting in college, and I've even read some related material after college.

I'm wondering, though, how many listeners know what "Turing-complete" means.

Turn the question sideways:
  1. At what level in the industry should one know what "Turing-complete" means?
  2. What percentage of the membership pretended to be at that level when they interviewed for their present jobs?
  3. What percentage were really at that level?
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 972
Location: Richmond, Virginia

PostPosted: Sun May 15, 2011 5:26 am    Post subject:
Reply with quote

Are these questions decidable?
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
No new posts How to display offset thru cobol prog... tvinodkumar7 COBOL Programming 0 Sun Apr 22, 2018 8:42 pm
No new posts Linkage editor is part of COBOL, z/OS... ankit.jain COBOL Programming 4 Fri Apr 20, 2018 4:17 pm
This topic is locked: you cannot edit posts or make replies. Difference between EQUAL and EQUAL TO... jithinraghavan COBOL Programming 3 Thu Apr 19, 2018 2:22 am
No new posts Call COBOL or PLI with a click from w... vaibhav gs All Other Mainframe Topics 1 Mon Apr 16, 2018 7:29 pm
No new posts COBOL MVS options BiswajitDG COBOL Programming 8 Fri Apr 06, 2018 12:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us