On the SNAPX macro, use the DSPSTOR parameter to dump storage from any addressable data space that the caller can access.
For the syntax of SNAPX, see z/OS MVS Programming: Assembler Services Reference IAR-XCT.