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
 

 

Creating xml files on mainframe

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

New User


Joined: 03 Apr 2008
Posts: 82
Location: United States

PostPosted: Thu Mar 17, 2011 10:57 pm    Post subject: Creating xml files on mainframe
Reply with quote

Hello All,

What would be a convenient way of creating xml files on mainframe? Cobol, SYNCSORT/DFSORT, REXX?
Back to top
View user's profile Send private message

Ronald Burr

Active User


Joined: 22 Oct 2009
Posts: 293
Location: U.S.A.

PostPosted: Thu Mar 17, 2011 11:31 pm    Post subject:
Reply with quote

There is an XMLGENERATE function in Enterprise COBOL that will generate well-formed XML using a COBOL COPYBOOK (and the underlying data, of course).
Putting the generated XML into a file is done in the same manner as putting any data into a file, with the caveat of file attribute limits.
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: Fri Mar 18, 2011 1:16 am    Post subject: Reply to: XML file
Reply with quote

In the past, I've used SAS, REXX, and Oracle SQL*PLUS.
Back to top
View user's profile Send private message
CICS fan

New User


Joined: 03 Apr 2008
Posts: 82
Location: United States

PostPosted: Fri Mar 18, 2011 2:40 am    Post subject:
Reply with quote

Ronald and SUPERK thank you very much.

While I was able to figure out the Cobol XML GENERATE option, I wanted to know if there is any way through INSYNC(not FileAID). Also, I would be interested to explore the REXX option, if you please.
Back to top
View user's profile Send private message
Ronald Burr

Active User


Joined: 22 Oct 2009
Posts: 293
Location: U.S.A.

PostPosted: Fri Mar 18, 2011 3:31 am    Post subject:
Reply with quote

There is a REXX script that will convert text to XML using a COBOL Copybook for reference. It is Open-Source called TXT2XML - it works with limitations (e.g. no REDEFINES, no RENAMES, no OCCURS DEPENDING ON). I

See THIS LINK at SourceForge.net
Back to top
View user's profile Send private message
CICS fan

New User


Joined: 03 Apr 2008
Posts: 82
Location: United States

PostPosted: Fri Mar 18, 2011 9:36 pm    Post subject: Reply to: Creating xml files on mainframe
Reply with quote

Appreciate your help Ronald.You rock.
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
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts SNMP trap from Mainframe bipinpeter Compuware & Other Tools 6 Wed Apr 26, 2017 3:05 pm
This topic is locked: you cannot edit posts or make replies. Mainframe Opening in Allianz India- T... Rajesh Gopinathan Mainframe Jobs 0 Wed Apr 19, 2017 11:33 am
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm


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