Salesforce

EOF (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

EOF (Magic xpa 3.x)

Reports whether the specified I/O device is at the end of information. Whenever an I/O device reaches the end of information, and EOF flag is raised. This flag is queried by the EOF function.

Syntax:

EOF(generation, device)

Parameters:

generation: A number that represents the task's hierarchic position in the runtime task tree. 0 represents the current task, 1 its immediate ancestor, and so on.

device: A number that represents the sequence number of the I/O device in the current task.

Returns:

Logical

Example:

EOF(0,1)returns TRUE after processing the last record of the first I/O device in the current task.

Note:

EOF is used for input I/O devices. It should be used as an end condition in tasks that read information from operating system text (I/O) files. The following expression when used as an end condition in a task reading from a single I/O device will cause task termination as soon as the last piece of information is read from the file: EOF (0,1)

See also:

EOP, Line, Page

The Online and Rich Client Samples projects (program TS09 and RTS09)

Reference
Attachment 
Attachment