Operating System - HP-UX
1752479 Members
5578 Online
108788 Solutions
New Discussion юеВ

Re: about ftp between z/os and hpux

 

about ftp between z/os and hpux

hi,
we are now using hpux as ftp server and putting a large file from z/os to hpux.
in this case, JCL with the PROGRAM of FTP is used. however, it fails about this command 'put xx,xx,0,5000,5000,798'. because in the JCL, the 'put' command only has two parameters, local file and remote file.

so the question is how can we put a large file from z/os to hpux through ftp with space parameter being indicated?
9 REPLIES 9
Steven Schweda
Honored Contributor

Re: about ftp between z/os and hpux

> so the question is how can we put a large
> file from z/os to hpux through ftp with
> space parameter being indicated?

Why is this an HP-UX question? So far as I
know, the HP-UX FTP server doesn't care about
the file size.

> [...] it fails about this command 'put
> xx,xx,0,5000,5000,798'. because in the JCL,
> the 'put' command only has two parameters,
> local file and remote file.

So, why are you specifying more (size?)
parameters there?

If you need advice about the z/OS FTP client,
then you might get better info sooner if you
start at ibm.com instead of at hp.com.
Dennis Handly
Acclaimed Contributor

Re: about ftp between z/os and hpux

>how can we put a large file from z/os to hp-ux through ftp with space parameter being indicated?

If you are putting it to HP-UX, no space parm is needed. The file will extend to the 2 Gb if largefiles aren't enabled or to the filesystem or quota limits.
хоЛцШОхУ▓
Honored Contributor

Re: about ftp between z/os and hpux

I think it's also to ask the IBM├п┬╝ for Z/OS is ftp client can offer more support;
I'm back, water king

Re: about ftp between z/os and hpux

to Dennis Handly :
yes, we do need to transfer a file larger than 2GB.
Steven Schweda
Honored Contributor

Re: about ftp between z/os and hpux

> yes, we do need to transfer a file larger
> than 2GB.

Fine, but that will either work or not,
according to conditions at the server.
There's nothing which you need to do (or
which you can do) at the client to change
those conditions.

So, again, why the extra parameters?
Bill Hassell
Honored Contributor

Re: about ftp between z/os and hpux

> So, again, why the extra parameters?

Mainframes (IBM, Unisys/Burroughs, even MPE) have numerous file types and space pre-allocation requirements. Normally this is handled by JCL commands prior to the ftp program. However, because you are using two very different computers, you'll need the Z/OS translation into something HP-UX can understand.

If you are pushing the file from Z/OS to HP-UX, run the ftp command interactively and type ? or help after you login. You'll then see a list of commands supported by ftpd, the HP-UX server program.

Then use ftp on HP-UX and login to Z/OS and type ? or help. You'll then see what the Z/OS system supports.

ftp is the most common file transfer program between different OS types but you must always be aware of the differences in files between the two systems.


Bill Hassell, sysadmin
Steven Schweda
Honored Contributor

Re: about ftp between z/os and hpux

> Mainframes (IBM, Unisys/Burroughs, even
> MPE) have numerous file types and space
> pre-allocation requirements. [...]

Fine, but remember this?:

> we are now using hpux as ftp server and
> putting a large file from z/os to hpux.
> [...]

So, what does any of that "pre-allocation"
stuff on z/OS have to do with a file being
transferred from a z/OS FTP client to an
HP-UX FTP server?

> Then use ftp on HP-UX and login to Z/OS and
> type ? or help. You'll then see what the
> Z/OS system supports.

And then you'll see which commands the z/OS
FTP _server_ supports, which might be more
interesting if anyone were trying to use the
z/OS FTP server. But apparently no one here
is.
Dennis Handly
Acclaimed Contributor

Re: about ftp between z/os and hpux

>we do need to transfer a file larger than 2GB.

What kind of file? A text or a binary file?

If you need larger than 2 Gb, then you need to make sure your target filesystem has large files enabled:
fsadm -F vxfs /dev/vg00/rlvol3
largefiles
BUPA IS
Respected Contributor

Re: about ftp between z/os and hpux

Hello ,

The IBM z/os FTP program has two parts a server and a client .
When a z/os JCL deck is used to send a file to another system the FTP client is called and the connection is established with the remote sever which does most of the work. (in this case hp-ux)
The command set supported is them mostly controlled the facilities in the remote server. The IBM client will automatically perform EBCDIC to ASCII conversions as well support for the double byte character sets used for Chinese and other far eastern languages.
The space allocation parameters are dependent on the facilities in the target system. Unix hp-ux normally does not allocate space on a per file basis . So providing there is enough space in the target file system and large files are supported the command

assuming the data set is catalogued at the z/os end and the mount point at the hp end exists and has enough space and you have the correct permissions .

put 'MYTOPLEV.BIG.FILE' /mydata/largefilesystem/mynewbigfile

should work.

If you need to enable character set conversions strip or blanks ASA print characters . These are controlled by toggle switches and locsite commands before the put is issued

Some confusion may exist since IBM have added a large number of extensions to the site command (as permitted by the RFC) to cope with the special requirements (e.g. size and format) and exploit the features of z/OS .
The site or locsite command is issued before the put or get .

The hp-ux server only implements a few things on site such as umask and chmod

To access the IBM FTP documentation

http://www-03.ibm.com/systems/z/os/zos/bkserv/

choose the z/os level you are running
once the java window opens with the drop downs
choose communications server (click the plus sign )
then choose z/OS Communications Server IP User's Guide and Commands
chapters 3 4 and 5 reveal all

chapter 17 of the IP and SNA Codes book explains all the standard FTP errors as noted in the RFC (plus some IBM extras ).

I hope this is of some help

Mike
Help is out there always!!!!!