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 Conversion

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Wed Feb 06, 2008 9:36 pm    Post subject: COBOL - XML Conversion
Reply with quote

All,

My requirement is to create a XML schema for a COBOL copybook. Is there any tool available which will convert the input COBOL copybook to XML?

P.S -> Moderators please move this topic to the appropriate forum.
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Wed Feb 06, 2008 9:48 pm    Post subject: Reply to: COBOL - XML Conversion
Reply with quote

I think it's been posted a few times that File-Aid has this as an option.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Thu Feb 07, 2008 4:29 am    Post subject: Reply to: COBOL - XML Conversion
Reply with quote

Kevin,

I searched in the 'compuware tools' forum and did not find any topic matchig my requirement.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Thu Feb 07, 2008 5:42 am    Post subject: Reply to: COBOL - XML Conversion
Reply with quote

This might've been the topic I was thinking of.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Fri Feb 08, 2008 2:57 am    Post subject: Reply to: COBOL - XML Conversion
Reply with quote

Kevin,

Thanks for the link. The exact fileaid options are not mentioned there ! Shall explore and let you people know.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Feb 08, 2008 8:10 am    Post subject:
Reply with quote

Hello,

I believe you are looking for XMLGEN within File-Aid.

Quote:
The XMLGEN Data File Specification screen is displayed when you select
option G from the Extended Utilities Menu. It enables you to identify the
data file information for File-AID to use to create the XML output.
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Fri Feb 08, 2008 6:38 pm    Post subject:
Reply with quote

If you hadn't said schema, I would be with you.

XMLGEN just converts the data in the copybook to an XML document. The same is true of the XML GENERATE statement in COBOL. You can use either of these to take a record and create the XML doc, but that isn't a schema. What you then need to do is take that document to some other tool to actually create a schema. I haven't seen anything on a mainframe that can do that, but if you take the XML doc to another tool on Windows called XMLSpy it can ingest an XML doc and generate your schema for you.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Sat Feb 09, 2008 6:17 am    Post subject: Reply to: COBOL - XML Conversion
Reply with quote

stodolos,

Let me brief my requirement. I am working on an online appli;cation and we get input from a front end in a XML format. We first convert it into COBOL (using PARSE) and finally to XML (using generate).

For this we are in need of a schema. I really dont know whether schema is a generic term. As the front end people do not know the format in which XML data has to be sent, we are creating a XML schema which has the structure of the copybook.

So i will have to create a XML structure similar to the cobol copybook.

Nyways, i shall try using XMLGEN option in fileaid.
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Sat Feb 09, 2008 8:53 pm    Post subject:
Reply with quote

A schema is the definition of a layout and is a very specific thing with a language all its own. It specifies whether fields can be nillable, whether they contain numbers, alphas, dollar amounts, etc.

Use your XMLGEN or XML GENERATE, but that will not give you a true schema. You need another tool to take your XML doc created by FileAid or the COBOL XML GENERATE and run it through that to get a schema.

See this page. It gives an XML doc then works through the steps of making an actual schema.
http://www.w3schools.com/schema/schema_example.asp

This page from Microsoft shows a schema, then a document that meets the spec of the schema.
http://msdn2.microsoft.com/en-us/library/ms256129.aspx
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Sun Feb 10, 2008 5:18 am    Post subject: Reply to: COBOL - XML Conversion
Reply with quote

stodolas,


This is exactly the one which i was looking for. Thanks a ton for the details. I shall read and post here my queries if any !
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Sat Feb 23, 2008 5:51 am    Post subject: Reply to: COBOL - XML Conversion
Reply with quote

steve,

I checked the link and have finally created a schema. Thanks for the link.
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 -> All Other Mainframe Topics 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. Full Time COBOL Software Development ... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:24 am
This topic is locked: you cannot edit posts or make replies. COBOL Software Development Lead at Fi... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:21 am
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm


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