Copy and paste a script from this guide into the Code Editor
This section tells you how to copy a macro script from this document to
the Code Editor. This text assumes that you are copying an entire macro script,
beginning with <HAScript> and ending with </HAScript>. Follow these
steps.
- Start a 3270 Display session and let it connect.
- Record a simple macro to use as a holder for the script:
- Click Record Macro
- When the Record Macro window appears:
- Copy and paste a script from this guide into the Code Editor.
- Click New
- Type a name in the Name field, such as
sample1
. - Click OK
- The status line on the 3270 Display session window should say, "Recording macro".
- Click Stop playing or recording macro.
- Edit the macro script that you just recorded.
- The name of the file for the macro that you just recorded should appear
in the window on the left side of the Macro Manager toolbar, such as
sample1.mac
. - Click Edit current macro properties to start the Macro Editor.
- When the Macro Editor appears then follow these steps:
- Click Code Editor to start the Code Editor.
- Use the mouse to mark the lines of code that you want to delete.
- Which lines to mark for deletion delete depends on the contents of the text that you want to paste into the Code Editor.
- However, this example assumes that you want to paste a complete macro script into the Code Editor.
- Therefore, in this example you should use the mouse to mark all the lines in the Code Editor for deletion.
- Type the Delete key to delete the marked area.
- Copy the entire text of a macro script from this document to the system clipboard, using whichever method you are accustomed to.
- Make the Code Editor the active window.
- Use Ctrl-v to paste the macro script into the Code Editor
- Click OK to close the Code Editor.
- Click Save and Exit save the macro script and close the Macro Editor
- The name of the file for the macro that you just recorded should appear
in the window on the left side of the Macro Manager toolbar, such as
- The name of the file for the macro that you just edited should appear
in the window on the left side of the Macro Manager toolbar, such as
sample1.mac
. - Click Play Macro to run the macro.
If you wish to edit this macro, then you can do so either with the Macro Editor or the Code Editor.