Respect RET parameter.

Include just the header info in the dsn if requested so by using RET=HDRS.