Edit the new conf file (eg with notepad)
In this file a line that begins with /* and ends with */ is a comment.
You will have to set server, port, user, password etc.
Each line should be in the format parameter = 'value'.
-
Remove or comment out the disabled = 'y' line - this
stops the definition being activated.
-
subdir - the subdirectory of inbox that files will be placed
in for transfer. All files placed here will be transferred. This directory
has to exist.
-
type - type of transfer, currently only sftp is
supported.
-
direction - get or put (put is default)
- server - the server name or address of the target system
port - port to connect to, usually 22 for sftp
- user - the userid on the remote system
-
password - the password on the remote system
-
savedprofile - the profile NAME saved by putty earlier
-
targetdir - the target directory on the remote system for
transferred files (for put only). This is a relative path.
-
forcelowercase - (put only) use lwer case names for the transfer, ignores the original case of the file
-
targettimestamp - (put only) include a timestamp at the target for uniqueness 'y' or 'n' (default 'y'). Must be set to 'n' for systems that do not support long filenames.
-
timestamp - (get only) include a timestamp on the received file for uniqueness 'y' or 'n' (default 'y')
-
remotedir - the directory the file is to be pulled from on the remote system (get only)
-
remotefile - the file name to be pulled from the remote system (get only)
-
starttime - Time for transfer to be started, format is hh:mm (get only) This
will be repeated daily at the same time
-
createmd5sum - will an md5sum file be created 'y' or 'n' (default 'y')
-
sendmd5sum - the md5sum of the file can
also be transferred if required.
- preprocess - Allow customised processing before
transfer if required. As an example, you may wish to copy the incoming file
to another inbox directory to copy this file to multiple destinations.
- postprocesssuccess - Allow customised
processing after a successful transfer if required.
- postprocessfail - Allow customised processing
after a failed transfer if required.
-
Response - (put only) set to y if a response file is to be returned.
This would typically be created by the remote system after processing the
transferred file. The file will be placed in the
response
subdir
directory, which must exist.
-
responsein - the filename that should be collected. This
can be a plain file name or use %fname% and %ftype% for name and type
matching. %ftype% does not include the '.' separator, eg if the file
format is FNAMErpt.FTYPE use :
responsein = '%fname%rpt.%ftype%'
- responsedir - the directory where the response file
will be collected from on the remote system
-
responsetimestamp - (put only) include a timestamp in the response file for uniqueness 'y' or 'n' (default 'y').
-
postprocessresponsesuccess - Allow customised
processing after a successful transfer if required.
- postprocessresponsefail - Allow customised processing
after a failed transfer if required.
-
maxtry - maximum number of attempts for a transfer. If this
is exceeded the transfer will be considered to have failed.
- waittime - the time to wait between attempts if a transfer fails
- initialwait - the time to wait before looking for a
response file.
- smtpaddress - the smtp email address for email alerts.
Create the sub-directory of inbox if it does not already exist.
Also create the subdirectory of response if expecting a response file.