Problem solve Get help with specific problems with your technologies, process and projects.

Who ended the subsystem?

Need to know who ended a subsystem? Check out this tip to find out and easy way.

Need to know who ended a subsystem? I have a validity checking program attached to my copy of the ENDSBS command (higher in library list) which retrieves the user entering the command and sends a message to *SYSOPR. You can perform even more checking in the program (only allow certain users, don't allow certain subsystem to be ended, etc). It all up to you. A basic program is below.

   
 VENDSBS:    PGM        PARM(&SBS &OPTION &DELAY &ENDSBSOPT)         
             DCL        VAR(&SBS) TYPE(*CHAR) LEN(10)                
             DCL        VAR(&OPTION) TYPE(*CHAR) LEN(07)             
             DCL        VAR(&DELAY) TYPE(*CHAR) LEN(11)              
             DCL        VAR(&ENDSBSOPT) TYPE(*CHAR) LEN(1)           
             DCL        VAR(&JNBR) TYPE(*CHAR) LEN(6)                
             DCL        VAR(&JUSR) TYPE(*CHAR) LEN(10)               
             DCL        VAR(&JJOB) TYPE(*CHAR) LEN(10)               
             DCL        VAR(&MSG) TYPE(*CHAR) LEN(80)                
             RTVJOBA    USER(&JUSR)                                  
             CHGVAR     VAR(&MSG) VALUE('ENDSBS command for +        
                          subsystem' *BCAT &SBS *BCAT 'entered by' + 
                          *BCAT &JUSR)                               
             SNDPGMMSG  MSGID(CPF9898) MSGF(QCPFMSG) MSGDTA(&MSG) +  
                          TOMSGQ(*SYSOPR)                            
             ENDPGM                                                  

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: Tips, tutorials and more.

Ask your systems management questions--or help out your peers by answering them--in our live discussion forums.

Read this Search400.com Featured Topic: Managing your iSeries.


Dig Deeper on Performance

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close