Table 10. Application Request Validation
Operation Identifier |
|
|
|
0 | NONE if application ID=0 |
|
|
0 | Dotted decimal format IP address of client host when application ID=1 or 2 |
|
|
Absolute path name of library or directory | |
| /QSYS.LIB/QGPL.LIB1 |
| /QOpenSys/DirA/DirAB/DirABC2 |
Absolute path name of file | |
| /QSYS.LIB/MYLIB.LIB/MYFILE.FILE/MYMEMB.MBR1 |
| /QOpenSys/DirA/DirAB/DirABC/FileA12 |
9 | CL command string |
|
|
: |
|
1 | QSYS.LIB file system pathnames are always in uppercase |
| |
2 | QOpenSys file system pathnames are case sensitive and may be in either upper or lower case. |
|
Table 11 defines the FTP client and server subcommands that are associated with each operation identifier.
Table 11. FTP Client and Server Subcommands Associated with Operation Identifiers
Operation Identifier | Client Subcommands | Server Subcommands | |
|
|
|
|
0 | - Initialize Session | OPEN | new connection1 |
1 | - Create Directory/Library |
| MKD, XMKD |
|
|
|
|
2 | - Delete directory/library |
| RMD, XRMD |
|
|
|
|
3 | - Set current directory | LCD | CWD, CDUP, XCWD, XCUP |
|
|
|
|
4 | - List directory/library |
| LIST, NLIST |
|
|
|
|
5 | - Delete files |
| DELE |
|
|
|
|
6 | - Send files | APPEND, PUT, MPUT2 | RETR |
7 | - Receive files | GET, MGET2 | APPE, STOR, STOU |
8 | - Rename files |
| RNFR, RNTO |
|
|
|
|
9 | - Execute CL commands | SYSCMD3 | RCMD, ADDM, ADDV, CRTL, CRTP, |
|
|
| CRTS, DLTF, DLTL |
|
|
|
|
: |
|
|
|
Notes:
1. The exit program is called with this operation identifier each time the FTP server receives a connection request.
2. For the MGET and MPUT subcommands, the exit program is called once for each file that is sent or retrieved.
3. If an exit program is associated with exit point QIBM_QTMF_CLIENT_REQ, the F21 (CL command line) key is disabled and the user must use the System Command (SYSCMD) subcommand to run a CL command.
The following notes apply to the REXEC server (application identifier 2):
1.The only valid values for the operation identifier are 0 and 9.
2.If the returned Allow operation output parameter is not valid, the REXEC server will not allow the operation and the message ″Data from exit program for exit point &1 is missing or not valid″ is issued to the job log.
88OS/400 TCP/IP Configuration and Reference V5R1