aftp_set_record_format

The aftp_set_record_format call sets the record format for the data transfer. A connection to the AFTP server is not required before using this call. The record format can be changed at any time.

AFTP_ENTRY aftp_set_record_format(
IN AFTP_HANDLE_TYPE
connection_id,
IN AFTP_RECORD_FORMAT_TYPE
record_format,
OUT AFTP_RETURN_CODE_TYPE AFTP_PTR
return_code
);

Parameters

connection_id
An AFTP connection object originally created with aftp_create.
record_format
The record format used for file transfer.
AFTP_DEFAULT_RECORD_FORMAT
Specifies that the system on which the file will be written should use its own default setting for record format. This is the initial setting.
AFTP_V
Variable length record, unblocked.
AFTP_VA
Variable length record, unblocked, ASA print-control characters.
AFTP_VB
Variable length record, blocked.
AFTP_VBA
Variable length record, blocked, ASA print-control characters.
AFTP_VBM
Variable length record, blocked, machine print-control codes.
AFTP_VBS
Variable length record, blocked, spanned.
AFTP_VBSA
Variable length record, blocked, spanned, ASA print-control characters.
AFTP_VBSM
Variable length record, blocked, spanned, machine print-control codes.
AFTP_VM
Variable length record, unblocked, machine print-control codes.
AFTP_VS
Variable length record, unblocked, spanned.
AFTP_VSA
Variable length record, unblocked, spanned, ASA print-control characters.
AFTP_VSM
Variable length record, unblocked, spanned, machine print-control codes.
AFTP_F
Fixed length record, unblocked.
AFTP_FA
Fixed length record, unblocked, ASA print-control characters.
AFTP_FB
Fixed length record, blocked.
AFTP_FBA
Fixed length record, blocked, ASA print-control characters.
AFTP_FBM
Fixed length record, blocked, machine print-control codes.
AFTP_FBS
Fixed length record, blocked, standard.
AFTP_FBSA
Fixed length record, blocked, standard, ASA print-control characters.
AFTP_FBSM
Fixed length record, blocked, standard, machine print-control codes.
AFTP_FM
Fixed length record, unblocked, machine print-control codes.
AFTP_U
Undefined length record.
AFTP_UA
Undefined length record, ASA print-control characters.
AFTP_UM
Undefined length record, machine print-control codes.
return_code
The return code issued for this function. See AFTP Return Codes for the list of possible return codes.

Example

{
    AFTP_HANDLE_TYPE       connection_id;
    AFTP_RETURN_CODE_TYPE  aftp_rc;

    /*
     * Before issuing the example call, you must have:
     * a connection_id, use:  aftp_create()
     */

    /*
     * Set the record format value for the file transfer.
     */

    aftp_set_record_format(
        connection_id,
        AFTP_VSA,
        &aftp_rc);
    if (aftp_rc != AFTP_RC_OK) {
        fprintf(stderr, "Error setting AFTP record format.\n");
    }

}
 

Line Flows

None.