Run a Macro

You can run Visual Basic macros created in InfoConnect and macros created with legacy INFOConnect, Reflection, and EXTRA! products. You can also run the majority of macros created with Rumba, IBM Personal Communications, OpenText HostExplorer, and Jolly Giant QWS3270 products.

NOTE:Macros must be in a trusted location. New macros are saved by default to a trusted location. If you have existing macros in a non-trusted location, you can move them, or use the Specify Trusted Locations Dialog Box to add their location to list of trusted locations.

You can also run a macro by mapping an action to a control, such as a Ribbon or toolbar button. For more information, see Add a Button to Run a Macro.

To run a macro

  1. Start a session and do one of the following.

    The steps depend on your user interface mode.

    InfoConnect Ribbon

    For IBM3270 and IBM5250 terminals: On the Macros ribbon, from the Advanced group, click Run Macro.

    For all other terminals: On the Session ribbon, from the Macros group, click Run Macro.

    InfoConnect Browser

    On the InfoConnect menu, choose Tools, Macro, and then Run Macro.

    TouchUX

    Tap the Wrench icon and then under Macro, select Show Run Macro Dialog.

    Classic MDI

    From the Macro menu, select Macros.

  2. If you see the Macros dialog box, select the macro you want to run from the list of available macros.

    If you see the Run Macro dialog box, select the kind of macro you want to run. Your subsequent choices depend on which option you choose.

Macros dialog box

The Macros dialog box lists InfoConnect Visual Basic macros. Use the following options to specify which macros are listed:

<All Standard Projects>

All open projects and session documents.

Common

The Common project.

Project (filename)

The active session document only.

NOTE:You can also use this dialog box to create new macros using the Visual Basic Editor. To do this, first enter a Macro name, then click Create.

Run Macro dialog box

The Run Macro dialog opens if you are running InfoConnect Desktop Pro for Unisys or InfoConnect Desktop Pro for Airlines, and you have installed one or more Compatibility features, which are available on the Micro Focus Setup program Features tab, under 3270/5250 | Compatibility or UNIX and OpenVMS | Compatibility.)

The list of macro types you see depends on which features you have installed and on your terminal session type.

InfoConnect Workspace Macro

Opens the Macros dialog box, which you can use to select macros created using InfoConnect Desktop.

Express Macro

Opens the Express Macro dialog box, where you can open Express (.js) macros.

Legacy EXTRA! Macro

Run an EXTRA! macro file (.ebm).

Legacy Reflection Macro in This File

(5250, 3270, and VT) Select to run legacy macros created using Reflection products.

Legacy Reflection Macro in Another File

(5250, 3270, and VT) Select to specify and run a macro in a SharedMacro file (.rma) or a settings file (.rsf, .r2w, or .r4w).

Legacy RB Macro

(5250, 3270, and VT) Select to specify and run a Reflection Basic macro (.rbs).

Legacy RCL Script

(VT) Select to specify and run a legacy Reflection RCL script.

Rumba Macro

Run a Rumba macro file (.rmc).

QWS Macro

Run a Jolly Giant QWS3270 macro file (.jgs).

IBM Personal Communications Macro

Run an IBM Personal Communications macro file (.mac).