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
 

 

XML generated from cobol is displaying as junk in spool

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

New User


Joined: 26 Apr 2014
Posts: 2
Location: bangalore

PostPosted: Wed Aug 19, 2015 5:16 pm    Post subject: XML generated from cobol is displaying as junk in spool
Reply with quote

Hi,

I am generating a XML from cobol 5 like below

XML GENERATE XML-OUT FROM STRUCTURE
COUNT IN XML-LEN
WITH ENDCODING 1208
WITH XML-DECLARATION

Wen i display the XML-OUT in spool, junk characters are displaying.

Please help in resolving this..

Note: without encoding option spool display are printing fine, but in xml declartion IBM-1140 is coming. but my requirement is to get UTF-8 in declaration.
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Wed Aug 19, 2015 5:42 pm    Post subject: Reply to: XML generated from cobol is displaying as junk in spool
Reply with quote

Can you provide some example input, what you get with that, and what you expect?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8088
Location: East Dubuque, Illinois, USA

PostPosted: Wed Aug 19, 2015 6:00 pm    Post subject:
Reply with quote

You ARE aware, I hope, that the mainframe uses an EBCDIC code page? And that if you encode XML with 1208, what you will see on the mainframe will NOT be human-legible since the code page of the data won't match the code page of the system?

In other words, what you are calling "junk characters" most likely are the correctly encoded data for the XML and you need to transfer the XML data set to a system that is using code page 1208 to verify the contents and not try to do so on the mainframe.
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 Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm
No new posts replacing junk with hyphen Nitin32 DFSORT/ICETOOL 10 Fri Jun 02, 2017 7:47 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm


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