fdisp

CFTSEND, SEND

[FDISP = { SHR | CHECK }]

File sharing option:

  • SHR: shared access, which means that a file can be transferred at the same time for two partners
  • CHECK: if the file is modified during a transfer, the transfer is aborted
Note The value "OLD" is deprecated.

CFTRECV, RECV

[FDISP = { NEW | OLD | BOTH }]

Presence check indicator of the receiver file used to determine the action of the Transfer CFT:

  • NEW: the file must be created by Transfer CFT. The transfer is refused if this file already exists
  • OLD: the file must already exist
  • BOTH: if the file does not exist, it is created

The following table shows the combined effect of the FDISP and FACTION parameters when used in a RECV command.

CFTRECV, FDISP CFTRECV, FACTION Comments
both delete If no file exists, the file is created. If file exists it is deleted and recreated (regardless of if it is empty or not).
both erase If no file exists, the file is created. If file exists it is overwritten (no matter if it is empty or not).
both verify If no file exists, the file is created. If file exists and it is not empty, the transfer is aborted. If file exists but it is empty, the file is overwritten.
new verify If no file exists, the file is created. If file exists the transfer is aborted (regardless of if it is empty or not).
old delete If no file exists, the transfer is aborted. If file exists the file is deleted and recreated (regardless of if it is empty or not).
old erase If no file exists, the transfer is aborted. If file exists the file is overwritten (regardless of if it is empty or not).
old verify If no file exists, the transfer is aborted. If file exists and it is not empty, the transfer is aborted. If file exists but it is empty, the file is overwritten.

Return to Command index

Related Links