Q

How to view XML files in z/OS after being FPTed

I want to transfer an XML file from Windows NT to a z/OS. The problem is that the file on the z/OS after FTP shows one very long record. How can I see the XML file on z/OS like I see it in an XML viewer?

I want to transfer an XML file from Windows NT to a z/OS. The problem is that the file on the z/OS after FTP shows one very long record. How can I see the XML file on z/OS like I see it in an XML viewer?
By nature, XML files are plain, pure ASCII. I don't know enough about z/OS to understand what FTP did to your file, but it sounds like extra carriage returns and linefeeds or other meta characters may be introduced in the FTP process. The first thing you should try is to put the file inside some kind of compression package (ZIP, tar or whatever), then transfer that file and decompress it inside z/OS to restore it to its original form. That should bypass any errors that the FTP of the raw ASCII file may be introducing. Of course, you need to find a compression technology that you can use on the Windows side to compress and on z/OS to decompress. Again, because I don't know z/OS, I'm not a good source of information on that score. But since from what I read on Wikipedia, z/OS supports Unix APIs and applications, so finding something that can handle tar or gzip will address your issues. My colleague speculates that perhaps an ASCII-EBCDIC incompatibility issue may be at work here, so you might want to look into that if my suggestion doesn't work.

Beyond that, I'd recommend you take your problems to a z/OS expert and tell him you've got an ASCII/XML file you...

can't open. Somebody who understands the receiving end better than I do can probably offer more help and ideas.

This was last published in February 2006

Dig Deeper on IBM system z and mainframe systems

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

SearchEnterpriseLinux

SearchServerVirtualization

SearchCloudComputing

Close