Send and Receive Files
This section explains about the files which can be sent and received on HULFT for IBMi.
File Organization
Physical data files and archive files can be handled.
-
Note during a archive file transfer:
Specify the transfer type as binary.
Multicasting cannot be done.
-
Note related to the file name:
You cannot use reserved words such as '*FIRST' or '*FILE' and so forth for the specification of the operation as to Send and Receive files as well as other files. Using the file name with the reserved words may result in unexpected behavior.
-
You cannot send or receive the files on the integrated file system.
Record Type
The file of fixed length type can be handled.
Record Length
The maximum record length of the file which is handled by the Send process is up to 32,766 bytes.
In the case of format and multi format transfer, the maximum length of one record is up to 19,997 bytes.
The maximum record length of the file which is handled by the Receive process is up to 32,766 bytes.
However, in the case of archive files, the record length of the file is fixed to 512 bytes.
Record Count
The maximum record count per file is 2,147,483,646.
The file of which record count is 0 (namely, a file of 0 byte) is sent as well.
Sign of the Signed External Decimal
Refer to the following for the value which can be used by the sign and zone of the signed external decimal:
HULFT10 Code Conversion Manual :
Format Field Size and the Number of Fields
The following is the lengths of one field at the time of the Format Transfer and the Multi Format Transfer. The number of fields that can be registered on one record is up to 1000.
Field Type |
Size (Bytes) |
Remarks |
---|---|---|
X |
1 to 9999 |
|
M |
1 to 9999 |
|
N |
2 to 9998 |
However, the field type can treat only the even number. |
9 |
1 to 18 |
|
B |
2, 4, 8 |
|
P |
1 to 10 |
However, the field type can treat only up to 18 characters. |
S |
1 to 18 |
|
F |
4, 8 |
|
I |
1 to 9999 |
|