10.3 Variables

It is possible to imbed substitution variables in the outgoing text. Substitution is indicated by enclosing the
variable name between "$(" and ")". The Hercules version as an example can be specified by the
following string: $(VERSION)

The following variables are defined. It is also possible to specify environment variable names.

$(VERSION)
The Hercules version.
$(HOSTNAME)
The host name, on which Hercules is running.
$(HOSTOS)
The host operating system.
$(HOSTOSREL)
The release of the host operating system.
$(HOSTOSVER)
The version of the host operating system.
$(HOSTARCH)
The host architecture.
$(HOSTNUMCPUS)
The number of host CPUs. UP (Uniprocessor for one CPU), or MP=n (Multiprocessor for more
than one CPUs).
$(LPARNAME)
The LPAR name specified in the configuration file.
$(CSS)
The logical channel subsystem set or channel set for the terminal.
$(SUBCHAN)
The subchannel number for the terminal.
$(CCUU), $(ccuu), $(CUU), $(cuu)
Various forms of the device number of the terminal.

10.4 Sample

The file "herclogo.txt" is provided in the Hercules distribution as a sample template. This sample reflects
the contents of the built-in logo.

@ALIGN NONE

@SBA 0,0

@SF P

Hercules Version :

@SF HP

$(VERSION)

@NL

@SF P

Host name :

@SF HP

$(HOSTNAME)

@NL

@SF P

Host OS :

@SF HP

$(HOSTOS)-$(HOSTOSREL) $(HOSTOSVER)

@NL

@SF P

Host Architecture :

@SF HP

$(HOSTARCH)

@NL

@SF P

Processors :

@SF HP

$(HOSTNUMCPUS)

@NL

@SF P

Chanl Subsys :

@SF HP

$(CSS)

@NL

@SF P

Device number :

@SF HP

$(CCUU)

@NL

@SF P

Subchannel :

@SF HP

$(SUBCHAN)

@SF P

@ALIGN LEFT

HHH HHH The S/370, ESA/390 and z/Architecture

HHH HHH Emulator

HHH HHH

HHH HHH EEEE RRR CCC U U L EEEE SSS

HHHHHHHHHHHHHHHH E R R C U U L E S

HHHHHHHHHHHHHHHH EEE RRR C U U L EEE SS

HHHHHHHHHHHHHHHH E R R C U U L E S

HHH HHH EEEE R R CCC UU LLLL EEEE SSS

HHH HHH

HHH HHH

HHH HHH I can’t believe it’s not a MAINFRAME

Copyright (c) 1999-2010 Roger Bowler, Jan Jaeger, and others

Figure 348: Logo File

Previous Page Next Page