To retrieve a command entered on the command line: Enter RETRIEVE or ? to see the last command entered.
You can also use multiple questions marks. ? retrieves the last command you entered, ?? retrieves the command before that, and so on.