REGISTER or login:
If the OP’s knowledge is such that this needs more explanation it would be futile for us to help until they have further training.
That is most definitely true. It's probably at the very center of the OP's problem.
So how do I pull this name in the RPGLE program for further use?
But that is the OP's actual question. The answer is to READ the record. Without a READ, it doesn't matter if a user presses [Enter]. The result might be simply locking the keyboard. The program won't be back in control without a READ in some form regardless of any [Enter] key (though the READ probably won't complete until [Enter] is pressed; it's not required but is probable). The READ is what 'pulls' the value into the program for use.