Page 1 of 1

ftp from unix

PostPosted: Sun Jan 04, 2009 3:04 pm
by qsc123
can anyone pls tell how to perform ftp from unix into mainframe...a jcl for the same is also welcome...

Re: ftp from unix

PostPosted: Sun Jan 04, 2009 9:03 pm
by dick scherrer
Hello and welcome to the forum,

If you want to ftp a file from unix to the mainframe, suggest you pre-allocate the file on the mainframe (determine the attributes for the file before allocating) and send the file from a unix script. For ease of use, you will want to create fixed-length records rather than variable. If you send/push the file from the unix system, no jcl will be needed.

Re: ftp from unix

PostPosted: Mon Jan 05, 2009 9:34 am
by qsc123
thanks for the prompt reply...ok...but what if do want to use a jcl..how do i go abt doing it?can u suggest any books where i can refer these concepts

Re: ftp from unix

PostPosted: Mon Jan 05, 2009 9:54 am
by dick scherrer
Hello,

FTP is basically the same from platform to platform (the commands and general process). To use jcl on the mainframe to "pull" data from the unix system, check with the unix sysadmins to make sure you can connect to the unix ftp server correctly and have permission to read the directory(ies) where the files to be sent are located.

The best source of sample jcl is your system support people. They can show you exactly which jcl should be used on your system.

Here is a link to the IBM material:
http://publibz.boulder.ibm.com/cgi-bin/ ... 0530175427

Re: ftp from unix

PostPosted: Mon Jan 05, 2009 10:06 am
by MrSpock

Re: ftp from unix

PostPosted: Mon Jan 05, 2009 10:17 am
by dick scherrer
Happy New Year, Mr Spock - good to see you this year :)

Yup, the link i gave is Title: z/OS V1R9.0 Comm Svr: IP User's Guide and Commands the same link ;)

d