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

XML Parse for COBOL 5.2


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Bhanu Praveen

New User


Joined: 04 Feb 2016
Posts: 3
Location: India

PostPosted: Sat Jul 08, 2017 8:58 pm
Reply with quote

Hello all,

I have a cobol program which performs XML PARSE.The XML PARSE function returns XML-CODE of 2 with cobol 3 compiler. The same function returns XML-CODE of 1 with cobol 5.2 compiler for the same input data. what can be the reason behind this and what can be the fix? Please advise on this.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sun Jul 09, 2017 5:51 am
Reply with quote

Quote:
The same function returns XML-CODE of 1 with cobol 5.2 compiler for the same input data. what can be the reason behind this and what can be the fix?
The reason is that different compilers are NOT guaranteed to produce exactly the same results for every set of data, and the fix is to use a single compiler.

Have you looked at the discussion on XML-CODE starting on page 533 of the Enterprise COBOL V5.2 Programming Guide manual? If not, you need to start reading.
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top