On Tue, 28 Apr 2009 16:20:01 -0500, John McKown wrote:

>On Tue, 28 Apr 2009 15:50:11 -0500, Mark Steely wrote:
>
>>The file is just an ASCII txt file - instead of having new line at the
>>end of each record it has a x'05'.
>>
How did that ever happen, anyway?

>Then you have no problem! You have a single logical line on the UNIX system
>which is being transferred to the z/OS system as a single logical record.
>There is no way on God's green Earth to tell a ftp server "Oh, by the way,
>instead of a normal end of line indicator, please use x'05' as the logical
>end of a line."
>
Outside God's green Earth, it might be possible to
supply a custom translation table.  Long ago, I tried
this on CMS, where it may be easier.  The result was
a disaster: it applied the custom translation to
the control socket as well as the data socket, causing
the client not to recognize ends of command lines.

>Tell the UNIXoids to use standard line endings of 0x0a.
>
Amen.

>If this is impossible due to insanity at the other end, then you'll need to
>upload the file to z/OS as RECFM U. Then write your own program to read the
>file and parse it into logical records when it reads a x'05'.
>
This can be done with the "tr" utility at either the sending
or receiving end (provided the file is received into a UNIX
file.

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to