View previous topic :: View next topic
|
Author |
Message |
CICS fan
New User
Joined: 03 Apr 2008 Posts: 82 Location: United States
|
|
|
|
Hello All,
What would be a convenient way of creating xml files on mainframe? Cobol, SYNCSORT/DFSORT, REXX? |
|
Back to top |
|
|
Ronald Burr
Active User
Joined: 22 Oct 2009 Posts: 293 Location: U.S.A.
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
In the past, I've used SAS, REXX, and Oracle SQL*PLUS. |
|
Back to top |
|
|
CICS fan
New User
Joined: 03 Apr 2008 Posts: 82 Location: United States
|
|
|
|
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 |
|
|
Ronald Burr
Active User
Joined: 22 Oct 2009 Posts: 293 Location: U.S.A.
|
|
|
|
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 |
|
|
CICS fan
New User
Joined: 03 Apr 2008 Posts: 82 Location: United States
|
|
|
|
Appreciate your help Ronald.You rock. |
|
Back to top |
|
|
|