IEASDUMP.QUERY dynamic exit

You can use an IEASDUMP.QUERY exit: