Answer by taking a quote from the following article:

Sandman (Wesley Dodds) is a fictional character, a superhero who appears in American comic books published by DC Comics. The first of several DC characters to bear the name Sandman, he was created by writer Gardner Fox and artist Bert Christman. Attired in a green business suit, fedora, and gas mask, the Sandman used a gun emitting a sleeping gas to sedate criminals. He was originally one of the mystery men to appear in comic books and other types of adventure fiction in the 1930s but later was outfitted with a unitard/cowl costume and developed into a proper superhero, acquiring sidekick Sandy, and founding the Justice Society of America.

Dodds is one of a number of Justice Society members who finds themselves in the "Ragnarok Dimension" during the early Modern Age of comic books. The Last Days of the Justice Society of America Special (1986) wrote the post-Crisis tale of a time-warped wave of destruction ready to engulf the world. Dodds and his JSA teammates enter into a limbo to engage in an eternal battle that would allow the universe to continue its existence. This was later revealed to be a simulation created by Odin, which he intended to give to Dream as a bribe. Dodds, Dream's protege, and Hawkman, the grandfather of Dream's appointed successor are the only JSA members we see at this time. This lasted only until 1992 when DC published Armageddon: Inferno. This mini-series ended with the JSA members leaving limbo and entering the 'real' world. Justice Society of America (1992-1993) showed how the JSA members handled returning to normal life. For the Sandman, the series depicted him as an old, thin man with a balding scalp and a sharp wit. Starting with issue #1 his physical condition became important as writer Len Strazewski had him suffer a stroke at the first sign of a villainous attack. Both his age and his physical limitations became a theme writers would use in this character's post-Crisis stories.  During Zero Hour, Dodds is returned to his proper age by the Extant. Later, Wesley Dodds is shown as retired and living with Dian Belmont though occasionally coming out of it, most notably in a team-up with Jack Knight, the son of Dodds' JSA teammate Starman. When Dian is diagnosed with a terminal disease, the two travel the world together until her death.  Towards the end of his life, Dodds' prophetic dreams alert him to the identity and location of the new Doctor Fate, prompting him to contact the Gray Man, a being created from the residue of others' dreams, as well as his old friend Speed Saunders to instruct them to warn his former teammates about what he has discovered. Waiting on a clifftop, he is subsequently confronted by the powerful villain Mordru, who intends to force Dodds to tell him the identity of the new Doctor Fate, only for Dodds to distract Mordru with his gas-gun long enough to commit suicide by jumping off the cliff rather than allow Mordru to torture him into submission. His last thoughts were that his final slumber would be free of nightmares as he is reunited with Dian. His youthful but now grown-up sidekick, Sandy the Golden Boy, becomes known simply as Sand and takes his mentor's place as a member of the Justice Society of America as well as his prophetic dreams. Eventually, he takes the name of Sandman.

what did he do in the 'real' world?
handled returning to normal life.