z/OS ISPF Edit and Edit Macros
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


CHANGE command example

z/OS ISPF Edit and Edit Macros
SC19-3621-00

To change "MIMIC" to "WILLY" enter C ALL MIMIC WILLY as shown in Figure 1.

Figure 1. Before CHANGE command
   File  Edit  Edit_Settings  Menu  Utilities  Compilers  Test  Help
 ───────────────────────────────────────────────────────────────────────────────
 EDIT       SBURNF.PRIVATE.EXEC(FCEXMP) - 01.00                21 CHARS 'MIMIC'
 Command ===> c all mimic willy                                Scroll ===> CSR 
 ****** ***************************** Top of Data ******************************
 000001 /* REXX */
 ⋮

The editor changes all occurrences of the string starting at the top of the data and inserts a ==CHG> flag next to each changed line, as shown in Figure 2.

Figure 2. After CHANGE command
   File  Edit  Edit_Settings  Menu  Utilities  Compilers  Test  Help
 ───────────────────────────────────────────────────────────────────────────────
 EDIT       SBURNF.PRIVATE.EXEC(FCEXMP) - 01.00           CHARS 'MIMIC' changed
 Command ===>                                                  Scroll ===> CSR 
 ****** ***************************** Top of Data ******************************
 000001 /* REXX */
 000002 /* REXX */
 000003 ADDRESS TSO
 000004 /*                                                                   */
 000005 /* RECREATE THE OLD BACKUP DATA SETS                                 */
 000006 /*                                                                   */
 ==CHG> CALL WILLY "ALLOC DA('PDFTDEV.SVT2.ARCHDEF')"
 ==CHG> CALL WILLY "ALLOC DA('PDFTDEV.SVT2.CLIST')"
 ==CHG> CALL WILLY "ALLOC DA('PDFTDEV.SVT2.CPP')"
 ==CHG> CALL WILLY "ALLOC DA('PDFTDEV.SVT2.EXEC')"
 ==CHG> CALL WILLY "ALLOC DA('PDFTDEV.SVT2.GIF')"
 ==CHG> CALL WILLY "ALLOC DA('PDFTDEV.SVT2.GMLINC')"
 ==CHG> CALL WILLY "ALLOC DA('PDFTDEV.SVT2.HPP')"
 ==CHG> CALL WILLY "ALLOC DA('PDFTDEV.SVT2.HSAS65')"
 ==CHG> CALL WILLY "ALLOC DA('PDFTDEV.SVT2.LEL')"
 ==CHG> CALL WILLY "ALLOC DA('PDFTDEV.SVT2LMAP')"
 ==CHG> CALL WILLY "ALLOC DA('PDFTDEV.SVT2.LOAD')"
  F1=Help      F2=Split     F3=Exit      F5=Rfind     F6=Rchange   F7=Up
  F8=Down      F9=Swap     F10=Left     F11=Right    F12=Cancel

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014