The STATIONNAME task attribute is the preferred method of specifying the station where remote files should be opened. However, CANDE does not assign the STATIONNAME attribute of programs or WFL jobs initiated from a CANDE session. It is therefore advisable for you to explicitly assign a STATIONNAME value to any interactive processes originating from a CANDE session.
For example, you can include the following statement in WFL jobs initiated from a CANDE session:
MYSELF(STATIONNAME = #MYSELF(SOURCENAME));
This STATIONNAME value is inherited by any tasks of the WFL job, and enables them to open remote files successfully.
The STATION task attribute can be used for a similar purpose. However, the STATIONNAME task attribute is more reliable than STATION, because STATION stores a logical station number (LSN), and the LSN of any given station is subject to change.

