A WFL job can initiate an interactive process, but you might need to include a task attribute assignment for the interactive process to run properly. The STATIONNAME and STATION task attributes specify the station where any remote files used by the process are to be opened. WFL jobs initiated through a CANDE or MARC START command do not inherit the STATIONNAME or STATION of the remote terminal where they are initiated. You can remedy this problem by including the following statement at the start of the job:
MYJOB (STATIONNAME = #MYSELF(SOURCENAME));
This statement assigns the name of the station that initiated the job to the STATIONNAME attribute. This STATIONNAME value is inherited by all tasks initiated by the job. (Note that this assignment is lost across a halt/load. For details, refer to Restarting Jobs and Tasks.)
It is preferable to assign the STATIONNAME attribute rather than the STATION attribute, because the STATIONNAME attribute stores the station name, which is less volatile than the logical station number (LSN) stored by the STATION attribute.

