IBM Support

Error Handling with the Secure File Transfer Protocol (SFTP)

Troubleshooting


Problem

This document provides information about added functionality of SFTP to ignore errors and to continue processing subsequent commands in batch mode.

Resolving The Problem

Often, users have an SFTP batch program that fails and does not continue with subsequent commands if any errors are received when a put command fails. This can occur if the file you try to put does not exist. The batch program fails and subsequent commands in the batch program are not processed.

Rather than using put, use -put. Any errors are ignored, and subsequent commands are still processed.

New Syntax

The new syntax for the command follows:

-put filename.txt

The following 5733SC1 PTFs are required for this functionality:

V5R3: 5733SC1 SI25208

V5R4: 5733SC1 SI25209

Note: The SFTP error handling function is included with the base code for 5733SC1 at V6R1 & above.

[{"Product":{"code":"SWG60","label":"IBM i"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Communications-TCP","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"Version Independent","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Historical Number

467362844

Document Information

Modified date:
11 November 2019

UID

nas8N1014048