Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

Reality V15.2 Online Documentation (MoTW) Revision 3

HYPER-REMOVE command (hyperremove.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

HYPER-REMOVE

Removes a specific section, or all sections, from a hyper file by updating the lookup table in the hyper file definition item (H-pointer) and removing any applicable update locks from the sections; optionally, it deletes the data sections themselves.

Command class

TCL-I command.

Syntax

HYPER-REMOVE hyper-file-name {key-value|entry-no|*} {(options}

Syntax elements

hyper-file-nameThe file-specifier of the hyper file.

key-valueSelects a hyper section by its corresponding key value in the lookup table.

entry-noSelects a hyper section by the offset of its entry in the lookup table. Entry numbers start at 1.

*Selects all hyper sections.

Options

LSuppress file locking on the hyper file (not recommended).

RDeletes the removed data section(s).

Operation

If you use the command with * as the second parameter, all hyper sections are selected. This enables a complete hyper file and its sections to be deleted. If the hyper sections have update locks this is not possible with DELETE-FILE, without first removing the locks.

If you use the command with a second parameter other than * the command first assumes that this is a key-value. If there no such key value in the lookup table, the command then tries it as an entry-no.

If the second parameter is neither a key value nor a valid entry number, or if you use the command without any second parameter, the lookup table is displayed and you are prompted for an entry number:

File table specified as:

   1) key-value1  hyper-section-name1 
   2) key-value2  hyper-section-name2 
   3) key-value3  hyper-section-name3
      ...

Enter entry number of section ?

The command takes a lock on the hyper file (unless this is suppressed by the L option) and removes the selected section or sections from the lookup table, and therefore the hyper file. The command also removes the update lock from all removed sections.

Finally, if the R option is specified, the command also deletes the data sections.

RealityV15.2Revision 3Comment on this topic