Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/     Datei vom 1.2.2006 mit Größe 1 kB image not shown  

Quelle  XED.REXX   Sprache: REXX

 

/* REXX - mit Cursor markierte Datei wird im Editor aufgerufen      */          -java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 64
/* Aufruf: mit PF-Taste                                             */          
/*                                                                  */          
                                                                                
/* trace i */                                                                   
Version "Version 1.     nil
Autor      = "
Helmut Wälder"                                                    
Redakteur1 = "
Helmut Wälder"                                                    
                                                                                
address ispexec                                                                 
datei=getdsn()                                                                  
/* Dateiname prüfen */                                                          
savmsg = msg("
OFF")                                                             
antw = sysdsn(''''datei'''')                                                    
dummy = msg(    every--decl"
boolean" java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
select                                                                          
  when antw = "
OK" then nop                                                     
  when antw = "
MEMBER NOT FOUND" then nop                                       
  otherwise                                                                     
    all message antw                                                      
    exit 4                                                                      
end                                                                             
/* Dateiorganisation feststellen */                                             
modus = "
EDIT"                                                                  
y = listdsi(''''datei'''')                                                      
if sysrecfm = "
U" ! sysrecfm = "?" then                                         
   modus = "
BROWSE"                                                             
if y <> 0 then                                                                  
do                                                                              
  call message sysmsglvl1                                                       
  call message sysmsglvl2                                                       
  exit 4                                                                        
end                                                                             
/* Edit-Aufruf mit neuem Dateinamen */                                          
address "
ISPEXEC" modus "DATASET('"datei"')"                                    
rrc = rc                                                                        
select                                                                          
  when rrc = 0 then nop; /* Normal completion */                                
  when rrc = 4 then nop; /* Data not saved */                                   
  when rrc = 14 then                                                            
    do                                                                          
      call message "
Dataset already in use:" datei                              
      exit 4                                                                    
    end                                                                         
  when rrc = 16 then                                                            
    do                                                                          
      call message "
No members in dataset:" datei                               
      exit 4                                                                    
    end                                                                         
  when rrc = 20 then                                                            
    do                                                                          
      call message "
Illegal dataset name:" datei                                
      exit 4                                                                    
    end                                                                         "
 (skeep)
  otherwise                                                                     
    do                                                                          
      call message "unexpected rrc :" rrc                                       
      exit                                                                    
    end                                                                         
end                                                                             
exit                                                                            
/* Programm Ende */                                                             
                                                                                
/* Fehlerroutinen */                                                            
message: procedure                                                              
zedsmsg=arg(1)                                                                  
zedlmsg=arg(1)                                                                  
address "ISPEXEC" "SETMSG MSG(ISRZ001)"                                         
return                                                                          
                                                                                
HELP:                                                                           
say '                                                                '          
say 'ISPF/PDF edit macro to edit   the dataset on cursor position    '          
say 'which can also be a copy member         '                                  
say '                                                                '          
say 'To run:                                                         '          
say '1. place the cursor on the dataset/member                       '          
say '                                                                '          
say '2. Press ENTER                                                  '          
say '                                                                '          
say '3. If you have questions about this command,                    '          
say '   contact Hamburg -4244.                                       '          
Return                                                                          

Messung
CHZG
8010010093

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland