B.5.10 RSTNDX RDDISK (6.16), SEARCH (6.17), WRTDSK (6.22) An INDEX COMM0N area is restored from MEMORY, by name, by calling subroutine RSTNDX. This routine uses SEARCH to locate the directory entry for the data item. If the data item is stored on mass memory it is read into MEMORY by RDDISK (possibly preceded by a call to WRTDSK to prevent data in MEMORY from being destroyed). Once the address of the data in MEMORY is known, the data are transferred back to the INDEX C0MMON area. B.5.11 RSTSIM RDDISK (6.16), SEARCH (6.17), WRTDSK (6.22) To restore an SIM from MEMORY to the SIM COMMON area the sub- routine RSTSIM is called. The function SEARCH determines the directory entry for the SIM. If it is not in MEMORY, it must be read from mass memory to MEMORY using RDDISK. First, however, it may be necessary to store the data in MEMORY onto mass memory using WRTDSK to prevent their destruction. Once the address of the SIM in MEMORY is known the SIM is moved back to the SIM COMMON area. B.6.12 SUBSIM ISPACE (6.10) The subroutine SUBSIM eliminates rows and columns, whose status flags are less than zero, from the SIM COMMON area. The SIM is copied into the work space in the SPACE COMMON area. First the work space is initialized by calling ISPACE. The retained part of the SIM is then copied back into the SIM COQIlU'1i area.