I have used ICE TOOL to convert EBCDIC file to ASCII file for file transfer from zOS to zOS UNIX Directory. Mainframe file has four lines. But when user views the ASCII file, all four lines are displayed in single. Could you please help me to know if we can transfer the file sin such a way that in ASCII file data is displayed in four lines instead of single line. Thanks,
We are doing file transfer to USS directory using the sample code available over internet as below. but all data appear in single line
Joined: 02 Jan 2009 Posts: 115 Location: Hyderabad
I faced a similar issue some time back. What I learned was, there is no record concept in USS in Z/OS. Imagine it like a buffer. So you may not be able to see the data in records. But when you send the same file back to TSO, it is clever enough to split it into records.
I may be wrong or there could be a way to do it. But that was my experience.
Just give a try with this card
ocopy indd(INMVS) outdd(OUTHFS) TEXT CONVERT((BPXFX311)) FROM1047
Joined: 06 Jun 2008 Posts: 8449 Location: Dubuque, Iowa, USA
USS in z/OS sort of recognizes records. OCOPY will add a newline character to the end of each line -- but only for a TEXT file. When using BINARY on the OCOPY, no newline will be added anywhere. If you must use BINARY on your OCOPY, you can either add the newlines yourself to the data, or you can live with all the data in one line.