Writing a Macro
PASSPORT PC TO HOST, PASSPORT WEB TO HOST
TN3270, TN5250, VT, SCO ANSI, Wyse 60
Writing a macro.
The easiest way to write a macro in PASSPORT is to record one and then edit it.
To record a macro, start PASSPORT and proceed to the point where you wish to start recording.
Select the Macro®Record menu command in an active session. Step through the process you wish to record.
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.
Once the process you want to record is complete, select the Macro®End Record menu command.
Enter a name for the macro.
To edit a macro, select the Macro®Edit menu command.
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.

macro, write, writing, record