Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to Resume a FTP transfer

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
ws99168085

New User


Joined: 29 Aug 2005
Posts: 1

PostPosted: Mon Aug 29, 2005 9:19 pm    Post subject: How to Resume a FTP transfer
Reply with quote

When I transfer a file to a remote site using TCP/IP FTP in OS/390, an interrupt occurs, but the file have been transferred for 70%, I do not want to re-send it from the beginning, can I resume the transfer from 70%. What should I do? Is there anyone who can help me? Contact me at "wangsheng_259@sohu.com" , Thank you very much.
Back to top
View user's profile Send private message

Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Tue Aug 30, 2005 12:15 am    Post subject: Re: How to Resume a FTP transfer
Reply with quote

From the "z/OS V1R6.0 CS: IP User's Guide and Commands" reference guide:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/F1A1B940/CCONTENTS?SHELF=EZ2ZO10E&DN=SC31-8780-04&DT=20040701154444

Quote:

4.12 Restarting a failed data transfer

FTP supports two subcommands for restarting data transfers that fail. Select the appropriate subcommand based on the data transfer mode at the time the data transfer failed.

If stream mode data transfer was used, use the srestart subcommand to restart the data transfer. See "SRESTART subcommand--Restart a stream data transfer" in topic 5.65 for a description of stream mode restart.

If block or compressed mode was used, use the restart subcommand to restart the data transfer. See "REStart subcommand--Restart a checkpointed data transfer" in topic 5.57 for a description of block or compressed mode restart.

To restart a block or compressed mode data transfer, checkpointing must have been initiated prior to the start of the transfer. You can use either the LOCSITE or SITE subcommands to initiate checkpointing.

The LOCSITE subcommand parameter CHKPTINT controls the checkpoint interval at the client, and the parameters CHKPTPREFIX and RESTGET control the naming of the client checkpoint data set.

The SITE subcommand parameter CHKPTINT controls the checkpoint interval at the server.

Each of the LOCSITE/SITE parameters is also supported in the FTP.DATA file.

5.65 SRESTART subcommand--Restart a stream data transfer

Purpose

Use the SRESTART subcommand to restart an interrupted stream mode data transfer.

Format

>>__SRestart__ ___________________________________ _______________________________________________><
|_Get__foreign_file__ ____________ _|
| |_local_file_| |
|_PUt__local_file__ ______________ _|
|_foreign_file_|

Parameters

Get
Resume a get subcommand.

foreign_file
Specifies the name of the file to be retrieved from the remote host.

local_file
Specifies the name of the local file created as a result of the Get subcommand.

Enter the same names for foreign_file and local_file as you used in the interrupted get subcommand.

You can override the usage of the current local working directory in the local file name by specifying local_file as a complete data set name enclosed in single quotation marks ('). If local_file is not specified, the local_file name is the same as the foreign_file name.

PUt
Resume a put subcommand.

local_file
Specifies the name of the file on your local host being sent to the remote host.

foreign_file
Specifies the name that the delivered file is given on the remote host. If the foreign_file name is not specified, the foreign_file name is the same as the local_file name.

Enter the same names for foreign_file and local_file as you used in the interrupted put subcommand.

You can override the usage of the current local working directory in the local file name by specifying local_file as a complete data set name enclosed in single quotation marks ('). If local_file is not specified, the local_file name is the same as the foreign_file name.

Usage

Do not use SRestart to resume an interrupted file transfer unless you can recreate the start options, FTP.DATA statements, SIte, and LOCSIte options in effect at the time of the failed file transfer. Unpredictable results may occur if the file transfer environment cannot be recreated. If you cannot recreate the file transfer environment, issue Get or PUt to transfer the file again.

Not all file transfers can be resumed in STREam mode. Observe these restrictions during the original file transfer as well as the srestart transfer.

Mode must be STREam.

Filetype must be SEQ.

Structure must be FILE.

SUnique option must be disabled.

Data type must be ASCII, EBCDIC, or Image.

The local file must reside in the HFS.

For SRestart PUt, a z/OS CS V1R6 or later server will reject the restart if the foreign_file is not an HFS file.


For SRestart PUt, if the server cannot calculate an appropriate point to restart the file transfer, SRestart will fail.

For SRestart Get, if the client cannot calculate an appropriate point to restart the file transfer, SRestart will fail.

If SRestart fails, use Get or PUt and start the file transfer again.

5.57 REStart subcommand--Restart a checkpointed data transfer

Purpose

Use the REStart subcommand to restart a checkpointed data transfer.

Format

>>__REStart_____________________________________________________________><

Parameters

There are no parameters for this subcommand.

Usage

The REStart subcommand restarts the last checkpoint file transfer request at the point of the last valid checkpoint stored in the checkpoint data set. See FTP.DATA CHKPTPREFIX statement to determine the check point data set name. The file transfer environment (such as file transfer mode, type, and the hlq of the checkpoint data set name) which was in effect at the time of the last checkpoint file transfer request must be reestablished before issuing the REStart subcommand.

The REStart subcommand can be used when a checkpointed file transfer request fails because of some temporary condition such as the loss of the connection between the client and the server.

The checkpoint file name is formed using the CHKPTPrefix value and the current working directory.

Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts resume binary ftp in z/os meykh2014 All Other Mainframe Topics 6 Sun Jan 22, 2017 10:01 am
No new posts How to transfer file password protect... chetanambi TSO/ISPF 8 Thu Apr 30, 2015 10:05 am
No new posts Using FTP Pro to transfer files to ma... Jay Villaverde TSO/ISPF 1 Thu May 01, 2014 8:05 pm
No new posts Question on using WS_FTP to transfer ... Jay Villaverde All Other Mainframe Topics 6 Mon Mar 10, 2014 6:51 pm
No new posts Transfer Mainframe files ( PS & P... Ed Goodman JCL & VSAM 11 Fri Mar 07, 2014 4:55 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us