9.4.3 Examples

Example 1:

There is a shared device server on the local host listening on port 3990 and we want to use its 0100
device as our 0100 device. The device statement will look like this:

0100 3390 localhost:3990:0100

Because the default port number is actually 3990 and the default remote device address is the same as
the local device number the above statement (providing we do not have actually a file named 'localhost' )
could be shortened as follows:

0100 3390 localhost

Example 2:

Device sharing can also be split between multiple instances. For example, suppose the following device
definitions and system parameter for instance A:

SHRDPORT 3990

0100 3390 localhost:3991

0101 3390 mvscat.dasd

And for instance B we have the following device definitions and system parameter:

SHRDPORT 3991

0100 3390 mvsres.dasd

0101 3390 localhost

In this case each instance acts as both a client and a server. Both instances of Hercules are running on
the same machine.

The above examples may be clearer if we specify also all the default values. To show this the same con-
figuration is used but in this case the Hercules instances are running on separate physical machines:

Hercules instance A (machine IP 192.168.200.1):

SHRDPORT 3990

0100 3390 192.168.200.2:3991:0100 # Remote on 192.168.200.2 (mvsres.dasd)

0101 3390 mvscat.dasd # Local on 192.168.200.1 (mvscat.dasd)

Hercules instance B (machine IP 192.168.200.2):

SHRDPORT 3991

0100 3390 mvsres.dasd # Local on 192.168.200.2 (mvsres.dasd)

0101 3390 192.168.200.1:3990:0101 # Remote on 192.168.200.1 (mvscat.dasd)

10. Hercules 3270 Logo

10.1 Function

The Hercules 3270 logo is the initial welcome screen that is presented when a 3270 terminal connects to
a Hercules 3270 device. While in previous releases of Hercules this logo screen was hardcoded it can
now be customized.

The customized logo is stored in a plain text file which contains positioning orders, attributes and supports
variable substitutions. Each line in the text file represents either an order statement or a plain text line. If
no logo file is specified then Hercules uses a built-in default logo. Upon startup Hercules will first look in
the current directory for a file called "herclogo.txt". The name of the logo file can also be specified as a
startup option by using the "-b" flag. The file may also be specified using the "LOGOFILE" system para-
meter or can be changed during Hercules operation using the "HERCLOGO" console command.

10.2 Order Commands

Order commands are used to set the current buffer position, set the highlight and/or protected attributes,
to force a skip to a new line and to specify text alignment.

10.2.1 Set Buffer Address

Descriptive

x,y

Diagram

Êʬ¬¬ ¬¬¬ x,y ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ÊÍ





The Set Buffer Address order sets the current buffer position to row x and column y. Row and column
both begin counting with zero.

10.2.2 Set Field

Descriptive

Previous Page Next Page