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
 
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: 2442
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Question related to Data dictionary f... rexx77 SYNCSORT 3 Thu Aug 31, 2017 7:23 am

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