LINK-WS Command

The LINK-WS command links process workspace while the system is up and running.

Format

LINK-WS [(n [–m]) | (S)]

Parameter(s)

n

Number of the process you want to relink.

n-m

Specifies a range of processes you want to relink.

S

Relinks process workspace blocks in the workspace extension table. This option overrides any numeric parameters.

Description

Use LINK-WS if you suspect that workspace links have been destroyed for some reason. You might find, for example, that a program or process aborts when you run it on one particular process, but works correctly when you run it on others.

If n or n-m is not specified, the workspaces of all processes, except those that are logged on and the Spooler, are relinked. If a process is logged on during the relinking, the message ON! displays, and the workspace is not relinked.

Using the S Option

Use the S option if TCL commands fail when executed from mvBASIC programs. If you use the S option, and an mvBASIC program tries to perform an EXECUTE statement while the relinking is taking place, the program pauses until all workspace extension blocks have been relinked.

Relinking Workspace

The workspace for process 0 (the system console) is normally initialized by the system at coldstart or at system generation time. Workspace for all other processes is linked by the Spooler. Workspace for the Spooler can be relinked only by a coldstart.

This example relinks workspace for all processes except for those currently running:

>LINK-WS

00 01 02 03 04 ON!

05 06 07 ON!

08 09 0A 0B 0C 0D 0E 0F

>