When recording macros,
it is sometimes helpful to send extra Clear
keystrokes when at the VM prompt. This cleans up the screen
before the next command. Beware that
in an application which redraws the screen after
receiving
a Clear, this can cause extra copies
of data to be collected as Host Publisher recognizes
the screen again (see the Screen
Recognition section).
AS/400 disconnect
When recording a Disconnect macro on an
AS/400, use the explicit commands off
or signoff. The
90 command on different accounts can result in
an off or a signoff.
The two commands have different behaviors (one returns to a login
screen, while the other might not). A disconnect macro that was
recorded using 90 on one account might not work
properly on another account.
Attaching and detaching macros
Having recorded a macro, it is tempting to
attach it in other places where the same input needs
to be sent. However, this seldom works. The macro
recorder inserts waits for screens in its macros,
expecting a screen with the same cursor position as was
present when the macro was recorded. Even a simple
macro might not work when attached somewhere else, since
the terminal screen probably has a different
cursor position at that point in the session.
Waiting for Ready
To wait for the "Ready;" prompt in a macro
(or any other specific string),
edit the macro and add a line