8.47.5 Examples

Example 1:

Display the current size of the main and expanded storage.

HHC00013I Herc command: 'defstore'

HHC17003I MAIN storage is 256 M (mainsize); storage is not locked

HHC17003I EXPANDED storage is 256 M (xpndsize); storage is not locked

Figure 96: MAINSIZE command (display size of main and expanded storage)

Example 2:

Display the current size of the main storage.

HHC00013I Herc command: 'defstore main'

HHC17003I MAIN storage is 256 M (mainsize); storage is not locked

Figure 97: MAINSIZE command (display size of main storage)

Example 3:

Set the size of the main storage to 512 MB. Lock the storage into the memory.

HHC00013I Herc command: 'defstore main 512 lock'

HHC01428I Locking main storage

HHC17003I MAIN storage is 512 M (mainsize); storage is locked

Figure 98: MAINSIZE command (Set size of locked main storage)

Example 4:

Set the size of the main and expanded storage to 512 MB each. Lock the main storage into the memory,
but do not lock the expanded storage.

HHC00013I Herc command: 'defstore main 512M lock xstor 512M unlock'

HHC01428I Locking main storage

HHC17003I MAIN storage is 512 M (mainsize); storage is locked

HHC17003I EXPANDED storage is 512 M (xpndsize); storage is not locked

Figure 99: MAINSIZE command (Set size of main and expanded storage)

8.48 DEFSYM (Define a symbol)

8.48.1 Function

The DEFSYM command defines symbol ‘symbol’ as to contain value ‘value’. The symbol can then be the
object of a substitution for later panel commands. If the value contains blanks or spaces then it must be
enclosed within quotes or apostrophes. See chapter “Symbol Substitutions” for a more in-depth discus-
sion on this feature.

8.48.2 Syntax

Descriptive

symbol []]

Diagram

¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ÊÍ



symbol ¬¬¬§¬¬¬¬¬¬¬¬¬¬¬¬¬«




8.48.3 Parameter

symbol

The name of a symbol. If no symbol name (and optionally a value) is given then all
previously defined symbols are listed.

value

The value that is assigned to the symbol. If the value is omitted then the previously
defined symbol is cleared, the symbol itself is not deleted.

8.48.4 Examples

Example 1:

List all defined symbols.

HHC00013I Herc command: 'defsym'

HHC02199I Symbol VERSION '3.0.7.6879'

HHC02199I Symbol BDATE 'Oct 12 2010'

HHC02199I Symbol BTIME '18:23:14'

HHC02199I Symbol HOSTNAME 'GOOFY'

HHC02199I Symbol HOSTOS 'Windows'

HHC02199I Symbol HOSTOSREL '6.1.7600'

HHC02199I Symbol HOSTOSVER 'NT '

HHC02199I Symbol HOSTARCH 'i686'

Previous Page Next Page