Introduction to the Macro tab

For the purpose of getting you acquainted with the Macro Editor, this section consists of a very simple comparison between the Macro tab of the Macro Editor and the <HAScript> element described in the previous section.

The Macro Editor has four tabs: Macro, Screens, Links, and Variables. The first tab, the Macro tab, corresponds very closely to the <HAScript> element. In fact, the Macro tab is the graphical user interface for some of the information that is stored in the attributes of the begin tag of the <HAScript> element.

Therefore, as the <HAScript> element is the master element of a macro script and contains in its attributes information that applies to the entire macro (such as the macro name), similarly the Macro tab is the first tab of the Macro Editor and provides access to some of the same global information.

Figure 1 shows the Macro Editor with the Macro tab selected.
Figure 1. Macro tab of the Macro Editor
In the figure above you can see that the Macro tab has input fields for Macro Name, Description, and other information, along with several checkboxes. You should notice two fields:
  • The Macro Name field contains the name that you assign to the macro. This is the same name that you will select when you want to edit the macro or run the macro. Macro names are case-sensitive. For example, ispf_usp is a different name than Ispf_usp, ispf_usP, ISPF_USP, and so on.
  • The Use Variables and Arithmetic Expressions In Macro checkbox determines whether the Macro object uses the basic macro format or the advanced macro format for this macro. In the figure above this checkbox is not selected, indicating that the basic macro format will be used (see Choosing a macro format).
Figure 2 shows a sample <HAScript> element that contains the same information as is shown on the Macro tab in Figure 1 , as well as some additional information. In the Code Editor an <HAScript> element is written on a single line, but here the element is written on multiple lines so that you can see the attributes.
Figure 2. A sample <HAScript> element
     description=" "


In the <HAScript> element in the figure above you should notice that there is an attribute corresponding to each input field of the Macro tab shown in Figure 1. For example, the name attribute in the <HAScript> element (name="ispf_ex1") corresponds to the Macro Name field on the Macro tab. Similarly, the usevars attribute in the <HAScript> element (usevars="false") corresponds to the Use Variables and Arithmetic Expressions checkbox on the Macro tab.