IBM i - Cannot install library QGPL - CPF3D8F

By kimot, 29 January, 2024

If you have this message in your joblog :

Cannot install library QGPL.

 

                         Additional Message Information                       
                                                                              
 Message ID . . . . . . :   CPF3D8F                                           
 Date sent  . . . . . . :   01/02/24      Time sent  . . . . . . :   09:01:44 
                                                                              
 Message . . . . :   Cannot install library QGPL.                             
                                                                              
 Cause . . . . . :   Library QGPL cannot be installed until all subsystems are
   ended.                                                                     
 Recovery  . . . :   Use the End Subsystem (ENDSBS SBS(*ALL)) command or the  
   End System (ENDSYS) command and wait for all the subsystems to end.  Then  
   try the request again.                                                     

For this action, the system must be in a restricted state.
First, make sure you're logged into the console (not the regular station).
Then you can simply put the system into a restricted state with this command

ENDSBS SBS(*ALL) OPTION(*IMMED)