Years ago. I erased a system value, which is turn disabled every user on the system. Even Qsecofr.
I believe what IBM recommended was setting up a system console, directly attached to the AS400.
Power it up.
Enter Qsecofr for the user name and Qsecofr for the password. It was something that simple. Hope this helps.