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: 1060
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: 965
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: 1777
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: 965
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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm

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