SNDOBJFTP - Support

SNDOBJFTP

From Support

Jump to: navigation, search

SNDOBJFTP - Allows an AS/400 file or other object to be auto-saved via SAVOBJ and FTP'ed to a remote AS/400 library.

SNDOBJFTP Command Description

The SNDOBJFTP command allows an AS/400 file or other object to be auto-saved via SAVOBJ and FTP'ed to a remote AS/400 library.

Requires FTP/400 V1.26 or above.

SNDOBJFTP Parameters:

Object name: Name of AS/400 object or objects to be saved.

Object library: Library where objects are saved from.

Object type: AS/400 object type. *ALL is the default.

Remote system IP address: IP address to remote AS/400 system.

Remote User ID: Remote AS/400 user ID.

Remote Password: Remote AS/400 password.

Restore to library: Library where objects should be restored to.

FTP Log Option: This option determines if a FTP log is generated or displayed for the FTP transfer job.

FTP command after transfer: This command is an AS/400 command line to run on the remote system after the FTP transfer completes. This command can launch a job to process the transferred file, send a message or anything else an AS/400 command can do.

Example:

This example sends an AS/400 data file to a remote system and then sends a message to the AS/400 system operator. The file is saved from library QIWS on the local system and sent to library RJSJUNK on the remote system.

SNDOBJFTP OBJECT(QCUSTCDT) LIBRARY(QIWS) OBJTYPE(*ALL) SYSTEM('125.1.1.53') USER(DICK) PASSWORD() RSTLIB(RJSJUNK) LOGOPT(*DSP) CMD1('SNDMSG MSG(All Done with FTP Transfer) TOUSR(*SYSOPR)')                                          

To view the message sent to the remote system operator after the transfer, sign on to the remote AS/400 via 5250 and run the following command: DSPMSG MSGQ(*SYSOPR)

Personal tools