Example 2. Issue EC command from ISPF 3.4

This example shows issuing an EC command in a list of data sets in ISPF option 3.4.

Enter the EC command to change the string ABC to DEF.
   Menu  Options  View  Utilities  Compilers  Help                              
 ────────────────────────────────────────────────────────────────────────────── 
 ISRUDSL0 Data Sets Matching TDORNEY.CNTL                            Row 1 of 2 
 Command ===> EC ABC DEF                                       Scroll ===> CSR  
                                                                                
 Command - Enter "/" to select action                  Message           Volume 
 -------------------------------------------------------------------------------
          TDORNEY.CNTL                                                   D$US11 
          TDORNEY.CNTL.VB                                                D$US39 
 ***************************** End of Data Set list ****************************
                                                                                
  F1=Help      F2=Split     F3=Exit      F5=Rfind     F7=Up        F8=Down      
  F9=Swap     F10=Left     F11=Right    F12=retrieve

Press Enter. The proposed changes are displayed in the Enhanced Change Report.

   File  Edit  Edit_Settings  Menu  Utilities  Compilers  Test  Help            
 ───────────────────────────────────────────────────────────────────────────────
             Enhanced Change Report     Index DSLIST            Col 00001 00072 
 Command ===> ________________________________________________ Scroll ===> CSR  
 ****** ***************************** Top of Data ******************************
 000001 ------------------------------------------------------------------------
 000002 >Data Set: TDORNEY.CNTL                                                 
 000003  >Member : AA68093                                                      
 000004         9  // SET IPVLVL=DEF                                            
 000005  >Member : CHARS                                                        
 000006         9  ⧉DEFdefghi®¯ĐĐìçñ                                             
 000007  >Member : DITQQ                                                        
 000008        30       say CHANGE('DEFDEFDEF','DEF','DeF')       'DeFDEFDEF'   
 000009        31       say CHANGE('DEFDEFDEF','DEF','DeF',2)     'DeFDeFDEF'   
 000010        32       say CHANGE('DEFDEFDEF','DEF','DeF',0)     'DeFDeFDeF'   
 000011        33       say CHANGE('DEFDEFDEF','DEF','DeF',,4)    'DEFDeFDEF'   
 000012        35       say CHANGE('DEFDEFDEF','a',,0)            'bcbcbc'      
 000013  >Member : EXTFN002                                                     
 000014        38    SETC(DEF,'A')                                              
 000015        42    SETC(DEF,'A')                                              
 000016    ┌──────────────────────────────────────────────────────┐             
 000017    │ 23 line(s) in 9 of 918 Member(s) and 2 of 2 File(s). │             
  F1=Help  └──────────────────────────────────────────────────────┘ 6=Rchange   
  F7=Up        F8=Down      F9=Swap     F10=Left     F11=Right    F12=retrieve

Place the cursor on the Index value DSLIST in the panel title and press Enter to see the data set list.

   ┌────────────── Search Data Set List ───────────────┐  Test  Help            
 ─ │          ==> ____________________ Row 1 to 2 of 2 │ ───────────────────────
 F │                                                   │        Col 00001 00072 
 C │ Data set list                                     │       Scroll ===> CSR  
 * │ TDORNEY.CNTL                                      │ ***********************
 0 │ TDORNEY.CNTL.VB                                   │ -----------------------
 0 │ **************** Bottom of data ***************** │                        
   └───────────────────────────────────────────────────┘ Right    F12=retrieve