Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/REXX/   (Scripting Tool ©)  Datei vom 2.3.2012 mit Größe 3 kB image not shown  

SSL MLIST.REXX   Sprache: REXX

 

/* REXX  */                                                                     
/* ---------------------------------------------------------  */                
/* Auflisten aller Member der Parameterdatei                  */                
/*                                                            */                
/*   call mlist(file)                                         */                
/* Die gefundenen Member werden im Stack geliefert        .   */                
/*                                                            */                
/* ---------------------------------------------------------- */                
                                                                                
   Version     = "Version 0.50 vom 23.12.2002"                                  
   Autor       = "JD"                                                           
   Redakteur1  = "NN"                                                           
                                                                                
   /* Parameter untersuchen */                                                  
   arg parm1                                                                    
   if parm1 = '?' then do                                                       
      call help                                                                 
      exit                                                                      
   end                                                                          
                                                                                
   /* Ermitteln von Dateiinformationen */                                       
   ot.=0                                                                        
   mt.0=0                                                                       
   j=0                                                                          
   rc_list=listdsi("'"parm1"'")                                                 
   if (rc_list = 0) & (sysdsorg = 'PO') then do                                 
      x=outtrap('ot.',,'concat')                                                
      address tso                                                               
      'listds '''parm1''' members'                                              
       do i=7 to ot.0                                                           
          j=j+1                                                                 
          mt.0=j                                                                
          mt.j=parm1"("substr(ot.i,3)")"                                        
       end                                                                      
    end                                                                         
    else                                                                        
       mt.=""                                                                   
    do i=1 to mt.0                                                              
       if mt.i > "" then                                                        
          push mt.i                                                             
    end                                                                         
    exit(rc_list)                                                               
                                                                                
help:                                                                           
say '                                                                '          
say 'ISPF/PDF edit macro to list the members of a partitioned        '          
say 'dataset                                                         '          
say '                                                                '          
say 'parm 1:                                                         '          
say '   the dataset                                                  '          
say '                                                                '          
say '   If you have questions about this command,                    '          
say '   contact Hamburg -4244.                                       '          
return                                                                          

Messung
CHZG
94848487

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

*© Formatika GbR, Deutschland