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: 2432
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 Data replication from multiple Db2 ta... kishpra DB2 5 Mon Mar 27, 2017 9:58 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm


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