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

Creating xml files on mainframe


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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
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

Global Moderator


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

PostPosted: Fri Mar 18, 2011 1:16 am
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts Write line by line from two files DFSORT/ICETOOL 7
Search our Forums:

Back to Top