Commands in OFTP2
STROFTP2 (START OFTP2)
This command allows you to prepare files for sending and establish a connection for exchanging files.
Example command for sending the file testfile.txt to the partner with the profile ‘oftp2partner’ using your own profile with the sequence number 10. The transfer mode *BOTH allows both sending and receiving.
STROFTP2 TRANSMODE(*BOTH) PARTNER(oftp2partner) PROFILE(10) FRMPATH('/tmp/testfile.txt')
Press F4 to display the parameters of the command, F9 to expand the list, and F11 to display the parameter names
parameters | Permissible values | values | description of the command |
|---|---|---|---|
TRANSMODE |
|
| Specifies whether files may be sent and/or received during the OFTP connection. |
PARTNER |
|
| |
PROFILE |
|
| |
ORIGINATOR |
|
| |
ORIGOID |
|
| SFID sender (ORIGOID) – only for ORIGINATOR(*NONE). The Odette ID for the sender for use in the SFID. (ISO 646 subset) |
FS |
|
| File system of the input file(s). |
FRMPATH | Input path (FRMPATH) - only for FS(IFS). Specify the path to the IFS input file here. Use ‘*’ as a wildcard character for a generic selection of input files. | ||
FRMFILE |
| All files in the source directory/source library will be sent. | Input file (FRMFILE) – only for FS(DB2). Enter the input file to be sent here. Use ‘*’ as a wildcard character for a generic selection of input files. |
subfile |
| All source subfiles of the DB2 input file are sent. | Die Teildatei im DB2-Dateisystem. |
library | |||
TRANSTYPE |
|
| Data can be sent via OFTP2 in two different ways. |
DESTIN |
|
| This is the Odette ID of the destination, which is used for every file transfer. It may differ from the Odette code of the physical partner if, for example, the recipient is a service provider and forwards data to other receiving locations. (ISO 646 subset) |
DATASET |
| The virtual file name is formed from the physical name of the sent file. | The virtual name of the transfer file. The content is agreed with the partner. This name is transmitted to the remote station during the transfer. The physical name on the source system is not transmitted to the remote station unless the special value *FRMFILE is selected. |
USRDTAFILE |
|
| Depending on the agreement between you and your partner, it may be necessary to enter specific data in this SFID user data field. (ISO 646 subset) |
FVUT |
|
| Specifies the basic structure of the data to be sent. The selection influences the way line separators are processed and used on the receiving end. |
FILEDESCR | Text field encoded in UTF-8. The content is determined by mutual agreement. | ||
DELETE |
|
| Specifies whether the transferred source file should be deleted after sending. |
FILECOMPR |
|
| Defines the compression method. |
SIGNNOTIF |
|
| Specifies whether the notification request (EERP/NERP) should be signed by the end point. |
SECLEVEL |
|
| Select whether the file was signed and/or encrypted before transmission. |
CIPHER |
|
| The cipher suite used when signing and/or encrypting the file. A signed end-to-end response is also expected in this format. The following information in the following order: ALGORITHM_SYMMETRIC ALGORITHM_ASYMMETRIC HASHING |
List of parameters for the instance if no server profile (*RECEIVE) was specified.
parameters | description |
|---|---|
PROFOID | Username sent to the partner for authentication (ISO 646 subset) |
PROFOPASS | Password sent to the partner for authentication purposes. |
BASEPATH | Partner base directory in which subdirectories are created for partners. The directory name corresponds to the Odette ID and contains a work folder, a receive folder and a send folder (ISO 646 subset). |
SSLUSE | Connection with SSL encryption, which determines whether the connection should be encrypted. In addition, the server must authenticate itself to the client. |
SSLCLTAUT | Client authentication, determines whether authentication is required from the client during connection establishment. |
SSLTSPATH | trust store path |
SSLTSPASS | Password to open the trust store |
SSLTSIMP | Import unknown certificates |
List of parameters for the partner profile if none were specified in the master data.
parameters | description |
|---|---|
PRTPROFILE | Partnerprofil |
OFTP2CRTX (OFTP2 CERTIFICATE EXCHANGE)
This command allows you to provide certificates for automatic exchange and establish a connection for file exchange.
parameters | permissible values | values | description of the command |
|---|---|---|---|
PARTNER |
|
| |
PRTPRF |
|
| |
DESTIN |
|
| This is the Odette ID of the destination, which is used for every file transfer. It may differ from the Odette code of the physical partner if, for example, the recipient is a service provider and forwards data to other receiving locations. (ISO 646 subset) |
PROFILE | At this point, refer to a communication profile created in the master data under menu item 52. | This is your own server profile. It is required to determine your own Odette ID with password, as well as your private keys. | |
TRANSTYPE |
|
| Data can be sent via OFTP2 in two different ways. |
TYPE |
|
| Select the OFTP2 command used to transfer the certificate. |
ALIASOLD |
|
| Specify the alias of the certificate to be exchanged at the remote station. Please note that older software ignores this information. |
USAGEOLD |
|
| Select the intended use of the certificate to be exchanged at the remote station. If you are only using one certificate, select any intended use. The SSL certificate cannot be selected because it must be available at the remote station to establish the connection. |
PATHOLD |
|
| |
ALIASNEW |
|
| Specify the alias of the certificate to be sent to the remote station. |
USAGENEW |
|
| Select the intended use of the certificate to be sent. If you are only using one certificate, select any intended use. The SSL certificate cannot be selected because it must be available on the other side to establish the connection. |
PATHNEW |
|
|
STREFFSBS (START IEFFECT SUBSYSTEM)
Start of the i-effect subsystem *OFTP2
STREFFSBS SUBSYSTEM(*OFTP2)
ENDEFFSBS (START IEFFECT SUBSYSTEM)
Stopping the i-effect subsystem *OFTP2
ENDEFFSBS SUBSYSTEM(*OFTP2)