LINK-LINE/UNLINK-LINE Command

The LINK-LINE command links an unattached communications line to a process.

Format

LINK-LINE line-process [(U)]

Parameter(s)

line

Number of the line you want to link.

process

Number of the process to which you want to link the line.

U

Breaks any existing link and attachment between the specified line and any other process and links the line to the specified process.

Description

When the process is successfully linked, this message displays:

[8010] LINE n LINKED TO PROCESS p

where n is the line and p is the process you specified. If the specified line is already linked or attached to another process, this message displays:

[8011] LINE IN USE.

Linking a Line to a Process

This example links line 2 to process 4:

>LINK-LINE 2-4

[8010] LINE 2 LINKED TO PROCESS 4.

The next example breaks any existing links or attachments to line 3 and process 5, then links line 3 to process 5:

>LINK-LINE 3-5 (U)

[8010] LINE 3 LINKED TO PROCESS 5.

The UNLINK-LINE command breaks the link between a specified communications line and the process to which it is linked.

Format

UNLINK-LINE line

Parameter(s)

line

Number of the line you want to unlink.

Description

UNLINK-LINE breaks any attachment between the line and the process. Unlinked and unattached lines are made available with this command—that is, they are free to be linked and attached to any process.

When the line is successfully unlinked, this message displays:

[8012] LINE n UNLINKED.

where n is the line you specified. If the line is already unlinked or detached, no message displays when you enter the UNLINK-LINE statement.

To link a line to a process, use the LINK-LINE command.

Unlinking and Detaching a Line from a Process

This example unlinks line 5 from whatever process it was linked to (usually 5) and makes it available:

>UNLINK-LINE 5

[8012] LINE 5 UNLINKED.