An ALGOL program initiated from a MARC or CANDE session inherits the STATION task attribute of the session. The STATION attribute is in turn inherited by any processes initiated by the ALGOL program. As a result, the processes initiated by the ALGOL program can usually open a remote file at the originating terminal without having to make any special remote file assignments.
However, remote file opens can fail because the STATION attributes stores the logical station number (LSN), which is subject to change. To prevent this problem, you can include statements such as the following in the ALGOL program:
EBCDIC ARRAY SOURCEARRAY[0:255]; REPLACE SOURCEARRAY BY MYSELF.SOURCENAME; REPLACE MYSELF.STATIONNAME BY SOURCEARRAY;
The preceding statements assign the originating station name to the STATIONNAME task attribute, which in turn is inherited by all tasks.
An ALGOL program initiated from a WFL job or from an ODT might not inherit a STATION or STATIONNAME value. For further information, refer to Work Flow Language (WFL) in this section and to the ODT discussion in Tasking from Interactive Sources.

