Examples:

# ====================================================

# This comment block will not be logged to the console

# ====================================================

12.2.4 * (Loud Comment)

Descriptive

* [
comment]

Diagram

Êʬ¬¬ * ¬¬¬ comment ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ÊÍ

Lines starting with '*' are treated as "loud comments". They will be logged to the console and thus are
visible when the run-commands file is executed.

Examples:

* ================================================

* This comment block will be logged to the console

* ================================================

12.3 Automating Hercules Startup

Creative use of the run-commands file can completely automate Hercules startup. The next figure shows
a sample run-commands file that does the following:

“pause 1” Wait one second before processing the first Hercules command. (1) “cmdlevel all” Set the current command group to ALL. This allows that all Hercules commands
can be issued. (2)
“help” Display all valid commands for the chosen command group that has been set before with
CMDLEVEL. (3)
“maxrates midnight” Set the MAXRATES reporting interval to midnight to have the MIPS and
I/O statistics issued date aligned. (4)
“sh startgui "D:\MVS\TERMINALS.BAT" Execute the named batch file in the shell to start a
couple of tn3270 sessions. See details below. (5)
“pause 3” Wait three seconds until all tn3270 sessions have been successfully connected. (6)
“ipl 0148” Finally IPL MVS 3.8J from device address 148. (7)

# ==============================================================================

# Hercules RUN-COMMANDS (RC) File

# ==============================================================================

# ------------------------------------------------------------------------------

# Wait 1 second before issuing Hercules commands (1)

# ------------------------------------------------------------------------------

pause 1

# ------------------------------------------------------------------------------

# Set command level to 'ALL' (2)

# ------------------------------------------------------------------------------

cmdlevel all

# ------------------------------------------------------------------------------

# Display all valid Hercules panel commands (3)

# ------------------------------------------------------------------------------

help

# ------------------------------------------------------------------------------

# Display and reset maxrates values (4)

# ------------------------------------------------------------------------------

maxrates midnight

# ------------------------------------------------------------------------------

# Start tn3270 sessions (5)

# ------------------------------------------------------------------------------

sh startgui "D:\MVS\TERMINALS.BAT"

# ------------------------------------------------------------------------------

# Wait 3 second before IPL’ing MVS (6)

# ------------------------------------------------------------------------------

pause 3

# ------------------------------------------------------------------------------

# IPL MVS 3.8J (7)

# ------------------------------------------------------------------------------

ipl 0148

# ==============================================================================

# (RC EOF)

# ==============================================================================

Figure 350: Run-commands (.rc) file

With the run-commands file shown above the Hercules startup is fully automated. After starting Hercules
there is no manual intervention required until MVS is up and running.

Previous Page Next Page