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
 

 

XML Processing in COBOL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
haimzeevi

New User


Joined: 01 Mar 2010
Posts: 27
Location: Israel

PostPosted: Mon Oct 15, 2012 4:53 pm    Post subject: XML Processing in COBOL
Reply with quote

Can somebody provide me with sample-code, including FD definitions & JCL definitions, for XML processing in COBOL?
I looked in the reference & programming-guide, I feel I still miss something.
Mainly externals of definitions (JCL's: DD statements etc.)

In addition, the same in a CICS program...
Haim Zeevi
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Mon Oct 15, 2012 6:31 pm    Post subject:
Reply with quote

Are you generating or parsing XML - -the commands are different? Since XML does not recognize the record layout of mainframe files, the usual process for parsing is to read in each record, append it to a data structure in WORKING-STORAGE, and when you have read the entire input then use XML PARSE on it. XML GENERATE would be the opposite -- generate the data in a WORKING-STORAGE structure, then move record sized chunks and write them to a file (or whatever, in the case of CICS).

And XML requires a fairly substantial amount of CPU time, so it is not a good fit for CICS unless the XML is fairly small.
Back to top
View user's profile Send private message
haimzeevi

New User


Joined: 01 Mar 2010
Posts: 27
Location: Israel

PostPosted: Mon Oct 15, 2012 10:14 pm    Post subject:
Reply with quote

Thanks Robert.
Your last note, regarding the "cost" of XML processing in CICS transaction, was very important.
Haim Zeevi
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm
No new posts processing a XML file in PL/1 grvtomar PL/I & Assembler 2 Fri Jun 09, 2017 1:07 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am


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