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
 
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: 8344
Location: Dubuque, Iowa, 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 Need help - DB2 Dynamic SQL Program e... NikhilGuptaGaya DB2 5 Sat Jun 23, 2018 1:58 pm
This topic is locked: you cannot edit posts or make replies. Issue in suppressing leading zeros &a... Vijay_Sirisha COBOL Programming 21 Thu Jun 07, 2018 8:01 pm
No new posts VBS to VB in COBOL and JCL srajendran2 COBOL Programming 12 Fri Jun 01, 2018 3:04 am
This topic is locked: you cannot edit posts or make replies. Rexx code to find greater then symobl... Bharath Vikraman CLIST & REXX 8 Tue May 29, 2018 9:40 am
No new posts How to convert 2 bytes into single by... pkmurali DB2 6 Fri May 25, 2018 1:41 pm

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