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
 
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: 4650
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 Identifying Interfaces in CICS/mainframe Ashishpanpaliya CICS 5 Fri Oct 13, 2017 3:21 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Mainframe scheduling tool ddhar Compuware & Other Tools 2 Wed Sep 27, 2017 12:48 am
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am

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