Operating System - HP-UX
1752590 Members
2867 Online
108788 Solutions
New Discussion юеВ

Copy Mainframe file to HPUX format

 
ashanabey
Advisor

Copy Mainframe file to HPUX format

Hi ,

I have ftp the file form MF to HPUX box and trying to copy Mainframe file 'IN.DEAD' to hpux format.

Pleas let me how to do it. When I give ls -l IN.DEAD it come out file not found.

Thx
Ashan




legend the heart and lend the hand
15 REPLIES 15
OldSchool
Honored Contributor

Re: Copy Mainframe file to HPUX format

if you don't see it in the directory you were working in, then you either didn't get it transferred or you put it someplace else.

on the hpux box, you should be able to find it w/

cd /
find . -name IN.DEAD

it'll take a while.

next question is: What do you mean by "hpux format"? is the original data text or binary?
David Bellamy
Respected Contributor

Re: Copy Mainframe file to HPUX format

ashanabey the easy way to do this is when you ftp the file bring it down as ascii.
TwoProc
Honored Contributor

Re: Copy Mainframe file to HPUX format

The "dd" command has conversion from EEBCDIC to ASCII (when you say MF, I'm assuming an IBM variant, but more info would be helpful).

check the manuals for "dd"

> man dd
We are the people our parents warned us about --Jimmy Buffett
Ian P Smith
Advisor

Re: Copy Mainframe file to HPUX format

When you say HPUX format do you mean ascii? If so try:

dd if=IN.DEAD cbs=220 conv=ascii of=in.dead.ascii

This usually works for me.
Steven Schweda
Honored Contributor

Re: Copy Mainframe file to HPUX format

> I have ftp the file form MF to HPUX box [...]

How? Which system was the client and which
was the server? Most FTP clients tell you
the name of the file at each end when they
move one. It might help if you showed
exactly what you did instead of making us
guess.
ashanabey
Advisor

Re: Copy Mainframe file to HPUX format

HP is the client, the problem I am facing cant list the file.

I mean HP form is ASCII.

File in the folder like below.

/inbox/'IN.DEAD'

ls -l IN.DEAD

Massage come out file not found

So I cant use find command.

Any good idea

Thx!
Ashan
legend the heart and lend the hand
Steven Schweda
Honored Contributor

Re: Copy Mainframe file to HPUX format

> It might help if you showed
> exactly what you did instead of making us
> guess.

Here, this means showing a transcript of the
FTP session.

> File in the folder like below.
> /inbox/'IN.DEAD'

You seem to have gotten the apostrophes into
the file name. Perhaps something like this
would straighten things out:

mv *IN.DEAD* IN.DEAD

It might help to avoid using apostrophes in
your FTP commands (which we still haven't
seen).
ashanabey
Advisor

Re: Copy Mainframe file to HPUX format

#ll -l
Hi Steven,
below this the screen out..1st I am try to list the file but it cant find.

Thx!
Ashan


-rw-r--r-- 1 root sys 3105702 Oct 26 09:33 'IN.DEADIN.CONVERT'
-rwxr-xr-x 1 root sys 241 Aug 16 09:14 aa.sh

IN* not found
bepdr4:/ashan # ll -al IN*DEAD*CONVERT*
IN*DEAD*CONVERT* not found
bepdr4:/ashan # ll -al 'IN*DEAD*CONVERT*'
IN*DEAD*CONVERT* not found
bepdr4:/ashan # ll -l 'IN*DEAD*CONVERT*'
IN*DEAD*CONVERT* not found
bepdr4:/ashan #

legend the heart and lend the hand
Steven E. Protter
Exalted Contributor

Re: Copy Mainframe file to HPUX format

Shalom,

I didn't realize HP-UX had a format.

HP-UX uses ascii,not ebsidic(forgive my transliteration) and has two basic choices on file transfer, binary/ascii. Determine the file type and try a ftp or sftp client for the mainframe and see how it goes.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com