you're on the beam, Bean. U.S. slang. [Generally taken as a deformation of the profane God damn: cf. dang, darn. But some think the original form was dog on it, to be compared with pox on it! etc.]