REGISTER or login:
Yes. Just press the PrintScreen function key after logging on. A spooled file will be created without creating any objects.
Of course, that might not make sense because it's pretty specific to a particular kind of logon to a particular OS through a particular kind of interface. But you didn't limit your question to any OS nor any device nor anything else. If those aren't important, then the answer might be anything.
I think you want a compiled listing without creating the program object.
What I usually do is to direct the compile to create the object in a junk library.
If you're using PDM .. 14 or 15 to compile press f4 change library to myJunk (must be an existing library)