Remote files are of a special nature in that an object program can treat a remote station as a file by setting the KIND file attribute to REMOTE. (Refer to the File Attributes Programming Reference Manual for additional information about setting file attributes.)
More than one open file can be assigned simultaneously to a station. However, more than one input or input/output (I/O) file cannot be open at the same station at the same time.
When a remote file is opened for input or input and output, all input received from the station is considered input to the file and not a command to CANDE. The only exception occurs when a line is preceded by the control character of the station. In that case, the input is to be a control command and is sent to CANDE for processing.
You can direct output to another CANDE station by specifying the LSN of the station through the STATION <task equation list> construct (see the discussion of the <task equation list> construct in Basic Constructs).
For example, the following command directs the remote output to LSN 15:
EXECUTE;STATION=15
You can also assign remote files to other CANDE stations by using the TITLE attribute and setting the STATION <task equation list> to zero. For example, the following command directs file R to the station name TTY3:
EXECUTE;STATION=0;FILE R(TITLE=TTY3)