IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

COBOL--> XML and XML--> COBOL


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 1306
Location: Vilnius, Lithuania

PostPosted: Fri May 13, 2011 10:38 am
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
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

Senior Member


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

PostPosted: Sat May 14, 2011 8:36 pm
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: 1788
Location: Bloomington, IL

PostPosted: Sun May 15, 2011 3:52 am
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

Senior Member


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

PostPosted: Sun May 15, 2011 5:26 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top