CFTEXIT - About exit parameters

This topic describes the CFTEXIT command, used to start an EXIT task.

Related topics

Parameters

ID

Command identifier

LANGUAGE

Language used to write the user program.

The possible values are COBOL and C language.

This attribute enables Transfer CFT to exchange data with the program using the EXIT task via the structure best suited to the language in which it is implemented.

PARM 

Free field available to the user.

PROG

Name of the executable module corresponding to the EXIT task to be activated.

This module consists of the interface provided with the Transfer CFT product and linked with the program written by the user.

In order to facilitate identification of the associated modules, it is advised to name these modules as follows:

  • CFTEXA: Directory type EXIT
  • CFTEXF: File type EXIT
  • CFTEXE: End of transfer type EXIT

You can use the last two characters to assign a sequential number to the name, for example CFTEXA01.

RESERV

Size of the work area reserved for the user.

TYPE

Enter exit type.

FORMAT

Indicates the format for the communication area.

WAITTASK

Inactivity time (in minutes) of the EXIT task. Beyond this value, this task is deactivated, i.e. unloaded from the memory.

This parameter only applies to file EXIT tasks.

Example 1 - Parameter setting for a file type EXIT

CFTSEND

ID = PAY,

 

 

EXIT = IDEXIT

 

CFTEXIT

ID = IDEXIT,

 

 

LANGUAGE = C,

 

 

RESERV = 4000,

 

 

PROG = FILEXEC

 

Example 2 - Parameter setting for an directory type EXIT

CFTPROT

ID = PSIDTH,

 

 

TYPE = PESIT,

 

 

EXIT = EXAM

 

CFTEXIT

ID = EXA,

 

 

PARM = SAMPLE,

 

 

LANGUAGE = C,

 

 

PROG = MYEXA,

 

 

TYPE = ACCESS

 

Related Links