FIND-STATION

The FIND-STATION paragraph is performed by the SEND-TO-LINC paragraph, to find the initiating station parent requestor (dialog index) to pass to your application, so that it can use the dialog handling facilities.

This paragraph is also performed by the PROCESS-LINC-RESPONSE paragraph when processing responses, to find the initiating station table entry, so new stations can be added, or stations that are closed down can be cleared.

If you do not require the retention of session data in memory only, the station table and the code to handle it are not necessary. Refer to the comments on session data under SEND-TO-LINC for more information.

This paragraph performs the following tasks:

  1. If the station name in the message area matches the table entry, the found indicator is set, and the table position is identified.

  2. If a free position has been found, the free position is identified.

  3. If the end of the table has been reached, and a free position has been found, an indication that the station is not in the table is made.

  4. If the end of the table has been reached and no free positions have been found, an indication that there is no room in the table is made.