Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 1018
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: 962
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: 1755
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: 962
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
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts COBOL Programming Sandpit? jodrisco COBOL Programming 6 Wed Apr 12, 2017 3:47 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us