Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Performing repeated tasks z/OS ISPF Edit and Edit Macros SC19-3621-00 |
|
You can use an edit macro to save keystrokes when you frequently perform a task. A simple example would be using a macro to delete every line that begins with a dash (-) in column 1. You could scan the data and manually delete each line, or you could write a macro that does the same thing much faster. The edit macro in Figure 1 processes the commands necessary to delete the lines and requires only that you enter the ISRDASH macro. Figure 1. ISRDASH macro
When you run this macro, it deletes all lines beginning with a dash, except the first one. To run the macro, type isrdash on the command line (Figure 2). The dash macro deletes all lines that began with a dash except the first one (Figure 3). Figure 2. ISRDASH macro - before
running
Figure 3. ISRDASH macro - after running
|
Copyright IBM Corporation 1990, 2014
|