PASSPORT Knowledge Base
Macros

Date Published: May 19, 2004
Date Updated: March 10, 2008

Title

Writing a Macro

Product

PASSPORT PC to Host, PASSPORT Web to Host

Emulation Types

TN3270, TN5250, VT, SCO ANSI, Wyse 60

Issue

Writing a macro.

Solution

The easiest way to write a macro in PASSPORT is to record one and then edit it:

  1. To record a macro, start PASSPORT and proceed to the point where you wish to start recording.
  2. Select the Macro®Record menu command in an active session. Step through the process you wish to record.
  3. While recording your macro, you may wish to include additional functionality such as a prompt or pause. You may do so by selecting the desired function from the Macro menu command.
  4. Once the process you want to record is complete, select the Macro®End Record menu command.
  5. Enter a name for the macro.
  6. To edit a macro, select the Macro®Edit menu command.
  7. Select the macro file you want to edit form the dialogue box and click the Open button.

PASSPORT uses the Windows Notepad program as the default macro editor, but any text editor may be used to edit a macro file. PASSPORT macro files must have the *.mac, *.zmc, or *.zam file extension.

 

The structure of the macro file is very simple.  The PASSPORT macro is actually a macro subroutine.

 

Keywords

macro, write, writing, record