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
 

 

Data truncation while parsing XML

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

New User


Joined: 30 Dec 2010
Posts: 3
Location: Chennai

PostPosted: Thu Dec 30, 2010 1:03 pm    Post subject: Data truncation while parsing XML
Reply with quote

Hi,

While using an XML PARSE, the data is getting truncated.

EX: my input XML tag is <MyName>Mainframe</MyName>
when i display the XML-TEXT inside the "CONTENT-CHARACTERS" Event, i get two values "Mainfram" and "e".

Can any one please help me out with this?

Thanks
Back to top
View user's profile Send private message

mlp

New User


Joined: 23 Sep 2005
Posts: 91

PostPosted: Thu Dec 30, 2010 3:19 pm    Post subject:
Reply with quote

Check the variable length of transmitting end and receiving end variables of your MOVE statement.

Code:
MOVE <transmitting end VAR> TO <receiving end VAR>
Back to top
View user's profile Send private message
mlp

New User


Joined: 23 Sep 2005
Posts: 91

PostPosted: Thu Dec 30, 2010 4:24 pm    Post subject:
Reply with quote

Sorry I mis-interpreted your post. I thought you are parsing the XML using pure COBOL code. But Enterprise COBOL has XML PARSE function.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Thu Dec 30, 2010 4:29 pm    Post subject:
Reply with quote

It would be nice to show the XML PARSE statement you use.
Back to top
View user's profile Send private message
Chalcedony Herbertson

New User


Joined: 30 Dec 2010
Posts: 3
Location: Chennai

PostPosted: Thu Dec 30, 2010 5:35 pm    Post subject:
Reply with quote

Thanks Peter,

I am able to get it now. icon_biggrin.gif

The issue was the spilting of data was oaccuring at certain length icon_sad.gif .

so I tried reorganising the internal table size and it worked out. icon_surprised.gif

I am not sure why it happened or the reason behind it. I will post the reason if i am able to find it.
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 Sorting group data rajella DFSORT/ICETOOL 3 Sun Jan 22, 2017 11:32 pm
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm


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