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: 2433
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 Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm


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