Generating Message Strings
AFTP allows the caller to use consistent strings for AFTP transfer characteristics. AFTP will output the string to use when queried. It is also possible to output standard text messages for AFTP errors. The other API calls return an AFTP return code that can be queried to determine if an error message should be output.
Use these API calls to get text strings to use in messages issued by your application.
-
aftp_format_error
-
Generates text output for the current AFTP error. This should be used to output error information to the user when an AFTP call returns an error code.
-
aftp_get_data_type_string
-
Outputs the string corresponding to an input data type value.
-
aftp_get_date_mode_string
-
Outputs the string corresponding to an input date mode value.
-
aftp_get_record_format_string
-
Outputs the string corresponding to an input record format value.
-
aftp_get_write_mode_string
-
Outputs the string corresponding to an input write mode value.