The Dump Main Memory Information (DMPMEMINF) command dumps information about pages of main memory to a file.
To dump memory data, issue the following command:
DMPMEMINF OUTFILE(MYLIBRARY/DMPMEMFILE)
The command to view the dump could be something like the following SQL:
SELECT count(*),POOL, OBJNAME, LIBNAME FROM mylibrary/dmpmemfile group BY POOL, OBJNAME, LIBNAME order by 1 desc