Previous Page Contents Page

A.2 AS/400 File Transfer Errors

Once the file transfer program has generated and sent a transfer request, the AS/400 processes the request. If it detects a problem with the request, it returns a text error message. The file transfer program receives the text and converts it from EBCDIC to ASCII using the same code page conversions as would have been used for data, and directs the translated text to the command line. In some cases (specified in the following information), when the keyword send, receive or list are specified, the AS/400 error is replaced with a more straightforward message. When the AS/400 detects a problem, the file transfer program returns an exit code of FT_AS400_ERR.

IWS2021

REPLACE * is not allowed if FILETYPE(DATA) is specified. Recovery . . . : Specify the fields to transfer on the REPLACE clause and a file name on the REFFILE value. Submit the request again.

This message can only be returned on REPLACE transfer requests. The file type is DATA by default, so this error occurs if a file is being created and * is specified in the REPLACE clause, but FILETYPE(SOURCE) is omitted.

IWS2022

Member membername of AS/400 file filename in library libname already exists. Recovery . . . : Specify that the member is not to be created or specify a different member name. Then try the request again.

This message can only be returned on REPLACE transfer requests.

IWS2023

Data already exists in member membername of AS/400 file filename in library libname. Recovery . . . : If you continue, the data in the member will be replaced.

The file transfer program detects this message (which is only a warning, not an error) and prompts you:

     Continue? (y/n)

File transfer only continues if you reply yes to this message.

IWS2027

Incorrect value in the RCDLEN value. Cause . . . . . : The only value allowed is a number from 13 to 4108. Recovery . . . : Change RCDLEN value. Submit the request again.

This message can only be returned on REPLACE transfer requests. If this error occurs when the file transfer program send was used, the file transfer program intercepts this message and replaces it with the following:

     Error: Record length must be between 13 and 4108.

IWS2028

If RCDLEN is specified, * must be specified on the REPLACE clause. Recovery . . . : Change the REPLACE clause. Submit the request again.

This message can only be returned on REPLACE transfer requests.

IWS2029

If CRTFILE(YES) is specified, then RCDLEN or REFFILE must be specified. Recovery . . . : Specify the missing value. Submit the request again.

This message can only be returned on REPLACE transfer requests.

IWS2032

A file cannot be created without a member. Cause . . . . . : If CRTFILE(YES) is specified, then CRTMBR(YES) must also be specified. Recovery . . . : Specify CRTMBR(YES). Submit the request again.

This message can only be returned on REPLACE transfer requests.

IWS2035

The request contains characters that do not follow the correct format. Recovery . . . : Correct the format. Submit the request again.

This error occurs when a transfer request parameter is not recognized by the AS/400, or if the parameters are given in the wrong order.

IWS2036

AS/400 file filename in library libname already exists. Recovery . . . : Specify that the file is not to be created or specify a different file name. Then try the request again.

This message can only be returned on REPLACE transfer requests.

IWS2501

The transfer request is not correct. Cause . . . . . : Only EXTRACT, SELECT or REPLACE and OPTIONS are permitted. Recovery . . . : Correct the request. Submit the request again.

IWS2541

File name not correct. Recovery . . . : Correct the file name. Submit the request again.

This error also occurs if a library name (which ends with the character /) is given where a file name is expected. If this error occurs after the file transfer program list with option, the following message is displayed:

     Error: filename is not a file with fields

IWS2561

Field fieldname was not found. Recovery . . . : Change the field name. Submit the request again.

IWS9812

File filename in library libname could not be found. Recovery . . . : Change the file or library name. Submit the request again.

This error also occurs if the reference file specified in the reffile parameter of a REPLACE request does not exist. If this error occurs after a file transfer program list operation it is replaced by the following message:

     Error: filename not found.

IWS9813

Member membername not found in file filename in library libname. Recovery . . . : Change the member, file or library name. Submit the request again.

IWS9815

Field fieldname was not found in the record format in file filename in library libname. Recovery . . . : Change the field name. Submit the request again.

IWS9897

The PC has sent incorrect data to the host system program. Cause . . . . . : The data causing the error is X'datastream

Previous Page Contents Page Top of Page