On Mon, Aug 17, 2015 at 8:33 AM, Paul Gilmartin <
[email protected]> wrote:

> On Sat, 15 Aug 2015 09:38:40 -0700, retired mainframer wrote:
> >
>
> ​<snip>​

>
> I download the files.  Carriage returns!?  Who puts carriage returns on
> a UNIX server?  Has it been this way for 8 years?  Can this be reported
> to someone who cares to fix it?
>
> When I download the EXEC and try to run it, I get Invalid Character on
> a logical "not" sign.  From what ASCII code page to what EBCDIC code
> page should I convert it?
>
> I hate EBCDIC!
>

​Not in this particular case. I did a BINary download to Linux. The files
on the IBM server have CRLF line endings. So, if you FTP them to z/OS from
Linux, and don't do a "dos2unix" on them before hand, you end up with the
CR being transferred as data which results in a ^M on z/OS. ​Or if you are
ftp'ing directly from the IBM server, and it is using Linux/UNIX, then _it_
is doing the same thing. It appears that IBM thought that _everyone_ who
downloaded this code would do so using a _Windows_ OS. And made it so that
it would "just work right" for them (after all, "Windows is the industry
standard") . I guess they figured that if you used Linux/UNIX you would be
smart enough figure it out your own self.

On z/OS

tr -d '\r' <somefile >somefile.x && mv somefile.x somefile

if you have GNU sed (IBM sed doesn't implement the -i switch - shame on
IBM) on z/OS

sed -i -r 's/\r//' somefile


>
> (*.clist.clist!?)
>
> -- gil
>

-- 

Schrodinger's backup: The condition of any backup is unknown until a
restore is attempted.

Yoda of Borg, we are. Futile, resistance is, yes. Assimilated, you will be.

He's about as useful as a wax frying pan.

10 to the 12th power microphones = 1 Megaphone

Maranatha! <><
John McKown

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to