- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Copy Mainframe file to HPUX format
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-26-2007 02:40 AM
тАО10-26-2007 02:40 AM
Copy Mainframe file to HPUX format
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-26-2007 02:49 AM
тАО10-26-2007 02:49 AM
Re: Copy Mainframe file to HPUX format
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-26-2007 02:53 AM
тАО10-26-2007 02:53 AM
Re: Copy Mainframe file to HPUX format
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-26-2007 03:00 AM
тАО10-26-2007 03:00 AM
Re: Copy Mainframe file to HPUX format
check the manuals for "dd"
> man dd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2007 01:39 AM
тАО10-27-2007 01:39 AM
Re: Copy Mainframe file to HPUX format
dd if=IN.DEAD cbs=220 conv=ascii of=in.dead.ascii
This usually works for me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2007 02:42 AM
тАО10-27-2007 02:42 AM
Re: Copy Mainframe file to HPUX format
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2007 03:33 AM
тАО10-27-2007 03:33 AM
Re: Copy Mainframe file to HPUX format
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2007 04:01 AM
тАО10-27-2007 04:01 AM
Re: Copy Mainframe file to HPUX format
> 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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2007 01:21 AM
тАО10-29-2007 01:21 AM
Re: Copy Mainframe file to HPUX format
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 #
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2007 01:52 AM
тАО10-29-2007 01:52 AM
Re: Copy Mainframe file to HPUX format
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
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2007 02:36 AM
тАО10-29-2007 02:36 AM
Re: Copy Mainframe file to HPUX format
I mean HP form is ASCII.
File in the folder like below.
/inbox/'IN.DEAD'
ls -l IN.DEAD"
================================
NOTE: 'IN.DEAD' is not the same as IN.DEAD.
You've got quotes some places and not in others. You don't need the quoutes, so take a look at the transfer script again to see why the are there
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2007 03:24 AM
тАО10-29-2007 03:24 AM
Re: Copy Mainframe file to HPUX format
Thanks for the help.
I manager to fix my problem by doing below
be4:/ashan # ls -l|awk '{print $9}'|grep 'IN*' |while read a
> do
> mv $a in.dead.convert
> done
bepdr4:/ashan # ls -l
-rw-r--r-- 1 root sys 3105702 Oct 26 09:33 in.dead.convert
Its works now!
Thx!
Ashan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2007 06:49 AM
тАО10-29-2007 06:49 AM
Re: Copy Mainframe file to HPUX format
> > exactly what you did instead of making us
> > guess.
> Here, this means showing a transcript of the
> FTP session.
> below this the screen out..
That's not the FTP session, is it?
> I manager to fix my problem by doing below
There are many ways to rename a file. You
have found one of the more difficult ones.
If we could see your FTP session, it would
probably be possible to show you how to do
this the easy way. Normally, the FTP GET
command lets you specify the remote file name
_and_ a local file name, which can be
anything you wish. This is particularly
useful when working with two operating/file
systems where file names are much different.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2007 07:53 AM
тАО10-29-2007 07:53 AM
Re: Copy Mainframe file to HPUX format
After rename the file I have convert IN.DEAD to ebcdic format MVS.
I use below dd command
dd if=deadin.convert.txt conv=ebcdic of=DEADIN.CONVERT
I have attached the source file and output file also.
I am getting garbage characters what is best way to convert to ebcdic.
thx!
Ashan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2007 08:05 AM
тАО10-29-2007 08:05 AM
Re: Copy Mainframe file to HPUX format
_To_ EBCDIC? Wasn't it _already_ EBCDIC on
the "Mainframe" system? What did you do, an
ASCII FTP transfer? (Of course, if you had
showed us your FTP session transcript, I
wouldn't need to ask this.) If you don't
want the EBCDIC-to-ASCII conversion, you
might try a binary (Image) FTP transfer.
> what is best way to convert to ebcdic.
The _best_ way is not to convert EBCDIC to
ASCII in the first place.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2007 07:21 PM
тАО11-07-2007 07:21 PM